NASM - The Netwide Assembler
NASM Forum => Example Code => Topic started by: Tobiasz Stamborski on May 21, 2025, 02:15:47 PM
-
Hello,
I want to share with code of my snake game implementation. I know it's rather a full program than an example code.
But i think maybe someone will use it as an example of simple random number generation, playing simple music on the
pc speaker, or anything else. Sorry if i shouldn't post it here.
If you want to see the game, here is a page on itch.io where you can play it in the web browser:
https://tstamborski.itch.io/wild-snake-boa-ii (https://tstamborski.itch.io/wild-snake-boa-ii)
However HTML5 player there works a bit slow and jaggy. (idk exactly why, in DOSBox it runs fine)
The full source code can be found here:
https://github.com/tstamborski/wild-snake-boa-ii (https://github.com/tstamborski/wild-snake-boa-ii)
snakeboa.asm is the main file where program starts.
Sorry for my stupid ideas like making a wallpaper. (if somebody downloaded SNAKEBOA.zip and noticed)
I have created the game for game jam - just to try your hand. It's all running in text mode and just default BIOS
font is replaced by my custom 8x8 font. It's maybe nothing interesting but i thought why not to show it here. ???
-
Yeah, I'll go to some random website and load up a program written in assembly in my browser.
-
Yeah, I'll go to some random website and load up a program written in assembly in my browser.
I don't understand why exactly you are so malicious. If you are suggesting that i sell malware then simply no. The game is all running inside emulator (js-dos) inside web browser - i don't know how it even could do anything harmful to your computer. afaik it can only save few kB of data inside a cookie.
i don't feel itch.io is a random site. it's well known site for indie games and corelated stuff. i don't want to argue - if you are a moderator and you think my post is inappropriate here then you can delete it.