
Lets get to know the content we will be working with in this tutorial. I have curated the perfect graphics for this application to make it look and feel like a real game. All of the elements are available to download using in the resources section.
Its important to know the tools of trade. In this case we will be using Visual Studio as our main IDE to make this game. Most of the time you probably will have this already set up, but if you don't for some reason then you can check this section of the tutorial where we will explore how to get visual studio set up and what needs to be installed in order to make this game.
Jumping right into making the start window of this application. We will add lots of features to this windows form for example we will use buttons, labels, panels and radio buttons to enhance the GUI for this game. Behind the scenes we will load the graphics dynamically from the programs folder and load it the game. You will also load values from a text file to show the saved highscore for this game.
This is the birds Class. As mentioned before we will be using object oriented programming for this project. This class will contain the height, width, position, status and movement of the bird. We will manually code the class from scratch so follow along at your own speed. It would be preferable to take your time and understand the class as you are writing it.
Now we made it to the games window. This is where all of the action happens and this where we will bring everything together. In this window we will use the class we created before and use that to make the birds appear and move on the screen. For the Start window we dragged and dropped all the elements from the toolbox to make the GUI work. For this window we will code all of the elements and place them into the form from C# scripts directly. We will also link this window to the title screen so they both can communicate with each other and tell the game which background the player chose from the first window.
Thank you so much for making to the end of the course. I hope you had fun with this and also I hope you learned something new. It was a lot of fun for me to make something like this and it reminded of those old school games that defied expectation on the systems it could run on. I always make lots of video tutorials and put them on my youtube channel MOOICT. Come and check out some more exciting projects you can dig in to.
See you there and very well done on this one.
Welcome to the Flappy Bird Hunting game master class. This course has been meticulously planned to challenge your views on the capabilities of windows form. What if we can make an interactive, fast paced, multi object shooting game in windows form with C# and nothing else? What if this game would spawn and respawn objects, allow the user to have crosshair on their mouse cursor, play music and register the hits on the birds and reward the players accordingly? Does this game sound impossible in windows form? Yep it kind of does, until you realise that someone as stubborn as you and me will have to find a way to do just that. Why? Well, why not.
Windows form is an amazing platform for learning programming. Its very basic what you see if what you get platform and most of the times we learn by making calculators, image viewers or other desktop style applications. Windows form is not made for games development but its an interesting challenge to be able to mimic or build similar games as the ones existed before in this limited platform only using the tools available inside of visual studio and not using any of the big game’s engines such as GODOT, Unity or Unreal.
I want to explore the hidden or less used features of windows form that can potentially be used to make actual games on the platform and for us to learn how to use C# programming in a more productive and effective way.
Although this is a games development course at the heart of it it’s a programming course. We will complete the course together by making a flappy bird hunting game that’s full of Challenges.
Features
Make a flappy bird hunting game using native C#, Windows Form, .Net and Visual Studio
Import sprite images to animate the bird, MOO, and coin in the game
Have a cross-hair to follow the player mouse cursor
Add the Media Player dependency for .Net through visual studio to play multiple Mp3 files together in the game
Allow players to mute or play the music and sound effects in the game
Load external sound effects to the game such as bullet sound and background music
Load external background images for the game and allow the user to pick a new background for their game play
Load lots of different birds in the game, this will be the bird sprites and we can animate each of them using separate sprite images from external folder
Create a BIRD CLASS and import that to the games window
Use the BIRD object in the game loop to check if they bird is dead or alive. If alive it will continue to fly within the bounds of the game and if DEAD it will spawn the coin animation and remove the current bird from the game.
Add a cow (MOO) that will be collecting the coins when it drops to the ground.
Play sound effects for MOO and the coin collection
Using different layers of elements to show the background, foreground, bird, MOO and cursor images in the game
Load and apply custom fonts to the game directly inside of Windows Form
Keep track of the score in the game and save the high score into a text file so it can be loaded and saved in permanent memory
Create a fun count down timer in the game and allow the users to hunt as many birds as they can within that time
Reward player with more bullets when they accurately shoot 5 birds in a row.
When the game is finished we can build a installation wizard to publish the game, this wizard will create a MSI and EXE file to be shared online or offline.
The installation process will be custom built, so it will contain the files we want to contain for the game and also include the icons for the file which will show with the desktop shortcut.
If you are not familiar with my work please check out my YouTube Channel MOOICT or search for MOOICT on google and you can explore the different types of educational content I make on my website and YouTube channel.
Happy Hunting everyone.