Git Product home page Git Product logo

pirate-platformer's Introduction

Pirate Platformer

Alt text

Table of Contents

About

This game is a Python-based pirate platformer using Pygame. The maps were map with Tiled Map Editor. In addition to making maps quick and easy, Tile also made spawning the player and enemies much easier. In Tile, we can set the player's start and end points as well as set enemies' movement constraints. This simplifies enemy logic by only allowing enemies to move left or right until they reach a restricted tile. Once they reach the restricted tile, they turn and walk the other way. Collision detection does not need to be complicated with this approach.

DO NOT ROTATE A TILE IN TILED WHEN CREATING A LEVEL. I had to figure this out and it took a while among other things. If you find a fix, please let me know.

Compile Instructions

Windows Compile Instructions

You will need to have Python installed on your machine. After this you will need to make sure you have Pygame installed. On Windows you can enter the following commands into the terminal:

  • To install Pygame: pip install pygame
  • To run in src folder: python main.py

Linux Compile Instructions

You will need to have Python installed on your machine. After this you will need to make sure you have Pygame installed. On Linux you can enter the following commands into the terminal:

  • To install Pygame: sudo apt-get install python3-pygame
  • To run in src folder: python3 main.py

Controls

Player Controls

  • Move left: Left Arrow
  • Move right: Right Arrow
  • Jump: Up Arrow

Overworld Controls

Overworld level 1 will cause a crash right now, and other levels past it will too beause they are level 1

  • Move to next level: Right Arrow
  • Move to previous level: Left Arrow
  • Enter Level: Space

pirate-platformer's People

Contributors

robertcarruta avatar

Stargazers

Roman 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.