|
Post by Rod on Mar 21, 2021 14:29:35 GMT -5
There are one or two tile engines that have been posted over time. There has been some recent discussion and fairly complex code posted. I hope this simplifies the engine a little. This version uses a file to store the map and can display lots of tile images. The screen is 640 x 640 and uses an 11x11, 64x64 sprite matrix to build the background. All tiles move in unison, as slowly as one pixel at a time, and when they exceed the screen limits they cycle back and use the next image from the map. The map rolls round. So the map can be huge and tile images can number hundreds. Only 121 sprites form the moving background. Stella is an eight direction walking character that is always centred. The cursor, or num pad keys accellerate or decelerate with up down. Turn left or right with left right. 5 stops movement as does non pathway sprites. Turn or push forwards (up) to break away if you hit an object. If there is any interest I can code more functionality. Rogue Tile Based RPG
|
|
|
Post by Carl Gundel on Mar 22, 2021 13:24:36 GMT -5
There are one or two tile engines that have been posted over time. There has been some recent discussion and fairly complex code posted. I hope this simplifies the engine a little. This version uses a file to store the map and can display lots of tile images. The screen is 640 x 640 and uses an 11x11, 64x64 sprite matrix to build the background. All tiles move in unison, as slowly as one pixel at a time, and when they exceed the screen limits they cycle back and use the next image from the map. The map rolls round. So the map can be huge and tile images can number hundreds. Only 121 sprites form the moving background. Stella is an eight direction walking character that is always centred. The cursor, or num pad keys accellerate or decelerate with up down. Turn left or right with left right. 5 stops movement as does non pathway sprites. Turn or push forwards (up) to break away if you hit an object. If there is any interest I can code more functionality. Rogue Tile Based RPG Very nice! All the tiles are managed by the sprite engine? Makes me think that a sidescroller like Scramble or Defender might be easy and with good performance.
|
|
|
Post by Rod on Mar 22, 2021 15:10:25 GMT -5
Yes it is simply Liberty's sprite engine that is doing all the drawing. What makes it fast is the fixed number of sprites in play and the file based map, which is a simple seek, no big array to load or manage. I am drawing some space station tiles, for a fuller demo. R2D2 will feature (he is round and easy to draw!).
|
|