This repository/game is part of a career day presentation I had to give on 5/10/16.
The slides and a rough outline of what I said/when I said it and my powerpoint slides can be found in the speech.md file.
My goal was to demonstrate something fun they could create if they learned how to program and also as a fun, interactive, "see if you can get the high score" activity at then end.
The game is pretty simple and pretty easy to understand how it works.
The code is a little bit all over the place but I plan on cleaning it up it a little bit more before the presentation.
- Ball hits goalie/bottom game piece:
- Change ball direction to up
- Keep X (left/right) direction going the same way
- Ball hits a brick
- Change Y direction (up/down)
- Change X direction
- Ball hits left wall/boundary
- Keep Y direction
- Change X direction
- Ball hits right wall/boundary
- Keep Y direction
- Change X direction
- Ball hits below the goalie
- End the game
- Points < 5
- Ball X Speed: 2px/100ms
- Ball Y Speed: 2px/100ms
- Points >= 5 && Points < 10
- Ball X Speed: 3px/100ms
- Ball Y Speed: 4px/100ms
- Points >= 10
- Ball X Speed: 4px/100ms
- Ball Y Speed: 6px/100ms
Thank you to Alex Dresko for the base speech, experiment (which went 10x better than expected and the kids loved it) and some of the slide images.
I didn't have a clue on what to talk about until reading your post. I also had the same question asked many of times.. "Do you have any games or apps in the app store?" I need to get a game in the App Store before doing another one of these.
http://www.alexdresko.com/2014/11/21/my-20-minute-software-developer-presentation-for-7th-graders/