Author Topic: Snake game for MS-DOS (16-bit real mode)  (Read 15237 times)

Offline Tobiasz Stamborski

  • Jr. Member
  • *
  • Posts: 11
Snake game for MS-DOS (16-bit real mode)
« 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
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
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. ???

Offline debs3759

  • Global Moderator
  • Full Member
  • *****
  • Posts: 228
  • Country: gb
    • GPUZoo
Re: Snake game for MS-DOS (16-bit real mode)
« Reply #1 on: May 26, 2025, 10:24:16 PM »
Yeah, I'll go to some random website and load up a program written in assembly in my browser.
My graphics card database: www.gpuzoo.com

Offline Tobiasz Stamborski

  • Jr. Member
  • *
  • Posts: 11
Re: Snake game for MS-DOS (16-bit real mode)
« Reply #2 on: May 27, 2025, 12:04:06 PM »
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.

Offline debs3759

  • Global Moderator
  • Full Member
  • *****
  • Posts: 228
  • Country: gb
    • GPUZoo
Re: Snake game for MS-DOS (16-bit real mode)
« Reply #3 on: June 15, 2025, 01:00:05 PM »
I didn't mean to offend you. It's a subdomain on a website I don't know, and I had visited a website on my phone the day before which infected my phone, and resetting it then having to set everything up again with some apps wanting to contact my existing app on my "old" phone took half a day, so I was feeling more judgemental than usual. Sorry that I reacted how I did and took it out on you.
My graphics card database: www.gpuzoo.com

Offline Tobiasz Stamborski

  • Jr. Member
  • *
  • Posts: 11
Re: Snake game for MS-DOS (16-bit real mode)
« Reply #4 on: June 16, 2025, 02:23:07 PM »
Ok, i don't take offence at all if that's the case. :)