Git Product home page Git Product logo

christophmark / pendulum Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 6.0 10.07 MB

A physics-inspired 2D browser game for both mobile and desktop that involves an alien swinging from a rope to avoid obstacles in randomly generated, fully destructible levels.

Home Page: https://christophmark.github.io/pendulum/pendulum/index.html

License: Other

Python 7.32% JavaScript 86.66% HTML 6.02%
game browser-game 2d-game physics-2d phaser-game phaserjs destrucible-terrain random-generation perlin-noise html5-game

pendulum's Introduction

pendulum

A physics-inspired 2D browser game for both mobile and desktop that involves an alien swinging from a rope to avoid obstacles in randomly generated, fully destructible levels. Click here to play!

demo-video

Mobile

On mobile, touch the screen and hold to swing from the alien's rope. A red disk will appear around the touch position. Move the finger out of this disk to fire bullets in the corresponding direction. Move the finger back on the disk to reload. Release to cut the rope.

Note: Due to the calculations done by the physics library p2.js for the rope dynamics, the performance may vary on mobile. Pendulum runs smoothly on newer generation iPhones (tested on 6/7).

Desktop

When playing the game using a desktop browser, press and hold SPACE to swing from the alien's rope. While the rope is active, click anywhere within the game window to fire bullets in the corresponding direction. Release SPACE to cut the rope.

About the game

Pendulum is based on the HTML5 game framework Phaser. It currently features 100 levels that are randomly generated based on Perlin noise (implemented in Python using the module noise).

random-levels

Pendulum uses the physics engine p2.js to allow for realistic Tarzan-like rope dynamics. It further features fully destructible terrain together with a custom-made collision detection method. This enables the player to shoot tunnels into obstructed levels while swinging from the cave ceiling.

destrucible-terrain-collision

License

The game Pendulum itself is released under the MIT License. Please note that the Carrier Command bitmap font (PNG and XML files) is not covered by the MIT License. The font is part of the Phaser 2 Examples Repository and is therefore not to be used in commercial games. © 2017 Photon Storm Limited

Furthermore, I would like to attribute the following authors of great game graphics that I used as a basis for the pendulum graphics. The pendulum graphics fall under the MIT License. This is possible as the original graphics were released under the CC0 License.

pendulum's People

Contributors

christophmark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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