Voxel Game Maker

Docs Tutorials

Make a genre's core loop

Pick racing, cards, stealth or management, plan its core loop, and build the smallest version you can play from an empty project.

In the editor: Welcome ▸ Tutorials ▸ 4.5 ▸ ▶ Start makes a new project, My Genre Game, with this lesson's checklist.

Build · about 60 minutes · Advanced mode

What you'll make: the smallest playable game in one genre: a race, a card run, a heist or a busy shop.

What you'll learn: how to plan a core loop, and how to build only what it needs.

Before you start: do the Take apart page for your genre: Voxel Rally, Hexbound, Midnight Prowler or The Gilded Mug.

#1. Plan the loop

A core loop is what the player does again and again. Write yours as one line: what the player does, what pushes back, and how it ends.

Genre The player Pushes back It ends when
Racing drives two laps a rival car the race is over: top three wins
Cards picks rooms and plays cards foes and their intents the boss falls, or you do
Stealth grabs loot and gets out a guard who spots you you reach the start again, or get caught
Management fetches and serves the clock you earn 5 coins, or time runs out

Pick one and write the line down. Everything in step 3 serves that line. Leave the rest for later.

#2. Start empty

Choose File ▸ New Project… and keep Blank project. A blank project has only a grass floor and no models, so choose Create ▸ Add Starter Models to get the tiles, walls, chest and bush the steps below use. Open Edit ▸ Game Settings… and, at the top of the Game group, set the Game type: Racing for a race, Card run for cards, or Puzzle (an angled view with no fighting) for stealth or management.

#3. Build only the loop

Racing. Lay a loop of Path tile models. Place four small objects around it and give each a Race gate, with Order 1 to 4 going round (gate 1 is the start line). On gate 1, set Laps to 2, and untick Seen while playing on all four. Set the player start behind gate 1. Place any model beside it, give it a Racer and a Results name, and leave its Racing line empty so it drives the gates in order. Then make a level script (an Event node set to Player enters the level, then a Code node) and drop it on the ground:

wait_until(race_finished)
local place = race_place()
wait(4)
if place <= 3 then
  win()
else
  lose()
end

Cards. Open Game Settings ▸ Cards and press Fill with an example under The cards, The foes and The fights. Set Floors on the run map to 3 for a short run. Add one card line of your own.

Stealth. Build a room with a doorway. Make a guard with Create ▸ Character Generator… and place it. Give it Chase player and open Customize: set Time to spot (s) to 1.5, tick Show sight cone and Show spot meter, and give it a high Attack damage. Give it a Patrol path with no stops so it strolls. Hide a few pickups. In Explorer ▸ level ▸ Goal, add Collect items, then Reach a zone (draw the zone at the start with the Zone tool first). In Game Settings ▸ Lives & score, set Lives to 1.

Management. In Items, use + New item… to make Ale and Coin. Place a Chest as the taps and give it a Trigger: when the player presses E, Give item Ale. Make a customer with the Character Generator and give it a Trigger: when the player presses E, if Has item Ale, then Take item Ale and Give item Coin; otherwise Show text (speech bubble) An ale, please! On the taps, add a second Trigger whose When is A condition becomes true: Has item Coin, At least 5, then Win the game. Add a third whose When is Player enters the world: Start timer for 60 Seconds, When it runs out: Player loses.

Play it now: you can win, and you can lose.

#4. Test the loop

Play it three times. After each play, ask: did I make a choice each time round? Did the push back matter? Then change one number and play again: the laps, the rival's Top speed (tiles/s), Energy each turn, Time to spot (s) or the timer's Seconds.

Play it now: have a friend play it once and watch where they get stuck.

#Try it yourself

  • Racing: add an Item box row and a Boost pad.
  • Stealth: tag a bush hiding and make it Walk-through.
  • Management: add a second dish, station and customer.

#Learn more

#Next

Capstone: your own genre game.