Skip to content

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.

License

Notifications You must be signed in to change notification settings

christophmark/pendulum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published