Skip to content

Commit

Permalink
feat(levels): add level 6
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed May 27, 2024
1 parent afb8e3d commit 2c981cc
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/levels/6.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { initLevel } from '../helpers'
import { Sprite } from '../types'

export const level = 6
export const title = 'Objects'

export function prescript() {
initLevel(level)

add([sprite(Sprite.player), pos(0, 36), area(), body(), Sprite.player])
add([sprite(Sprite.exit), pos(516, 516), area(), Sprite.exit])

add([text('Cannot move, reposition me')])
}

export const script = `
/**
* Objects are a collection of properties or key-value pairs
*/
const player = get('player')[0]
player.pos.x = 0
player.pos.y = 36
`

export function postscript() {}

0 comments on commit 2c981cc

Please sign in to comment.