![]() ![]() To win, the player had to last the longest without hitting anything else. Similar to what would soon become Snake, it involved pressing arrow keys to move each character, wherein players would leave a solid trail behind them wherever they turned. It was first created as a concept in 1976 under the name of Blockage, and was a monochromatic two-player arcade game developed by video games company, Gremlin Interactive. Snake’s story begins long before it found a mass audience with Nokia. This was the dawn of a new use for the mobile phone, and a game that would instantly turn into a phenomenon. The snake would grow and grow, before bumping into itself and bringing you right back to the start. Like pressing the chunky buttons – “beep beep beep” – as the Nokia would unleash its recognisable chime, while steering the speedy trail of pixels to collect bits of cellular food. Snake was my first real introduction to tech and the world of mobile phones, and it’s one of those ubiquitous games that brings back a flood of nostalgic memories. I can recall the frustration and enjoyment experienced while gaming with this humble, yet utterly addictive creation. He’d oblige, and in doing so, his phone was given a new use other than its usual work-related SMS texting and phone calls. Before receiving my own (the one that had a blue-ish cover and the flashy lights on the side), I remember tirelessly asking my dad to let me play Snake on his old 6110 “brick”. The following week, it would be another teenage classic from the early 2000s.īut this wasn’t all your Nokia had to offer. I’d set the song up on my Nokia phone, and so did everyone else. The first takes me back to an afternoon on the school bus, eagerly waiting for my Bluetooth polyphonic ringtone of Akon’s Beautiful to download from a friend a few seats away. Instead of the game finishing when you hit the edge of the screen, make the snake re-appear at the opposite edge of the screen.Ī full listing with challenges is available here: activities is maintained by storm-coder-dojo.There are a couple of moments from my childhood that I’m sure many others can relate to.Make the snake go faster as it grows longer.Draw a box around the playing area so it is easier to see the edges.Write “Game Over” on the screen when the game finishes.Don’t move the snake until the player presses a direction.To extend your program, try one of the following challenges: onkey ( lambda : change ( 0, - 10 ), 'Down' ) move () done ()Ī full listing is available here: Challenges onkey ( lambda : change ( 0, 10 ), 'Up' ) Screen (). onkey ( lambda : change ( - 10, 0 ), 'Left' ) Screen (). onkey ( lambda : change ( 10, 0 ), 'Right' ) Screen (). pop ( 0 ) clear () for body in snake : draw_square ( body, body, 9, 'black' ) draw_square ( food, food, 9, 'green' ) update () Screen (). append ( head ) if head = food : food = randrange ( - 15, 15 ) * 10 food = randrange ( - 15, 15 ) * 10 else : snake. From turtle import * from random import randrange snake = ] aim = food = def change ( x, y ): aim = x aim = y def draw_square ( x, y, size, name ): up () goto ( x, y ) down () color ( name ) begin_fill () for count in range ( 4 ): forward ( size ) left ( 90 ) end_fill () def inside ( head ): return - 200 < head < 190 and - 200 < head < 190 def move (): head = + aim, snake + aim ] if not inside ( head ) or head in snake : draw_square ( head, head, 9, 'red' ) update () return snake. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |