Congratulations on programming your first platform game! You’re no longer just someonewho plays video games, but someone who creates them.
The computer science concepts you used to make this program are some of the most importantconcepts in video game creation: events and If statements. However, these concepts aren’tjust important relative to video games, but to nearly everything you can do with computerscience. When you take a computer science class in high school or college, you'll seethese familiar concepts that you're using every day again and again. Future classeswill teach you more about creating with the events, variables, and if statements thatyou're using in this CS First club. There’s also a good chance you will usesome computer science down the road, because the concepts and skills you are learning noware put to use in many different fields--even in ones you may find surprising. Artists,for example, use computer science skills like events and if statements to create art. Thereis an entire genre of art, called interactive art, that includes art pieces that activelyinvolve the user.
Here is an example of an interactive art installation: a dance floor that reacts to touch events.
When the user steps on the dance floor, it creates a spiral pattern. The artist is responsiblefor programming how the floor responds to touch events.
Here is the same dance floor, except now, the floor is a different color and behavesdifferently. The floor looks different because the artist changed its code.
Here is another example of interactive art, the “wooden mirror.” It is made up ofmore than 800 wood pieces that reflect light in different ways, forming a mirror imageof the user.
The wooden mirror works by taking a black-and-white video, then using if statements to controlthe wood pieces. If an area of the picture is dark, then tilt the wood piece in thatarea down. If an area of the piece is light, then tilt that wood piece up.
These interactive art pieces would not be possible without computer science. Knowinga little computer science, like you are learning in this club, can empower you to be more creativein whatever field interests you. Next session, we’ll explore randomness usinga dodgeball game.
Until next time-- have fun creating and coding. See ya next time!