Skip to content

Instantly share code, notes, and snippets.

@Sanqui
Created October 27, 2012 20:36
Show Gist options
  • Save Sanqui/3966089 to your computer and use it in GitHub Desktop.
Save Sanqui/3966089 to your computer and use it in GitHub Desktop.
yarpge source concept stub
game:
tilesets:
- tileset: &tileset0
name: Overworld
file: overworld.png
colisions:
[1, 0]
maps:
- map: &map0
name: An example map
tileset: *tileset0
# Map tiles can be file: imported, or written inline:
tiles: [[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0],
[0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0],
[0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0],
[0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0],
[0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0],
[0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0],
[0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]]
border: [[0]] # Repeated at the border of the map. Can be a grid.
sprites:
- sprite:
x: 5
y: 5
text: Hi! I'm nothing but a test sprite.
- sprite:
x: 7
y: 7
script: &start
- Is this awesome?
- .Choice:
Yes: I thought so!
No:
- Let me ask again.
- *start
setup:
startmap: *map0
startx: 5
starty: 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment