Skip to content

Inspired by Terreria - simple platformer with RPG elements

Notifications You must be signed in to change notification settings

Octember/platformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Platformer

A RPG inspired by Terreria

About

Run, shoot and... freak out with the graphics! Right now you can't do much, so just star and sit back (if you can't code, and if you can: contribute!).

Installation & requirements

Requirements

Installation

  • Download and install PyGame:

    • From Universe via apt-get:

sudo apt-get install python-pygame

    * From the [PyGame website](http://www.pygame.org/download.shtml).

* Download the source

    * Via git:

    ```shell
git clone https://github.com/Octember/platformer.git
* or download the source as .zip file and extract it somewhere.

The script should be marked as executable already, but in the case it's not, you can use this command to mark it so:

chmod +x platformer.py

How to play

  • Run the platformer.py script within the platformer folder
./platformer.py

or

python platformer.py

Running the script this way will automatically load the map 'map2.db'.

Running the game with the first map:

./platformer.py --map map

or

python platformer.py --map map

CONTROLS

  • Move with WASD
  • Jump with space
  • Open and close inventory with i (pointless right now)
  • Shoot bullets with the mouse
  • Quit with escape

Configuration

  • In platformer.py lines 12 to 14:
screen_width = # Your desired screen width
screen_height = # Your desired screen height
DEBUG = 1 # set to 0 if you don't want debug messages and the FPS to show up
  • In platformer.py line 60:
selectedmap = 'map2.db' # Change this to 'map.db' if you want the first map to be loaded
  • In globals.py line 16:
GRAVITY = # desired gravity

0.001 is normal Gravity, 0.0001 is funny to play. Over 0.002, jumping is almost impossible.

About

Inspired by Terreria - simple platformer with RPG elements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages