We started out by introducing the concept of code blocks with some simple examples from Code.org. In them, you're tasked with guiding a zombie from Plants Vs Zombies to a sunflower by placing the correct code blocks down. It's a fun little exercise that gets more challenging with each level, and tasks you to use the fewest code blocks possible to solve it. The teens caught on really quickly, and were having a good time with them too! You can try them out for yourself at the link below:
https://studio.code.org/s/course3/stage/2/puzzle/3
Two of the finished games are embedded after the break!
First up is Ultra Speed Pong. After the Code.org warm-up, the first thing we did during the first session was follow a tutorial to make a simple Pong clone. While I had thought people would want to move on and make something else afterwards, Ryan kept on refining and adding stuff to it. The end result is below, and can get pretty crazy as the ball speeds up each time it bounces. Player one uses the left and right arrow keys, and if you're playing two-player, they would use the 'a' and 's' keys. Mouse click on the green flag to start the games.
No comments:
Post a Comment