My take on Snake

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: My take on Snake

Re: My take on Snake

Post by maestrith » 05 Oct 2017, 08:27

feiyue wrote:@maestrith Your realization is wonderful! The code is so streamlined. :thumbup: :thumbup:
It contains many advanced applications of AHK, and I can learn a lot. Thank you for sharing!

Thanks :) and no problem.

Re: My take on Snake

Post by feiyue » 05 Oct 2017, 07:57

@maestrith Your realization is wonderful! The code is so streamlined. :thumbup: :thumbup:
It contains many advanced applications of AHK, and I can learn a lot. Thank you for sharing!

Re: My take on Snake

Post by SpeedMaster » 30 Sep 2017, 16:38

For reference you can find here another snake game (Snake By Krogdor)

https://autohotkey.com/boards/viewtopic ... 69#p173269

have fun ;)

Re: My take on Snake

Post by Hellbent » 28 Sep 2017, 19:54

Very cool.
Adding obstacles might make it a bit more interesting.

Re: My take on Snake

Post by maestrith » 17 Sep 2017, 19:02

CSWinnall wrote:when I run snake I get this window pop up

2017-09-16.png

Im on windows 10 and ie 11

Any Ideas?

Many Thanks

Not really sure what is going on there :( Everything "should" be included and working. I'll have to do some troubleshooting through PM to see what's up.

Re: My take on Snake

Post by maestrith » 17 Sep 2017, 18:58

yawikflame wrote:does this snake have anything to do with the one you helped me with?
:D :D
if so, i'm glad i got you into it ;)

The idea was from that project, but I don't think I re-used much.

Re: My take on Snake

Post by yawikflame » 16 Sep 2017, 17:26

does this snake have anything to do with the one you helped me with?
:D :D
if so, i'm glad i got you into it ;)

Re: My take on Snake

Post by CSWinnall » 16 Sep 2017, 00:15

when I run snake I get this window pop up

2017-09-16.png
2017-09-16.png (18.34 KiB) Viewed 1074 times


Im on windows 10 and ie 11

Any Ideas?

Many Thanks

Re: My take on Snake

Post by maestrith » 01 Sep 2017, 12:21

SKAN wrote:Very nice! :)

Thank you :)

Re: My take on Snake

Post by SKAN » 01 Sep 2017, 12:17

Very nice! :)

Re: My take on Snake

Post by Masonjar13 » 28 Aug 2017, 23:29

Game Jolt! It's an indie game dev site. It would get a decent bit of attention on there, I think. Users might be a bit more critical about it, though, but it would be good feedback if you're looking for that.

Re: My take on Snake

Post by maestrith » 28 Aug 2017, 22:56

jeeswg wrote:This is amazing, I was thinking of doing Snake at some point, but this is better than what I would have come up with, although I might still have a go (at some point). Thanks for sharing.

Some things I was thinking of:
- faster speed
- smaller board
- secret (or not) option to beep when the snake hits itself in Zen mode (it's good to know when you pull off a cool 'just missed the tail' trick that you did in fact actually avoid an overlap
- secret (or not) option to prevent the snake from moving into itself, 'solid' mode (i.e. pressing the arrow key at that point would do nothing if it would cause a collision)
- (I only mention 'secret' because the options menu looks quite full already!)

Also:
- call it caterpillar, it looks more like a caterpillar, or snAHK hehe, actually nah Snake is fine
- AHK green/red colours ftw

Faster Speed:
-I had that in at one point, but I re-wrote the code and forgot to put it back in.
Smaller Board:
-You can kind of do that by changing the size of the snake itself. You can have basically a 2x2 board by making your board 500x500 and the snake 250
Beep on collision:
-The way I play it, it would never stop. I crank it up to 500 body segments a lot.
Solid Mode:
-Not real sure how I would do that...
I do like the idea of SnAHK as a name :) but it's already Snake. Thanks for the kind words!

Re: My take on Snake

Post by jeeswg » 28 Aug 2017, 22:43

This is amazing, I was thinking of doing Snake at some point, but this is better than what I would have come up with, although I might still have a go (at some point). Thanks for sharing.

Some things I was thinking of:
- faster speed
- smaller board
- secret (or not) option to beep when the snake hits itself in Zen mode (it's good to know when you pull off a cool 'just missed the tail' trick that you did in fact actually avoid an overlap
- secret (or not) option to prevent the snake from moving into itself, 'solid' mode (i.e. pressing the arrow key at that point would do nothing if it would cause a collision)
- (I only mention 'secret' because the options menu looks quite full already!)

Also:
- call it caterpillar, it looks more like a caterpillar, or snAHK hehe, actually nah Snake is fine
- AHK green/red colours ftw

Re: My take on Snake

Post by maestrith » 28 Aug 2017, 22:33

No idea what Jolt is, but I may look into it.

Re: My take on Snake

Post by Masonjar13 » 28 Aug 2017, 22:05

You should consider releasing this on Game Jolt ;) You might also consider adding an option for the boundaries to kill (that's how I'm use to playing it, anyway).

Re: My take on Snake

Post by maestrith » 28 Aug 2017, 21:54

Update:
-Settings: Changing board size does not reload the script

Re: My take on Snake

Post by SpeedMaster » 28 Aug 2017, 15:52

Too bad for me :(
I can not install the new version for the moment... thanks anyway. :)
Btw, I am also working on a snake game (almost finished) :D
I will release it soon.

Re: My take on Snake

Post by maestrith » 28 Aug 2017, 14:32

SpeedMaster wrote:Hello,
Very nice ! :thumbup:
but... Only the modified by Masonjar13 old version is working for me :cry:

Error: 0x80020006 - Nom inconnu.
Specifically: CreateElementNS
---> 103: defs := this.Doc.CreateElementNS("http://www.w3.org/2000/svg","defs")

I am using SVG which requires IE 11+. Divs start to flicker badly, at least on my system, at around 100 or so and the SVG do not flicker even when my PC starts to slow down at 500 or so. https://support.microsoft.com/en-us/help/17621/internet-explorer-downloads but Windows 7 is the minimum OS that will run it.

I tried the older version using IE 10 and below and the body segments were rectangular not square :( It just won't work properly below 11.

Re: My take on Snake

Post by SpeedMaster » 28 Aug 2017, 12:54

Hello,
Very nice ! :thumbup:
but... Only the modified by Masonjar13 old version is working for me :cry:

Error: 0x80020006 - Nom inconnu.
Specifically: CreateElementNS
---> 103: defs := this.Doc.CreateElementNS("http://www.w3.org/2000/svg","defs")

Re: My take on Snake

Post by maestrith » 28 Aug 2017, 09:07

Added:
-Board Size: Select and it will Reload (Will make this not reload in a future release)
-Snake Size
-Shift+Escape also exits the game

Top