a bare minimum vertical stg prototype, the ship slows down when shooting
In June i worked on some more code to make my 2d tile engine work for horizontal and vertical scrolling shooters ( also called STGs or "shmups" ).
--------technical--stuff--ahead--tear--along--the--dotted--line--------
working on the TileD map for the demo
Features added to the engine or boilerplate classes:
- render with camera autoscroll, now render works on a lower resolution canvas.
- STG avatar that autoscrolls with camera.
- RailMovement compoment for entities using TileD polylines or polygons, featuring:
- movement in tiles per second or polyline nodes per second.
- optional easing for movement between nodes.
- optional smoothing of the polyline with catmul rom splines, with settable alpha and tension.
- entity cloning with variable x,y offset or offset in points of the polyline.
- easing.lua class with a compilation of easing methods, mostly from easings.net.
- loader.lua is now coroutine based, and I also used coroutines for entities behavior. (check out this thread about coroutines!)
All of this and more minor fixes, and a lot of research about shmups ( some of it being very fun I must admit! ).