jay-kumogata / Pyxel2D

Physics engine in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pyxel2D

Introduction

Pyxel2D is a physics engine that runs on Pyxel/Python. I ported Simple physics engine implemented in JavaScript to Pyxel/Python.

Examples

Demo

This is a demo of the ball rolling.

How to Run

Please execute the following from the Pyxel (version 1.9.18) environment.

> python Demo.py

Pachinko

I also ported the Pachinko game that was introduced in the original book to Pyxel/Python, and changed to a retro color tone. Flick a pachinko ball and hit the bar below to get 10 points.

How to Run

Please execute the following from the Pyxel (version 1.9.18) environment.

> python Pachinko.py

How to Control

  • [SPACE]: Flick a pachinko ball

Peg

I also ported the Pachinko game that was introduced in the original book to Pyxel/Python, and changed to a retro color tone. Shoot the ball and compete for the time to hit all the pegs.

How to Run

Please execute the following from the Pyxel (version 1.9.18) environment.

> python Peg.py

How to Control

  • [left-arrow]: Turn the turret to the left
  • [right-arrow]: Turn the turret to the right
  • [SPACE]: Fire a ball

About

Physics engine in python

License:Apache License 2.0


Languages

Language:Python 100.0%