Coder Social home page Coder Social logo

spy-hunter's Introduction

Study project

Spy Hunter

A learning project whose goal is to write an application analog of the game Spy Hunter. You can read about the original version here. SDL graphics library is used for interface rendering.

Rules

The goal of the game is to survive as long as possible and gain points. The player has 3 lives at the beginning of the game, which are not consumed during the first 60 seconds. Additional points are awarded for killing enemies. You can kill cars in 2 ways (push them off the road, shoot them with a gun). There are 2 types of enemies:

  • Passive (do not interfere with the player)
  • Active (try to push the player out of the way)

Also on the track there are cars-allies, for killing which the player's points is frozen for some time.

Controls

A hint for the control buttons is shown in the lower right corner. Also during the game appear additional hints with keys that work only in that place.

The basic control buttons can be found below

Key Action
Space Fire a shot
P Pause/Resume game
F Finish the game
N Start new game
S Save current state to file
L Load current state from file
Arrows Move around the road

Launching

The application is written for the Window platform and requires Visual Studio to run. To start it you need to open the project file szablon2vs19.sln with Visual Studio and start the project build.

Technical features

The SDL library and bmp graphics are used to render the interface. The application allows you to save the game state to a file and then restore it. For this purpose the application reads save files from directories and shows their names for selection.

The application stores a road pattern in the road.txt file and repeats this pattern cyclically.

It also prompts the player to save his result after completing the game. If the user accepts, his current result is saved in the file. And the pause menu shows the best results for the whole time sorted by time or points (by default).

Screenshots

Screenshot during the game

Game

Game over menu

Game

spy-hunter's People

Contributors

greedann avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.