Now that your setup is ready, it’s time to build.
• Open your project folder in Cursor (or any editor).
• Inside index.ts, you’ll see the entry point of your game.
• Create an entity, think of it like a character, NPC, or object:
Basically copy this
“const spider = new Entity({
modelUri: 'models/npcs/spider.gltf',
modelScale: 2.5,});
spider.spawn(world, { x: 0, y: 3, z: -15 });”
• Save, refresh your HYTOPIA client, and you’ll see your spider come alive 🕷️.
From here, you can start adding collisions, movement, and game logic, all through the HYTOPIA SDK.