Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

8.12.2016

Scratch Game Programming!

Late July and early August we had a small group of teens show up for some game programming using Scratch, and easy to use programming environment that lets you snap together blocks of code similar to Legos. Attendance may have been small, particularly for the second and third sessions, but the teens worked hard and were proud of what they'd made, so I still call that a success!


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!

7.30.2015

D.I.Y. micro-games with Scratch!

The past two Wednesdays we had a program that I was really excited to finally try out at Sellers Library- making games with the Scratch programming language! Making games on a hobby and indie level has become increasingly popular, and there's more and more free and easy to use tools perfect for starting to try making your own games. For an entry level program, we used Scratch, which makes coding as easy as taking blocks of code and snapping them together.

The first Wednesday we had 11 teens show up. After a brief introduction to the Scratch program, they were each challenged to make a simple game consisting of a maze, a character the player can control and a goal to reach. It should be noted that we had some technical difficulties and some computers were having troubles connecting to the internet, meaning all the graphics had to be drawn with the simple paint program included instead of simply grabbing some graphics from the included library. We pressed on though, and each person made wildly different versions of a maze game! I'm including a lot of them below, and they are as-is, so some have problems with collision detection or movement, but one of the fun aspects of Scratch is that anyone can "remix" a shared project, so anyone is welcome to make a copy and add their own touches to it! It will even show up on the original project's page, by clicking the "tree" icon (to see the other projects branching out).

The second Wednesday session was a little smaller with 7 teens. This time the challenge was to take a project that had already been started, in this case a simple Pong clone, and play it a bit. As they were playing, I asked them to call out impressions about the game, or ideas to improve it. Lots of ideas were put forth, such as adding a second player, adding a scoring system, having the ball speed up as you played or adding background music. We then spent time getting some of these items added in, and then the remainder of the session was spent adding or changing whatever they wanted. Once again some ideas worked more than others, or sometimes just adding in something random did something crazy, and there might not have been enough time left to get things working again, but I'm including these as-is to be tinkered with additionally.

Click through the break below to see the embedded games. (I'm putting them below a page break to reduce loading times on the main page!)