Overview
In this tutorial, you create a game with bouncing balls. The tutorial includes five articles explaining how to build the game step-by-step.
The game concept
The game consists of two panels with bouncing balls and control elements. Balls move within the boundaries of each panel at a specified speed. The control elements do the following:
- control speed of the balls
- display the number of collisions
- show full statistics on the balls
When you finish, you have a complete game.
You can find the game sources in this repository.
What you learn
Use all steps of this tutorial to learn about the following tasks in the Visual Studio Integrated Design Environment (IDE).
- Store objects, such as balls,
in a List
object. - Use a
foreach
method to iterate through items in a list. - Keep track of ball collisions by using an event action.
- Make a timer that activates the balls.
Prerequisites
The Visual Studio Integrated Design Environment (IDE) provides the tools you need to create the app. To install Visual Studio IDE, see the Download page. To learn more, check the Welcome to the Visual Studio IDE.