WPF C# Tutorial – Create a Flappy Bird Game in Visual Studio
- Subject: WPF C# Tutorials
- Learning Time: 2 hours
Adding Events for the flappy bird game
In this section we will start adding events for this flappy bird game. We have two events linked inside the title tag. Key Down event and the key up event. We need to add our logic to make this game interactive.
Right click on the Canvas_KeyisDown keyword and click on Go to Definition
This action will take you to the code view in Visual Studio.
As you can see the Canvas_KeyisDown event is added to the code now. We need to do the same to the key is up event.
Right click on the key is up event and click on go to definition
Once again visual studio has added the key is up event automatically after the click.
Now we can add our variables, functions and import name spaces to make this game work.
Continue on in Page 4
- c# game development
- flappy bird development
- flappy bird wpf c#
- game development wpf
- make games in visual studio
- wpf project files
- wpf tutorial