× Main Menu

C# Tutorial – Create a simple platform game in visual studio

In this tutorial we will create a simple platform game in visual studio using C# (sharp) programming language. This game will have points to collect, blocks to jump on to and a door to end the level. This is a basic level programming for a platform game and you should be trying to create another level once this is completed.

Lesson Objective –

  1. Create a platform game using picture boxes
  2. Allow the player to land on top of the picture boxes
  3. Run loops to search where the play has landed and take appropriate action
  4. Use foreach loop to search individual components in visual studio controls
  5. Assign TAG’s to platforms and interact with them
  6. Assign TAG’s to coins and interact with them
  7. Include a game completion format

 

note- There will be some flickering when the character moves and jumps onto the platform, this is caused because of Visual Studio debugging not because of the code, the game will still be working as usual. 

 

Download platform game images for this project.

C_Sharp_platform_Game_In_Visual_Studio




7 responses to “C# Tutorial – Create a simple platform game in visual studio”

  1. maas says:

    it is not simple!!!!!!!!!!

  2. Anhar Ali says:

    It’s a simple game tutorial, all it takes it is patience and practice. I’ve failed making this lots of times and it only had to work once for me to start understanding what made it work. Don’t give up

  3. Ann says:

    How can I do it in WPF?

  4. Anhar Ali says:

    WPF tutorial on platform game will be on here soon.

  5. Ann says:

    I’m making it but I’m stucking at key move of Player

  6. Pete_r61 says:

    Could you post the code somehow. Because a copy of the current code does not jump.

  7. Anhar Ali says:

    Are you sure where are you stuck on the code?

Comment on this tutorial and let us know how you got on -

%d bloggers like this: