Log In  

Cart [#45407#] | Code | 2017-10-23 | License: CC4-BY-NC-SA | Embed
3

Obviously using FFTA sprites because I suck at pixel art.

Z changes between sprite control and cursor control.

Nothing much else.

P#42320 2017-07-10 14:09 ( Edited 2017-10-23 08:18)

Not sure how to update the uploaded cart though...

P#42325 2017-07-10 15:25 ( Edited 2017-07-10 19:25)
:: enargy

@kurokikaze Just submit a new cart like you did the first one. It will prompt if you want to submit a new cart or update an existing thread. Just choose to update the existing thread. It will provide a new cart code you can put into your main point.

P#42362 2017-07-11 00:00 ( Edited 2017-07-11 04:00)

Okay, time to update a bit.

I've added all 4 Babus sprites for 4 directions. Also, sprites are now drawn from a declared sprite objects, by iterating them, not just by hardcoded "place a here and b there".

I've also rewrote input (it's now unified between moving the player and moving the cursor). And camera is now faster the more it has to move.

With all the additions the engine code is under 1000 tokens now.

The moving range calculator and filler is written in JS (so it can be more easily covered by unit tests) and is ready to be rewritten in Lua. After that, I can move to walking animations and turn structure.

P#42623 2017-07-19 14:13 ( Edited 2017-09-27 17:56)

Added (very basic) movement animation. Units now have animation field storing necessary variables. Object of interest tracking still needs to be tweaked, as it now follows grid position of the player instead of current animated position. Also, I need to adjust for map height before animating, not after (needed for stepping up/down).

P#44677 2017-09-27 13:51 ( Edited 2017-09-27 17:51)
:: DR4IG

@kurokikaze: Been following this since I saw the cart pop up. And sticking animation frames in a container is a great way to cut down on animation routines, Especially if your sprites aren't in sequential order in the sprite sheet. IE: WalkAnims={5,15,32,23} or whatnot, Then call them with something like SPR(WalkAnims[Frame]) where you'd have frame updated in the update function.

P#44688 2017-09-27 17:10 ( Edited 2017-09-27 21:10)

Some more walking animations. I suck at pixelart though )

P#45408 2017-10-23 04:18 ( Edited 2017-10-23 08:18)

[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-10-14 00:34 | 0.041s | 4194k | Q:34