Changelog:
- Add player state component to keep track of crouching
- Add crouch key handling
- Crouch mechanics:
- Reduce vertical bbox, slightly stretch horizontally
- Offset position to be on ground
- Reverse for un-crouching
- Can jump out of a crouch, reverting the bbox
- Dont allow un-crouch if there is something overhead (maybe should
check directly overhead, instead of a full overhead?)
- Above also apply for jump out of crouch
Changelog:
- Combine player collision handling with screen bounce
- Add simple single jump
- Remove ceilf and just remove the -1 to achieve the same effect in
broad-phase grid check
- Clip out small velocities
- Adjust general movement and friction
Changelog:
- Fix missing grid check in broad-phase collision check due to
float truncation. Use ceilf to fix this
- Cover a potential edge case of equal prev overlap. In this case,
use min overlap.
- Recompute acceleration for player every start of frame.
- Add gravity for testing
Changelog:
- Store player dir input in LevelScene Data instead of pointer,
to avoid use-after-free (non-fatal as mempool is used, but can cause
unintended behaviour)
- Only process player movement in system update. This is done in the
movement update system
- Normalise before apply acceleration, duh
Changelog:
- Add double buffer to handle key presses and release
- Add more actions
- Update action mapping of level scene
- Implement action function for level scene
- Remove action queue for Scene struct. This is handled by raylib
and the game engine
- Update scene struct with action function field
Internal Changelog:
- Implement scene boundary bounce system (subject to change)
- Add tilemap in preparation for collision system
- Allow early exit of scene testing
Internal Changelog:
- Update BBox component to use Vector2
- Add new CTransform component
- Implement level scene movement system and render system
- Implement scene test procedure
Changelog:
- Add actions and assets headers, not implemented and not used
- move original main to entManager_test
- Add proper main to create window and display nothing
- Implement scene base class and level scene
- Add a simple level scene test
- Update CMakeLists to compile main and tests