You are browsing as a guest. Sign up (or log in) to start making projects!

1h 19m 39s logged

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 InteractionSystem from 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_WorldToHex Converts world coordinates into hex grid coordinates
  • SetSelectedHex Updates the currently selected hex tile

Camera

  • Camera_SetZoom Sets the camera zoom level

Window

  • Window_GetHeight Gets the current window height
  • Window_GetWidth Gets the current window width

Input

  • Input_IsKeyReleased Checks if a key was released
  • Input_IsMouseDown Checks if a mouse button is currently held
  • Input_IsMouseReleased Checks if a mouse button was released
  • Input_GetMouseX Gets the mouse X position
  • Input_GetMouseY Gets the mouse Y position
  • Input_GetScrollX Gets horizontal scroll input
  • Input_GetScrollY Gets vertical scroll input

Please ignore the weird graphical artifacting in the attached video, my pc has been acting up recently :(

0
7

Comments 0

No comments yet. Be the first!