tphysics
browser REPL
— Load Example —
Instructions
Run
Stop
Loading...
editor
untitled
from tphysics import * game = Game("Move the Square", "light blue") player = Rectangle(0, 0, 40, 40, "orange") game.add_shape(player) while True: if game.ispressed("Left"): player.x -= 5 if game.ispressed("Right"): player.x += 5 if game.ispressed("Up"): player.y += 5 if game.ispressed("Down"): player.y -= 5 game.update()
console
Instructions
×
Load File
(browser storage only)
×