En Yi
ec9e21dc8a
Update web build
...
Changelog:
- preload assets
- increase heap and stack memory
2023-11-22 00:11:01 +08:00
En Yi
799941ed80
Draw particles before water
2023-11-21 21:01:47 +08:00
En Yi
f94ecedc7d
Fix aliveness check for emitter
...
Emitter aliveness should be checked with its finish state
Also update bubbling to re-activate an still alive handle
2023-11-20 22:47:30 +08:00
En Yi
911663b51f
Update game scene system
2023-11-20 22:19:18 +08:00
En Yi
70d52cca5b
Tweak bomb horizontal spawn
2023-11-20 22:10:02 +08:00
En Yi
c52651ca1b
Add bubbling paritcle emitter to player
2023-11-20 22:08:28 +08:00
En Yi
b18e072d51
Print free emitters in editor scene
2023-11-20 22:08:05 +08:00
En Yi
73ea7edd07
Update emitter asset loading
2023-11-20 22:07:45 +08:00
En Yi
ad789329d1
Add emitter component
...
Also, add funciton to check if emitter handle is still alive
2023-11-20 22:06:58 +08:00
En Yi
841603a432
Update inital position of stream emitter
2023-11-20 20:53:22 +08:00
En Yi
8165cd41c2
Rework stream handling function
...
Changelog:
- Add callback function to stop the emitter
- This is use to automatically stop the emitter when the condition
is met
- Update particle test program
2023-11-20 20:48:41 +08:00
En Yi
8ae999ccc8
Tweak water rendering
...
make water rendering in front of all entities
2023-11-18 20:13:02 +08:00
En Yi
de5da9a5f2
Increase lifetime for bomb crates
2023-11-18 20:12:39 +08:00
En Yi
cb67dcf81f
Fix incorrect parsing of emitter config
2023-11-18 20:02:00 +08:00
En Yi
be75263c2c
Implement stream-type particle emitter
2023-11-18 19:44:20 +08:00
En Yi
cb0a93ee70
Implement feature to start and stop emitter
2023-11-18 15:48:43 +08:00
En Yi
5350c2b761
Refactor particle system for future feature
...
This is to support persistent emitter later on
Also, re-check the update logic
2023-11-18 12:45:57 +08:00
En Yi
e1bef49d06
Fix tunneling for wooden tile
...
Just make the collision bbox to be tile_size.
The 'hitbox' of the tile is too thin.
2023-11-16 20:23:06 +08:00
En Yi
3f5e1648c1
Fix regression in AABB collision
2023-11-16 00:03:26 +08:00
En Yi
bfab7df718
Play SFX on destroying wooden tile
2023-11-16 00:02:52 +08:00
En Yi
85e731392a
Remove drawing of moveable grid
2023-11-15 23:35:38 +08:00
En Yi
a9939200b7
Fix ladder not one-way on destruction
2023-11-15 23:32:10 +08:00
En Yi
7dd4c8413b
Add action to toggle grid for sandbox
2023-11-15 23:30:13 +08:00
En Yi
c64ef906e0
Reposition airtimer point check
2023-11-15 21:01:02 +08:00
En Yi
315d9849a7
Use water overlap for friction update
...
Also relocate the water overlap update
2023-11-15 20:53:41 +08:00
En Yi
0b5f34b9f3
Modify water upthrust behaviour
...
Changelog:
- Upthrust now depends on water area overlap with entity
- Fix complete overlap checks
2023-11-14 22:31:28 +08:00
En Yi
72c27ed92e
Add more SFX
...
Also, revert crate ground state behaviour
2023-11-13 14:23:31 +08:00
En Yi
c78dc50f50
Fix Boulder landing playing on spawning
...
Done by setting its ground state to 1. For consistency, this is
done to any entity that can 'land'. So far, this has no tangible
gameplay effects.
2023-11-13 11:34:39 +08:00
En Yi
cdb9d22e6c
'Fix' unused params for remaining functions
2023-11-11 13:10:00 +08:00
En Yi
8529a2c934
Use unsigned int for rres Id as per the struct
2023-11-11 13:04:24 +08:00
En Yi
816608029a
Fix more sign int usage
2023-11-11 12:48:28 +08:00
En Yi
45d9e2a5f6
Use unsigned int for boulder checks
2023-11-11 12:44:57 +08:00
En Yi
d947d95247
Fix signed int comparison
2023-11-11 12:44:37 +08:00
En Yi
97714eccf6
Use unsigned int for UI component count
2023-11-11 12:30:42 +08:00
En Yi
ffc890240b
Remove asset argument from entity creation
2023-11-11 12:18:45 +08:00
En Yi
2968172921
Use signed int for water runners
2023-11-11 12:06:19 +08:00
En Yi
15bb9c84ae
Remove unused prev_pos in box edge checking
2023-11-11 11:56:08 +08:00
En Yi
b150b3ad38
Change to manual init for entity tag map
...
The entity tag mapping is not that used often enough.
So, change it to manual init.
2023-11-11 11:14:22 +08:00
En Yi
029415e19f
Add particles for arrow destruction
2023-11-10 23:15:12 +08:00
En Yi
b17c521dfd
Add emitter loading from RRES
2023-11-07 21:58:20 +08:00
En Yi
d9b69aa09d
Draw air meter in main game scene
2023-11-07 21:53:42 +08:00
En Yi
d660b4e5a5
Add sound loading from rres file
...
Also, fixes mistake in raw data size when loading from RRES file
2023-11-07 21:49:15 +08:00
En Yi
4ede1abcc1
Fix crashes in main application
...
Changelog:
- Fix crash on empty emitter config
- Fix engine de-init order
- Update assets file to load for main application
2023-11-07 20:47:30 +08:00
En Yi
716393e9f4
Replace fmemopen when adding zst from rres
...
Changelog:
- Modify zst load function to accept buffer containing the zst data.
- Manually manage the buffer reading
- Reading from zst file will load entire zst in memory first before
passing into load function.
2023-11-07 20:46:05 +08:00
En Yi
26cc567b7f
Add emitter config to asset file loading
2023-11-06 21:36:23 +08:00
En Yi
e39e549cd0
Add sound in asset info
2023-11-06 20:49:30 +08:00
En Yi
0c540d5053
Move frame counter out of sprite component
...
This allows individual animation
2023-11-04 20:32:29 +08:00
En Yi
97f7afc401
Add more particle effects
...
Changelog:
- Add a dedicated tile destroy function
Similar reason to destroy entity
- Add more sprites for particles
2023-11-04 17:05:54 +08:00
En Yi
ebecc68941
Add better support for particle system
...
Changelog:
- Move sprite to emitter itself to allow better reusing emitter config
- Dedicate a function for destroying entity. This is helpful for dealing
with events that only occurs during entity destruction
2023-11-04 14:36:59 +08:00
En Yi
e4bd3fdcab
Update Cmake files
...
Changelog:
- Add Wextra compilation
- Update libzstd link directory
2023-11-02 23:11:28 +08:00