Grafics may change but game has left the "alpha phase", now it needs some copy paste and position arrangment, some rail signals and so on.
There is a menu train, that starts the game, but misses some functionality right now, later you can pick up commuters from the station, but right now this big train just starts the game.
Controls
"X" starts the train
Up/Down selects parts of the scene
*there are some indicators as long there is a color border "O" should do something
A WIP for a vignette game (did not know that this genre exsist, before September 2026. Toy box, Diarama Games)
Sept: First upload of a game cart
Okt: Big update for me, add a game state and a game start animation.
Okt: No building animation but Tower Cranes and now four rails!
Nov: Lots of code reconstruction. But most parts are ready, just fine tuning for position.
- Every game object has its own draw() function, and some sprite data. So I can call game_object:draw_me() and still every object handels his draw part diffreently.
- There is now a building animation, tower comes from botton of construction side.


- Trains stop outside the screen and start by pressing "O"
- little blinking animation and tower guy walking
This cart is made for my son (3y) who loves trains and puplic transportation, let´s hope I can finish before he turns 12.
Thanks
Thanks on mjasnowski who opend my eyes for this "function saved inside an object" thing.
Thanks on Lazy Devs youtube channel and his
" The 30 Circle Test " and " We Are All Game Beginners - Porklike Postmortem "
Insides
I got this modolo based animation running
runs from zero to number of items in an array
self.frame = (self.frame+1) % #self.sprite3 end
sspr(unpack(self.sprite3[self.frame+1]))
self.sprite3={
{16,0, 4,6, 128,rails[3]-4+12, 4,6, false,false},
{16,0, 4,6, 124,rails[3]-4+12, 4,6, true,false},[...] } |
I love this unpack list combination for spritesheet coords and this rnd use with lists, but do not know if this a common way for little bigger games.
--( sspr sx,sy, sw,sh, dx, dy, [dw,dh,flip_x,flip_y] )
b={ 0,rnd{8,16,32,40}, 64,8, 0,rails[#rails]-8, 64,8,false,false}
sspr(unpack(b)) |
and I love this flip parameter to mimic walking
for f in all(fahrgastfront) do f[9] = not f[9] --mirror sprite, with sspr[9] flip_x end |
and this light animation for the houses, where you manipulate the spritesheet.
for x = 73, 75 do
for y = 27, 30 do
sset(x, y, c2)
end
end
end |
[Please log in to post a comment]




