00:00
00:00
Newgrounds Background Image Theme

Someone gifted MetalSlayer69 supporter status!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

i made a playable snake game in mspaint window

774 Views | 15 Replies
New Topic Respond to this Topic

hey guys, i made a fully playable snake game in mspaint for ludum dare 53:


iu_966920_11091280.gif

the game is written in python (of course) and it heavily relies on pyautogui library. for the core of the game, it basically takes control over your mouse and uses it do draw a snake dot by dot, while also remembering it's current position for the next time the snake moves. after drawing the snake segment, the game picks a random position for a pellet and it keeps drawing pellet in that position. when the snake dot has the same position as the pellet dot, the dot is considered to be eaten, the snake grows by one dot and the loop continues. the game also deletes the farthest part of the snake after the snake moves, giving the illusion of movement.


if you'd like to try it out, you can find the script here. please read carefully the description on itch page. if you have any questions, feel free to ask


Veljko Roadhog

Response to i made a playable snake game in mspaint window 2023-05-09 13:38:52


MS Paint can be pretty powerful when used right


Look at him spin

BBS Signature

Response to i made a playable snake game in mspaint window 2023-05-09 15:07:05


thats amazing, i never knew ms paint could do anything like that


| ||

|| |_

Response to i made a playable snake game in mspaint window 2023-05-09 15:52:59


At 5/9/23 03:07 PM, Ketamine-Poptarts wrote: thats amazing, i never knew ms paint could do anything like that


paint is just there to display visuals, it doesn't execute any code, python does all of the work. the core loop of the script could be basically executed in any drawing software, or any software for that fact. with that said, the game/board setup part of the code was tailor made for mspaint because it's a little quirky piece of shit (that i love) which made getting this to work a real pain. some of the quirks include:

  • no hotkeys/shortcuts for brushes and colors, meaning i had to preselect pencil tool by measuring where it's positioned on the toolbar and moving the mouse to its coordinates
  • default brush has some aliasing around its edges so i had to use pencil tool in order to remove pellets/move the snake correctly
  • the zoom functionalities are very limited, so canvas had to remain small in order to fit smaller res screens
  • while there are no shortcuts for brushes and colors, there is a shortcut for properties window. however, these shortcuts and toolbar layout are different for every language, meaning i'd have to measure toolbar offset and brush positions for every single language if i ever want to port the game to more language than i should. the layout on win11 is also different than the one on win10
  • arrow keys move the cursor, meaning i wouldn't be able to bind the controls on arrow keys

and so on...


Veljko Roadhog

Response to i made a playable snake game in mspaint window 2023-05-10 00:05:25


Man I love ms paint. Still using it for most of my art.

My last project with ms paint was this game: NewGrounds Run

All graphics in this game were made in ms paint.

It wasn't challenge of some sort, I just like to make pixel art in this program :)


I love NewGrounds :)

BBS Signature

Response to i made a playable snake game in mspaint window 2023-05-11 11:55:23


i updated the game so you can select the brush size before the game starts, along with some tutorial explaining it all. here's how it works:


iu_968804_11091280.gif


Veljko Roadhog

Response to i made a playable snake game in mspaint window 2023-05-11 22:40:58


I make games in MS Paint and Stencyl! Glad to be in the club and have you here too!

Response to i made a playable snake game in mspaint window 2023-05-12 01:00:39


How do you get the ray gun in level 18???


I'm like nelson mandela... every time you punish me, I only get stronger......

BBS Signature

Response to i made a playable snake game in mspaint window 2023-05-12 07:09:56


At 5/11/23 10:40 PM, ZebraHumor wrote: I make games in MS Paint and Stencyl! Glad to be in the club and have you here too!


oh really? that's awesome! care to show some of your work? o:


Veljko Roadhog

Response to i made a playable snake game in mspaint window 2023-05-12 07:10:17


At 5/12/23 01:00 AM, MeatMaster wrote: How do you get the ray gun in level 18???


kjkszpj


Veljko Roadhog

Response to i made a playable snake game in mspaint window 2023-05-12 11:14:28


At 5/12/23 07:09 AM, Sodoj wrote:
At 5/11/23 10:40 PM, ZebraHumor wrote: I make games in MS Paint and Stencyl! Glad to be in the club and have you here too!
oh really? that's awesome! care to show some of your work? o:

Response to i made a playable snake game in mspaint window 2023-05-12 12:29:33


At 5/12/23 11:14 AM, ZebraHumor wrote:
At 5/12/23 07:09 AM, Sodoj wrote:
At 5/11/23 10:40 PM, ZebraHumor wrote: I make games in MS Paint and Stencyl! Glad to be in the club and have you here too!
oh really? that's awesome! care to show some of your work? o:
https://www.newgrounds.com/portal/view/718516


that was cute, or should i say, zebrilliant! seeing someone center themselves around making zebra puns for so many years endears me to no end, it's very zebremarkable. can't blame you though, zebras are truly striking creatures


Veljko Roadhog

Response to i made a playable snake game in mspaint window 2023-05-13 00:02:55


At 5/9/23 03:52 PM, Sodoj wrote:
At 5/9/23 03:07 PM, Ketamine-Poptarts wrote: thats amazing, i never knew ms paint could do anything like that
paint is just there to display visuals, it doesn't execute any code, python does all of the work. the core loop of the script could be basically executed in any drawing software, or any software for that fact. with that said, the game/board setup part of the code was tailor made for mspaint because it's a little quirky piece of shit (that i love) which made getting this to work a real pain. some of the quirks include:
and so on...


"python" heh

"snake" lol


Schizo Autist with bonus ADHD


I do the haha funni voic, and make the vidyo gay muzik, I also write okay... I think?

BBS Signature

Response to i made a playable snake game in mspaint window 2023-05-20 18:03:57


small update, managed to win 2nd place at ludum dare in innovation category!

iu_975681_11091280.png


Veljko Roadhog

Response to i made a playable snake game in mspaint window 2023-05-21 01:40:21


At 5/20/23 11:48 PM, Snug-Bug wrote:
At 5/9/23 01:38 PM, aapiarts wrote: MS Paint can be pretty powerful when used right
Thinking about it, i wonder if the classic DOOM could be made in MSPaint.


the answer is yes, it could be made


could it run?

depends, how do you define run


HOLD ON FOR THE NORTHERN STAR

BBS Signature

Response to i made a playable snake game in mspaint window 2023-05-21 04:22:35


At 5/20/23 11:48 PM, Snug-Bug wrote:
At 5/9/23 01:38 PM, aapiarts wrote: MS Paint can be pretty powerful when used right
Thinking about it, i wonder if the classic DOOM could be made in MSPaint.


If it can run on a pregnancy test, it can run on MS Paint


Look at him spin

BBS Signature