Skip to content

mooict/Pac-man-game-tutorial-in-windows-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C# Pac man game tutorial in Windows Form

In this tutorial we will be making a simple pac man game in visual studio with Windows form and C#. In this game we will control pac man in 4 different directions. Up, down, left and right. In the images you will find a GIF to represent all 4 directions. You have 4 walls and 3 moving ghosts in the game. The main objective of this game is to, collect all of the coins and not touch the ghosts or walls. IF you do then the game is over.

3 Ghosts in the game will have their own movements and collision with the walls and the player. This process will give you an idea of how to program standard AI inside of a game and you can use the same process in other projects.

We will learn how to make this together by adding of the elements manually and then writing the c# script animate and logically progress through the game.

Instead of removing the elements from the form this time around we are using a different approach. We will show you how to make a component invisible in Windows Form once you have interacted with it, and gain a score from it.

Hope you have fun with this one, and keep making stuff it really doesn't matter what it is long as you keep at it you will only get good at it.

Video Tutorial -

Written Tutorial - https://www.mooict.com/c-tutorial-create-a-simple-pac-man-game-in-visual-studio/

Releases

No releases published

Packages

No packages published

Languages