The first floor is basically done. :) What's left is a bit of eye-candy and I'll be able to move on to the 2nd floor.
Some engine code is needed there, but I'll commit that separately.
… computed only once. The pixel length was actually different for each resolution so I made it computed at first map mode update call. The pixel length is needed for this mode to avoid seeing sprite vibrating and such, due to the coordinate system used. Unfortunately, it's not perfect, and I'll have to change the map mode to use the standard coord sys to fix this the proper way.
I also replaced flame pots with fences.
Also disabled the menu, as you play as Orlinn.
It fits more.
Previously, it would check only the trade conditions as if only one item was bought, even for several ones. Also, the total cost of the items wasn't checked. I also simplified a bit the logic there.
This hopefully fixes randomly broken victory animations seen mostly on Bronann, or at least be one cause of it.
Unfortunately, this reveals a bug that I'll fix up in another commit, but shouldn't touche the gaming experience for now.
Changed pot for fence as it suits more. Added spikes (I'll push the graphic when done.) Made the spikes hide once the fences are open.
This fixes a glitch when it reaches screen borders.
…enu key is in pressed state.
Added a first version of Orlinn's jump event. What's left here is to permit him to come back down.
This will be used in one particular event. ;)
This wiill be more natural than seeing it aut-refilled when changing the map.