TalentJR apps
Find the door before the timer runs out — and grab the coins. Play it first, then open it in the Game Studio and change it until it is your own game.
🎮 Controls: arrow keys (or WASD) to move
At the top of the code are the settings — change one, run the game, and feel the difference. This is how game designers balance a game.
let playerSpeed = 180 | |
let timeLimit = 60 | |
let coinPoints = 5 |
Try them in order. The studio ticks each one off when your change works — and shows a hint if it does not.
let timeLimit = 90let playerSpeed = 260"# $ # # #","# # ^# $#",tj.victory("I did it!")move some # around45 lines of real JavaScript, made with TalentJR Game Studio's game library. Lines that start with // explain what the next part does.
// 🧩 Maze — TalentJR Game Studio
// ✏️ Change these numbers, then press ▶ Run!
let playerSpeed = 180
let timeLimit = 60
let coinPoints = 5
tj.setup({ background: "grass" })
tj.touchControls("arrows")
// The maze — # wall $ coin ^ spikes D door (the way out) @ start
const level = tj.level([
"#############",
"#@ # $ #",
"# # # ### # #",
"# # # # #",
"# ##### ### #",
"# $ # # #",
"### # # # # #",
"# # # $#",
"# ##### ###D#",
"#############",
])
const player = tj.player({ at: level.start, speed: playerSpeed, mode: "topdown" })
const score = tj.score()
tj.timer(timeLimit)
// Collect coins
player.onCollide("coin", (coin) => {
destroy(coin)
score.add(coinPoints)
tj.sound("coin")
})
// Spikes send you back to the start
player.onCollide("danger", () => {
tj.sound("hit")
player.pos = level.start.clone()
})
// Find the door to escape
player.onCollide("goal", () => {
tj.victory("You escaped! 🎉")
})
🗝️ Maze AdventureGrab the keys, open the doors, dodge the slimes — escape 3 mazes before the clock runs out.
🎯 Slime BlasterGuard the fence: move the robot, blast the slimes marching in — big ones need 3 hits.
🏃 Coin Run — your first gameType your first game yourself in 7 short missions — every line explained.
🏏 CricketTime your swing for a SIX, a FOUR or a run — and chase the target before you are all out.
🏎️ Retro RacingDodge the traffic on a scrolling road — change the speed, the cars and the road colour.
🧗 PlatformerRun, jump over spikes, collect coins and reach the flag — then build your own level.