New Casual Game Releases [ one | two ]
Dream Sleuth
Dream Sleuth
Wisegal
Wisegal
Delicious: Emily's Holiday Season
Delicious: Emily's Holiday Season
Engineering: Mystery of the Ancient Clock
Engineering: Mystery of the Ancient Clock
Hide & Secret 3: Pharaoh's Quest
Hide & Secret 3: Pharaoh's Quest
Party Planner
Party Planner
Gardenscapes
Gardenscapes
Island Realms
Island Realms
Nat Geo Eco Rescue: Rivers
Nat Geo Eco Rescue: Rivers
1912 Titanic Mystery
1912 Titanic Mystery

I SPY  Spooky Mansion Deluxe
I SPY Spooky Mansion Deluxe
Luxor Adventures
Luxor Adventures
Escape the Museum 2
Escape the Museum 2
Nikopol: Secrets of the Immortals
Nikopol: Secrets of the Immortals
Picket Fences
Picket Fences
The Mystery of the Crystal Portal
The Mystery of the Crystal Portal
Cake Shop 2
Cake Shop 2
Murder, She Wrote
Murder, She Wrote
Alabama Smith in the Quest of Fate
Alabama Smith in the Quest of Fate
Season of Mystery: The Cherry Blossom Murders
Season of Mystery: The Cherry Blossom Murders

Snake: Flash game + tutorial


Snake tutorialThis version of the classic game of Snake is remarkable in that it comes with source code and a complete tutorial explaining the code by its author, Strille of Sweden. Available on his website, the tutorial is a great way for anyone to get started programming games in Flash. The code is simple and straightforward for even a novice to understand, and it features an excellent design, as well as some very good examples of maintaining game state data in arrays.

The link to the game, also from Strille's website, is an enhanced version of the one featured in the tutorial. Included is a high score list with which you can view an instant replay of any of the games in the list. Simply click the "view" link next to the score you want to see the replay for. The enhanced version also features an instant replay of your own game once you finish. Kudos to Strille for both sharing his code, and for the excellent additions to this classic game. Click.

15 Comments [leave a comment]

Strille has also written snake game in 746 bytes and tetris in 1kB, which are amazing.

i need some help
i'm a student
i need help me to gets code of snake and must using java programmig include Threads
thanks

hi
my name is matthew huffaker and i am having truble writing a pregream and , it would be greatly appriciated if you could send me the code for the snake game for a visual Basic. That would be greatly Appriciated

hahahaha! Sure, I'll get right on that.

hey, ive been looking for source code of any simple game that requires control of the mouse of arrow keys. im really into trouble. if you could help me it would be a great help.
thanks!!!

this game is too tough.can't have my fingers right on the target..sighn

hi
i'm trying to build a game similar to snake and i understand a fair bit of actionscript but i was wondering if someone could fill me in on how to make a "hitTest" action to make the square move to a different location.
Thank You

Hi John,

hitTest is a method of a MovieClip that tests to see if two MCs are overlapping anywhere.

When you say you're looking for a "hitTest action" what exactly do you mean by that? Do you mean simply when hitTest returns true that you want to move the square (what square?) to a different location?

If so, then all you do is set the square's _x and _y properties, which describe where on the stage it is located.

For example:

if(myMovieClip.hitTest(mySquareMC)) {
  mySquareMC._x = someNewLocationX;
  mySquareMC._y = someNewLocationY;
}

Hi...i m a student i need to get the code 4 multi snake or if possible code 4 a snake that moves on voice commands.

Sir,

hai! iam yuva, iam interested in developing Flash games and webdesign. kindly send me some interested gaming with sourcefiles/tutorials

What are you all talking about codes? I don't get it there is like codes in every single game in this whole entire website. Can someone please explain to me about these codes and how you do them PLEASE!!!!!!!!

What I don't understand is that people sometimes spend hours playing this. I don't get that they can be so bored...

hi, i'm a begginer in Flash. i need help, pls can you help me arrange for an actionscript book - used one.
pls help me. pls, i beg you.
thank you and God bless.
francis

it wont let me get on the game!! it just shows a little box thing up at the top left corner!!! HELP!!

I am having problems when I removed the movie clips. I made a new level but I can not attach or reduplicate the orignal movie clip
for (var i =0; i {
_root["movieclip" +i].removeMovieClip();
}
The fallowing scene says you have finish the first level. Next to continue
In the next level I want to update movie clips to more enemies, but however the movie clips donot show up.
_root.attachMovie("movieclip", "moviecli2",34)
gamer.

Leave a comment [top of page]

  • Please consider creating a Casual Gameplay account if you're a regular visitor here, as it will allow us to create an even better experience for you. Sign-up here!
  • PLEASE UNDERSTAND SITE POLICIES BEFORE POSTING COMMENTS
  • You may use limited HTML tags for style:
    (a href, b, br/, strong, em, ul, ol, li, code, spoiler)
  • To post spoilers, please use spoiler tags: <spoiler> example </spoiler>
    If you need help understanding spoiler tags, read the spoiler help.
  • Please Preview your comment before posting, especially when using spoilers!
  • No link dropping, no domains as names; do not spam, and do not advertise! (rel="nofollow" in use)
Enter your comment here:

Welcome! The best Flash and Casual games available on the Web get reviewed, discussed and recommended here.

Welcome! The best Flash and Casual games available on the Web get reviewed, discussed and recommended here.

Favorite Games [edit]

Save links to your favorite games here. Use the Favorites editor.

Top Rated | Recommended

Small Worlds Machinarium Rob Allen's Banner Game Revisited Submachine 6: The Edge Bloons Tower Defense 4 Spelunky Zuma's Revenge Grappling Hook This is the Only Level Dismantlement: Radio Alchemia You Are Games: Nudge Challenge Osmos Make It Good Torchlight Coconut Queen Powder Game Alice is Dead: Chapter One
Choose between Top Rated or random Recommended games. Setting is saved automatically.

Recommended
Casual Games Download

Escape from Paradise Plants vs. Zombies Enlightenus Bejeweled Twist Fizzball Unwell Mel The Adventures of Mary Ann: Lucky Pirates Alice Greenfingers 2 Avenue Flo Cake Mania 3 My Kingdom for the Princess Wandering Willows Bookworm Adventures Volume 2 Zuma's Revenge Campfire Legends: The Hookman Mystery Case Files: Madame Fate Gemini Lost Dracula 3: The Path of the Dragon Princess Isabella: A Witch's Curse Virtual Villagers 3: The Secret City The Amazing Brain Train
Support this site through your purchase of any game in this section. Thank you kindly. =)

Worth the trip

Jeff Tunnell's Make it Big in Games blog vidgamenews.com - gaming news and information from everywhere GameTap - the game news and reviews compilation site GameProducer: Profitable Game Development and Production blog Games Are Art Foot Loose Moose blog LazyLaces Kongregate Blue's News
Recommended external site links

Support JIG


Add this game to your website

Monthly Archives

Legal notice

All games mentioned and images appearing on JayIsGames are Copyright their respective owner(s).

All other content is Copyright ©2003-2009 Casual Gameplay. All Rights Reserved.

Game Walkthroughs




Flash Game License

Plants vs. Zombies

Link back to JIG!  

Jay is Games

[HTML code]