← Back to Vortex RK

Make your own 3D game

Pick a template, change the code and press Run to try it straight away. When it’s ready, send it to Vortex RK: it gets an automatic safety check, and once the owner approves it, everyone can play it on vortexrk.com with your name on it.

  1. 1 · Pick a template
  2. 2 · Change the code
  3. 3 · ▶ Run to test
  4. 4 · 🔍 Safety check
  5. 5 · 📤 Send to Vortex RK

🧍 Every game here uses your own Vortex RK 3D avatar as the player (in code: VRK.avatar()). Dress it up with your coins in the 3D Avatar shop.🧍 Customise my avatar

1. Pick a template

2. Build and test

Press ▶ Run (or Ctrl + Enter) to play your game here.
Messages from your game and any mistakes show below.

My games on Vortex RK

My drafts

The VRK kit

VRK.box(w, h, d, colour, x, y, z)Adds a box to the world and gives it back
VRK.sphere(r, colour, x, y, z)Adds a ball
VRK.cylinder(r, h, colour, x, y, z)Adds a cylinder
VRK.plane(w, d, colour, x, y, z)Adds flat ground
VRK.remove(thing)Takes something out of the world
VRK.avatar(size, x, y, z)Adds the player’s own 3D avatar (what they bought in the 3D Avatar shop). avatar.walk(dt) swings its arms and legs; avatar.stand() stops
avatar.emote('dance')Plays an emote (wave, dance, cheer, clap, sad, laugh, spin, robot, swing, flip, moonwalk, windmill, levitate, champion, ascend). No name = the player’s own emote. Players can also press E
VRK.player({ speed, jump, x, y, z })Ready-made parkour player: your avatar with running, jumping, animations, a following camera, checkpoints and phone controls. Set .onGoal, .onStar, .onDie; read .deaths, .stars
VRK.platform(w, h, d, colour, x, y, z, { type, move, spin })Parkour platform. type: solid, check, goal, bounce, vanish, ice, lava, spinner. move: { x: 2, speed: 1 } slides it
VRK.star(x, y, z)A spinning star for VRK.player to collect (+100 score)
VRK.player({ fly: true, climbSpeed })fly: true lets the player fly (Space / ↑ to rise). Walls made with type: 'climb' can be climbed by walking into them
VRK.kill()Knocks the player out: their death animation plays, then they respawn at the last checkpoint (or .onDie decides)
VRK.fx(x, y, z, { color, size, life, vx, vy, vz, shape })A little particle effect (shape: cube, ball, disc, star, ring)
avatar.climb(true) / avatar.fly(true) / avatar.die()Show the player’s own climbing, flying or death animation (players buy their styles in the 3D Avatar shop)
VRK.start(function (dt, time) { … })Your game loop: runs every frame (dt = seconds since the last frame)
VRK.key('left')Is a key held? left, right, up, down, jump, fire, or any key name
VRK.pressed('jump')Was it pressed this frame? Also 'tap' on phones; swipes count as arrows
VRK.hit(a, b)Are two things touching?
VRK.score(10)Adds to the score
VRK.hud('text')Text at the top of the screen
VRK.message('Title', 'more')Big message in the middle (no title hides it)
VRK.sound('coin')coin, jump, hit, shoot or win
VRK.hurt()Call when the player gets hit: true means they really got hurt
VRK.gameOver('text')Ends the game and offers a replay
VRK.rand(a, b)Random number between a and b
VRK.scene / VRK.camera / VRK.rendererThe three.js scene, camera and renderer
THREEAll of three.js (version 128)

How games are kept safe

Games made by players