Flash Game
I chose to work on this project alone. At first I really wanted to do the game Flappy Bird, but I wasn't able to download the code for it. Afterwards I really wanted to do a 2D Mario game, but the process turned out to be too long and too difficult. In the end, I chose to do the snake game because it is a fun and addicting game. I found the snake game tutorial (with the full code) in Chris's DP, and I chose to do that one because all the other tutorials were too advanced for me to do and I have very, VERY little skill in coding. For me, the main problem I had was changing the block size and the size of the background. Not knowing anything about how to make a flash game was really challenging. I got really frustrated when I was changing the size of the snake, because I had to change everything else, and the size of the images that I used for the food and snake had to be changed too, and what happened was that it would go past the background width and length. But once I figured out what was wrong, everything worked out. The feedback I got from my classmates were simple things, like changing the color of the background, or making the snake and food a little bigger.
Code Modification:
Before:
After:
I changed the size of the snake and food, as well as the game height, game width, and background width/height. First, I chose the block size I wanted for my snake and food which was 35. Then what I had to do was take the previous width and height of the background, which was 240 by 360, and then I chose a new width for it, which was 1000. I then had to multiply 240 by 1000 and the total divided by 360 (240x1000=240,000 / 360= 666.66) and I rounded that to 675. After that, I took the new background height, 675 and divided that by 35 and got our new game height which is 19.28 which I rounded to 19. Then I took the new background width, 1000 and divided that by 35 again and got 28.57 which I rounded to 29. I wanted to make the size of my snake a little bigger, but in order to do that, you had to change everything else or else the snake would go past the border of the background.