Achilles Posted January 5, 2010 Posted January 5, 2010 (edited) Classic Snake v1.1New with version 1.1Keep track of high scoreMore equal scoring (e.g. Faster gets more, slower gets less, etc)Fancier "game over" screen (many thanks UEZ)Few changes in GUI to make it a bit more professionalCheck that screen size fits before updating GUIHotkey for pause to make pausing more accessibleBug with eating an apple when the snake is shorter than apple weightBug with eating two consecutive applesDownload here: Snake 1.1.zipPrevious number of downloads: 143I have lots of ideas for updates; however I wanted to release a fully working version (I hope; let me know if you find bugs of course) while I had one. Here's some of my ideas (feel free to add):Mazes! (Maybe even a custom maze editor so the user can make their own)Different languages (way the code is this would be very easy to do, if someone wants to help out here that would be great) Edited January 20, 2010 by Achilles My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Jjo Posted January 5, 2010 Posted January 5, 2010 Nice little game, online high scores would be great. Projects: -Handy Musicplayer
Achilles Posted January 6, 2010 Author Posted January 6, 2010 On 1/5/2010 at 4:32 PM, 'Jjo said: Nice little game, online high scores would be great.I might do that.. Although first I would need to make it so no matter what way you're playing you can get about the same score with the same amount of work.. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Mat Posted January 6, 2010 Posted January 6, 2010 You should definitely check whether the GUI will fit the screen. Even on 'american'... Other than that, Pause and resume options would be great. AutoIt Project Listing
Achilles Posted January 6, 2010 Author Posted January 6, 2010 On 1/6/2010 at 1:11 PM, 'Mat said: You should definitely check whether the GUI will fit the screen. Even on 'american'... Other than that, Pause and resume options would be great.Wow.. It's very surprising that I didn't think of checking screen size, especially since it will be very easy to implement. Thanks for that idea. Just click the screen to pause and then if you hit one of the arrow keys it will resume (or click the screen again). My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Mat Posted January 6, 2010 Posted January 6, 2010 Its surprisingly hard to click the screen when my right hand is tapping away manically trying to control an uberfast snake... I get the idea though. Perhaps a little accelerator would do the trick, end is a good option there. AutoIt Project Listing
Hawkwing Posted January 7, 2010 Posted January 7, 2010 It has an error if you eat the apple before at least 5 parts of the snake appear, also, what happens if you swallow two apples in a row and they are each supposed to grow you 5 spaces, does that work? The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.
Achilles Posted January 7, 2010 Author Posted January 7, 2010 On 1/6/2010 at 9:01 PM, 'Mat said: Its surprisingly hard to click the screen when my right hand is tapping away manically trying to control an uberfast snake... I get the idea though. Perhaps a little accelerator would do the trick, end is a good option there.Ok, I'll add a hotkey... A long time ago I was working on full _GUICtrlHotkey_* UDF I might pull that up and let the user choose their own hotkey. On 1/7/2010 at 2:15 AM, 'dantay9 said: Nice little script. I like it a lot.Thanks! On 1/7/2010 at 5:37 PM, 'Hawkwing said: It has an error if you eat the apple before at least 5 parts of the snake appear, also, what happens if you swallow two apples in a row and they are each supposed to grow you 5 spaces, does that work?I know the second you mentioned, but the first was news to me. Thanks for mentioning that.@All: I've added your suggestions to my to-do list and will get on those as soon as I have time. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Mat Posted January 7, 2010 Posted January 7, 2010 If you want an example of using a hotkey control then I used it in my settings dialog in THE AutoIt Tool, the code for converting etc is at the bottom, including some code for converting to the send style syntax for HotkeySet._GUICtrlHotkey_* sounds like a fun project, fairly simple as well (by controls standards that is). AutoIt Project Listing
Achilles Posted January 20, 2010 Author Posted January 20, 2010 UpdatedSee first post for details. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
UEZ Posted January 20, 2010 Posted January 20, 2010 I wondered why I get "only" one explosion when the game is over! But you linked the amount of explosions to reached score. The higher the score the more explosion can be seen! Nice implementation! UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
lordicast Posted February 9, 2010 Posted February 9, 2010 (edited) Error: \Snake_1.1\GameOver.au3(123,101) : ERROR: _GDIPlus_BrushSetSolidColor(): undefined function. _GDIPlus_BrushSetSolidColor($explosion_coordinate[$n][$o + 6], $explosion_coordinate[$n][$o + 7]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ \Snake_1.1\Snake.au3(452,19) : ERROR: AdlibUnRegister(): undefined function. AdlibUnRegister() ~~~~~~~~~~~~~~~~^ \Snake_1.1\Snake.au3(453,32) : ERROR: AdLibRegister(): undefined function. AdLibRegister('_Move', $speed) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ Snake_1.1\Snake.au3 - 3 error(s), 0 warning(s) EDIT INFO: AutoitVersion 3.3.0.0 Seems I dont have Adlibregister or Adlibunregister is it part of UDF? Edited February 9, 2010 by lordicast [Cheeky]Comment[/Cheeky]
AdmiralAlkex Posted February 9, 2010 Posted February 9, 2010 On 2/9/2010 at 4:57 PM, 'lordicast said: EDIT INFO: AutoitVersion 3.3.0.0Seems I dont have Adlibregister or Adlibunregister is it part of UDF?No all 3 were added in later versions of AutoIt. You should update to latest stable or something like that. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Hawkwing Posted February 10, 2010 Posted February 10, 2010 (edited) A few suggestionsUse pause key for pausing, or let user select hotkeyOption to use wsad keys instead of arrowsHave it pause if you click on a menu while playingHave score be relative to field size as well as time and speed Edited February 10, 2010 by Hawkwing The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.
Hawkwing Posted March 30, 2010 Posted March 30, 2010 If you are still working on this, I would also suggest adding in wsad functionality, and changing how the hotkeys work, so I can use the arrow keys for other stuff when the Snake window isn't selected. The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now