En Yi
c1207ec5b4
Properly reset a level scene
2024-08-15 11:08:20 +08:00
En Yi
259fa114ca
Fix water filling rate
2024-08-13 18:17:52 +08:00
En Yi
979533092e
Update main game render
2024-08-13 15:34:31 +08:00
En Yi
5a0c02b81a
Fix out-of-bound tile check due to uint
2024-05-14 23:22:26 +08:00
En Yi
d7113d42fe
Add neighbour solid counts
...
This is preparing for the tile sprites rework
2024-05-06 22:04:53 +08:00
En Yi
75d019aa34
Rework rendering to allow multi-layer render
...
Internal Changelog:
- A scene now has a maximum amount of render texture. It is to be
rendered in order of the array by the engine.
- A scene now needs an explicit render system to draw onto the render
textures. The scene will also init the number of render layers
needed.
- The change is to allow more separate of concerns when it comes to
rendering. A scene can also now compartmentalise the rendered items,
which hopefully make understanding the code easier.
- Update all exisiting code to use the new render system.
2024-05-04 17:57:07 +08:00
En Yi
a2c061c5e8
Place position field into Entity
...
Position is so commonly used that placing it into Entity from the
CTransform components reduces the reference to CTransform.
Void Particle proved that it made development much easier.
2024-04-22 22:15:21 +08:00
En Yi
7dd4c8413b
Add action to toggle grid for sandbox
2023-11-15 23:30:13 +08:00
En Yi
816608029a
Fix more sign int usage
2023-11-11 12:48:28 +08:00
En Yi
ffc890240b
Remove asset argument from entity creation
2023-11-11 12:18:45 +08:00
En Yi
d1d8033b77
Only apply new behaviour to x direction only
2023-10-08 12:13:03 +08:00
En Yi
f8eab8acec
Adjust parameters for camera
2023-10-08 12:13:03 +08:00
En Yi
064341e2eb
Initial implementation of camera system
...
Changelog:
- Implement effectively a PI controller
2023-10-08 12:13:03 +08:00
En Yi
d4d3b317e2
Complete level data packing and loading
2023-09-28 16:10:20 +08:00
En Yi
d54fee8935
Fix main game collision issue
...
Changelog:
- Add the refactored system to main game
- Reset coin counter to zero on (re-)start
2023-09-23 14:16:57 +08:00
En Yi
d3029316b7
Add spikes sprite support
...
Add tile rotation. This is kind of a temp solution, since any sprite
could use rotation. So, may need to extend this for general sprite
2023-08-16 21:21:55 +08:00
En Yi
e670af2519
Fix camera for levels smaller that viewport
2023-08-14 21:22:03 +08:00
En Yi
e0ea01a4de
Add level switching
...
Changelog:
- Water is now on a separate layer in LDtk
- Update water loading in assets functions
- Add actions to switch levels
2023-08-14 17:05:43 +08:00
En Yi
9387189927
Refactor out level loading function
2023-08-14 15:03:11 +08:00
En Yi
8e9efc622d
Refactor out level tilemap initialisation
...
- Rename sandbox scene initialisation, which is just a convenience
function
- Also refactor out tilemap related functions to a new file
2023-08-14 13:51:20 +08:00