Skip to content

A simple console-based helicopter game implemented in C++. Control the helicopter to avoid obstacles and see how high you can score!

License

Notifications You must be signed in to change notification settings

swetamishra123/Helicopter-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helicopter Game

Description

A simple console-based helicopter game implemented in C++. Control the helicopter to avoid obstacles and see how high you can score!

How to Play

  • Press 'w' to move the helicopter up.
  • Press 's' to move the helicopter down.

Game Elements

  • Helicopter (H): Represented by the letter 'H', control its position to avoid obstacles.
  • Obstacle (|): Vertical bars represent obstacles. Navigate the helicopter through them.
  • Ground (-): The ground is displayed at the bottom. Keep the helicopter above it to survive.

How to Run

  1. Clone or download the repository.
  2. Compile the C++ code using a C++ compiler (e.g., g++, Visual Studio).
  3. Run the compiled executable.

Dependencies

  • C++ compiler.

Additional Notes

  • Adjust the game loop delay in the code if needed (std::this_thread::sleep_for(std::chrono::milliseconds(100))).

Contributions

Contributions are welcome! If you have ideas for improvement or new features, feel free to submit a pull request.

License

This project is licensed under the MIT License.

About

A simple console-based helicopter game implemented in C++. Control the helicopter to avoid obstacles and see how high you can score!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages