Giter VIP home page Giter VIP logo

topdownshooter's Introduction

##A simple top down shooter with a field of view

Gameplay image

#Build instructions

I have only tested it on Linux so far. To build it from source you will need SFML, Box2D and make. Both are available in a package on Ubuntu.

####Build instructions for Ubuntu

First move to the directory where you've downloaded the project. To do this execute:

cd /Path/To/The/Project/

To install:

sudo apt-get install libsfml-dev libbox2d-dev  
make

To run the game:

./topDownShooter

####Windows binaries

Building the game on windows is more complicated, as there are no packages for SFML and Box2D, so I have built a binary that should work on every 32 or 64 bit Windows system (Only tested on Windows 8).
This binary has been last updated after this commit - https://github.com/raatmarien/TopDownShooter/commit/ab9fefca419c724bda47f8d9b56f1fdb34aee866 - on 15 May 2015.

Download

To run the game, unpack the 7zip file and execute (double click) the file "TopDownShooter".

#Controls

  • Use wasd or the arrow keys to move
  • Right click to aim
  • Left click to shoot while aiming

#Maps

Maps are written in any image format supported by sfml, png for example, where a brightness of 255 or 1 is a wall and a brightness of 0 is normal ground. An minimap will automatically be generated by the game. For the best performance, walls should only be one tile thick.

Maps can also be procedurally generated by the game at runtime. So far this uses a very basic algorithm where random rooms are generated and corridors are placed to connect them.

###Some examples of procedurally generated maps: Map 1 Map 2 Map 3 Map 4

#Light maps

Positions of the lights are saved in a seperate bitmap of te PPM type. This bitmap should be as big as the part of the map from the top left of the map where you want to have lights. Black in this bitmap indicates a tile without a light. Any other color indicates a light of that color.

#'Gameplay' so far

Walking through a map with lighting

topdownshooter's People

Contributors

jchmrt avatar raatmarien 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.