Today's job
13 years ago
The direction from which Nipio enters a level is not currently tracked. There is one respawn point, and regardless of which of the four possible entrances/exits he comes from, he'll still respawn at the one point near the left of the screen.
I could fix this by adding four respawn points, I guess, but I'll do one better!
All data placed in a .tmx level can have properties of their own, so I thought it would be best to add a direction_filter property. Unless the filter is matched, the data won't be placed on the level when Nippies enters it.
This will let me do nice things besides spawn points, like having enemies arrange themselves to be both more challenging and less broken from all directions. Imagine what Castlevania II would be like if they just placed the enemies by hand, and regardless of which direction you were moving in, they'd be in all the right places!
Also: You know those parts of Zelda 1 where you have to go up, up, up the mountainside? And go north west south west (I think? XD) To the forest of maze? The new level linking system that I did yesterday allows a level to open into itself now. And since each level can own a Lua script, it will be able to do tricks like that if you perform the correct movement combo. Well, it should be. I don't yet have a way to tell what level Nipio came from in Lua, but it will be easy to add it :P
I could fix this by adding four respawn points, I guess, but I'll do one better!
All data placed in a .tmx level can have properties of their own, so I thought it would be best to add a direction_filter property. Unless the filter is matched, the data won't be placed on the level when Nippies enters it.
This will let me do nice things besides spawn points, like having enemies arrange themselves to be both more challenging and less broken from all directions. Imagine what Castlevania II would be like if they just placed the enemies by hand, and regardless of which direction you were moving in, they'd be in all the right places!
Also: You know those parts of Zelda 1 where you have to go up, up, up the mountainside? And go north west south west (I think? XD) To the forest of maze? The new level linking system that I did yesterday allows a level to open into itself now. And since each level can own a Lua script, it will be able to do tricks like that if you perform the correct movement combo. Well, it should be. I don't yet have a way to tell what level Nipio came from in Lua, but it will be easy to add it :P