LWJGL 3 2D Game Engine (Drag and Drop) #49

Опубликовано: 13 Июль 2026
на канале: Josyah Dooley
157
7

In this episode we gain the ability to drag and drop sprites from the project panel to the hierarchy and drag and drop gameobjects from the hierarchy to object fields in the inspector. In the next episode we will finish up what's left for drag and drop and tidy up some of the code.

***Warning, the engine doesn't currently have a way to gameobject variables or logicbehaviour variables. The scene loading and saving methods must be changed to determine which instance they belong to, aswell and setting variable after the loop that instantiates gameobjects and assigns behaviours instead of within the same loop. In the mean time, refrain from making public gameobject and behaviour variables inside a behaviour for the time being until we complete it

  / ocularcash   Having troubles? You can download the most up to date source from my patreon for $1 a month.

  / ocularcash   You can send me a message on twitter with any questions you may have.

Dont have twitter? You can also find me on discord:   / discord  

Josyah Dooley