Skip to content

All labs ยท ๐Ÿงฑ Python World

Python World: build & script your own 3D game

Like Roblox Studio โ€“ but you script it in Python. Place parts, make lava, coins, lifts and obbies, react when the player touches things, then jump in and play what you built.

๐Ÿ‘‹ Free demo: try the first 2 lessons and the first tool. Subscribe to unlock everything here and in all the other labs โ€“ USD 10 a month (USD 100 a year), or included with lessons. โœจ SubscribeLog in
โญ 0

Click the world to play ยท W A S D / arrows move ยท Space jumps ยท drag to look

Ctrl+Enter runs
๐Ÿ“– Python World cheat sheet
from world import *

Part(position=(x, y, z), size=(w, h, d), color="red",
     shape="block" | "ball" | "cylinder", transparency=0,
     can_collide=True, spin=0)          # spin in degrees per second
Coin(position=โ€ฆ)        Checkpoint(position=โ€ฆ)
Spawn(position=โ€ฆ)       Finish(position=โ€ฆ)

part.on_touch(fn)       # fn(player) runs when you touch it
part.move(to=(x, y, z), seconds=2, back_and_forth=True)
part.color = "blue"     # change it any time, even inside fn
part.destroy()

player.say("hi")   player.respawn()   player.teleport((x, y, z))
player.add_score(1)   player.speed = 24   player.jump_power = 70
message("Big title")    every(seconds, fn)    set_gravity(30)