Giter Site home page Giter Site logo

2dgameprogramming's Introduction

Unnamed 2D Platformer

How to see all the games features

Currently the game has two maps, one a town and one a regular area, enter the door on the left (down while over door) to move between the maps

To switch through stamina based weapons, hit the x key, to fire the weapon press z with stamina. The whip does not require stamina, it uses the a key. Weapons:

  • Whip
  • Axe
  • Shuriken
  • Knife
  • Bomb

Items can be used by hitting the 1-5 keys, form top to bottom on the left hand menu

  • Health
  • Speed
  • Stamina
  • Invisibility
  • Time Stop

At least one of each type of enemy exists in the small test area.

  • Flying Skull
  • Bat
  • Golem
  • Mushroom
  • Magician

Spacebar can be used to interact with NPCs, pressing the z key at a shop will let you purchase whatever item is being sold if you have the money.

Original Readme's Build Process

Build Process

Before you can build the example code we are providing for you, you will need to obtain the libraries required by the source code

  • SDL2
  • SDL2_image
  • SDL2_mixer
  • SDL2_ttf There are additional sub modules that are needed for this project to work as well, but they can be pulled right from within the project. Performable from the following steps from the root of the cloned git repository within a terminal.

Make sure you fetch submodules: git submodule update --init --recursive Go into each submodule's src directory and type: make make static

Once each submodule has been made you can go into the base project src folder anre simply type: make

You should now have a gf2d binary within the root of your git repository. Executing this will start your game.

2dgameprogramming's People

Contributors

astral-c avatar engineeroflies 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.