1. Basic Example
from vortex import Vortex
# Initialize the Vortex engine
vortex = Vortex(PrivateKey="your_private_key", Address="your_address", Chain="Aptos")
# Create a cube entity
cube = vortex.Object(model='cube', color=vortex.color('blue'), scale=(2, 2, 2))
# Add a text label
label = vortex.Label(text="Welcome to Vortex!", position=(0, 2, 0))
# Add a first-person controller
fps = vortex.firstPersonController()
# Run the game
vortex.run()
Last updated