Skip to content

Game Platformer is a dekstop game written in the C# programming language and its own game engine that uses the OpenTK wrapper library of the OpenGL graphics library.

Notifications You must be signed in to change notification settings

nikasuschinskaya/Game-Platformer-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game-Platformer-

Game Platformer is a dekstop game written in the C# programming language and its own game engine that uses the OpenTK wrapper library of the OpenGL graphics library.

User Interface

After launching the developed game application, the main menu window appears, which contains a pleasant-looking background, the name of the game and four buttons: "Start the game", "About the author", "Help" and "Exit".

image

Initial character characteristics:

  • number of lives – 10 units;
  • the number of health points is 100 units;
  • the number of keys is (n–1) pieces, where n is the level number;
  • speed – 0.

Types of blocks

  • solid block – impassable;
  • block platform – with the possibility of passing through it;
  • block-stairs – it is only possible to go down and up;
  • block-stairs with a platform – with the ability to stand on it;
  • blocks-spikes – take a life;
  • block key - transition to a new level.

image

Enemies

The player's goal is also survival. In this he is hindered by his enemies.

image

The first enemy in the drawing is a horizontally moving enemy, the second is changing its size, and the third is shooting. When touching any of the enemies, one health point is taken away. The total number of health points removed will depend on the duration of contact with the enemy. The shooting enemy has an infinite number of bullets in his arsenal, which he shoots about once every 1.5 seconds. When bullets hit a player, 10 health points are removed from him.

Gameplay

After clicking on the "Start Game" button, the OpenTK library window opens with the first level of the game application loaded. At the first level, the main goals for the player are to master the control of the character, to get to know the enemies, as well as to observe what health points are taken away for and get their first key. The key is a block-a transition to the next level.

image

It is worth noting that the entire level cannot be seen. To preserve the intrigue and interest of the player, there is a scope of visibility. The visibility area of the level is approximately ten blocks from all sides. This is enough to dodge enemy attacks and see the obstacles further. The number of lives, health points and the number of keys are displayed in the name of the window. After passing the first level, the player meets the second one. At the second level, the difficulty increases, as the "spikes" object appears, which removes the whole life.

image

At this stage, it is worth noting that at each level, the number of lives and health points are updated. At the second level, the player is met, in addition to spike blocks, platform blocks. You can both stand on these blocks and walk through them, if necessary. This feature can be used in cases where the thorns are so that it is difficult to jump over them.

image

You can also observe changes in the panel at the top of the window. Now the player has one key, he is stubbornly moving towards victory. However, if the player runs out of lives, then a pop-up window will be waiting for him with an offer to complete the game again. When you click on the "Yes" button, the game will start again from the first level, and if you click on the "No" button, then you will exit the game.

image

But if you managed to pass the second level without losing, then the player meets the most difficult final third level.

image

This level is characterized by its maximum complexity, so for its passage it is necessary to carefully calculate each step and jump. At the third level, you can also observe a change in the number of keys in the header. Now the player has two keys, and it remains to get the third key to win.

The player's fall from the platforms is implemented in such a way that if the character's fall time is more than 5/6 seconds, then (t-40) health points are taken away, where t is the time of falling from the block. Upon successful completion of all levels and obtaining the last key, the player will be greeted with a victorious pop-up window with congratulations.

image

When you click on the "OK" button, the program will end.

Testing

The Platformer Game Tests project for unit tests contains tests for important and complex functional classes. This project allows you to check whether the developed classes and their methods and properties work correctly.

image

About

Game Platformer is a dekstop game written in the C# programming language and its own game engine that uses the OpenTK wrapper library of the OpenGL graphics library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages