Porting ECS systems to ObSL
Fully ported the InteractionSystem to ObSL through EngineLib.
Camera movement and player movement are now handled through dedicated ObSL scripts instead of being hardcoded ECS systems. This moves more gameplay logic into the scripting layer and makes systems easier to modify and iterate on :)
Changes
System Migration
- Ported
InteractionSystemfrom ECS code to ObSL
Basically Moved camera movement & player movement logic into ObSL scripts
- Interaction system is no longer hardcoded engine-side gameplay system
New EngineLib Bindings
Math / Hex Grid
-
Math_WorldToHexConverts world coordinates into hex grid coordinates -
SetSelectedHexUpdates the currently selected hex tile
Camera
-
Camera_SetZoomSets the camera zoom level
Window
-
Window_GetHeightGets the current window height -
Window_GetWidthGets the current window width
Input
-
Input_IsKeyReleasedChecks if a key was released -
Input_IsMouseDownChecks if a mouse button is currently held -
Input_IsMouseReleasedChecks if a mouse button was released -
Input_GetMouseXGets the mouse X position -
Input_GetMouseYGets the mouse Y position -
Input_GetScrollXGets horizontal scroll input -
Input_GetScrollYGets vertical scroll input
Please ignore the weird graphical artifacting in the attached video, my pc has been acting up recently :(
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.