En Yi
04d928c97f
Add a rendering queue for sprite
...
Only applies for editor scene as a test
2024-12-21 14:37:18 +08:00
En Yi
f4a6d6c768
Fix crash on level loading
2024-12-12 21:19:58 +08:00
En Yi
c02eba9548
Add air pockets to level data
2024-11-11 22:59:32 +08:00
En Yi
6509b33c5a
Rework urchin collision with crates
...
Changelog:
- Fix error in urchin spawning in main game
- Reduce urchin's collision box
- Adjust crate destruction:
- Delay with arrows and bombs, instant with anything else
2024-11-09 23:40:54 +08:00
En Yi
613d5642cc
Add parsing for urchins
2024-11-09 16:15:59 +08:00
En Yi
188c2e30a5
Add tileset info in level pack
2024-11-09 13:30:32 +08:00
En Yi
add592afd2
Refactor out entity removal function
...
This allows a singular entity removal method for the game
2024-08-24 12:43:49 +08:00
En Yi
03a4240c6d
Simplify and unify level restarting
...
Changelog:
- Add function to clear all game entities
- This functions is called in both editor and main game
2024-08-24 00:25:33 +08:00
En Yi
89176142b6
Readjust arrows and bombs spawning
...
Changelog:
- Make use of anchor point function
- Readjust offsets and anchor points of sprites
- Readjust hitboxes offset and sizes
2024-08-21 12:52:19 +08:00
En Yi
f4167c6270
Add chest count in main game
2024-08-20 16:38:07 +08:00
En Yi
bae17e8a87
Add level ending in main game
2024-08-20 14:52:26 +08:00
En Yi
019f39f84c
Implement basic level state management
...
Internal Changelog:
- Remove spawn position for entity
- Not used. If spawning is needed, use a spawning entity
- Put in state machine callback function
- Player spawning system is part of callback function
- Remove player spawning system
- Incorporate state transition in systems
2024-08-19 11:55:48 +08:00
En Yi
90bbad09ae
Add free-movement to camera in editor scene
2024-08-17 14:49:51 +08:00
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