Skip to content

Instantly share code, notes, and snippets.

@jjmajava
Last active August 29, 2015 14:03
Show Gist options
  • Save jjmajava/9735dad83955f05f6297 to your computer and use it in GitHub Desktop.
Save jjmajava/9735dad83955f05f6297 to your computer and use it in GitHub Desktop.
Title Sir Rogue
run_rules_on_level_start
realtime_interval 0.16
key_repeat_interval 0.16
throttle_movement
========
OBJECTS
========
N
Transparent
Background
black
Safe
transparent
Border
transparent
Ladder
#210 #321
.....
.1111.
.0..0
.1111.
.0..0
StartRock
darkgrey
.....
.0000
.0000
.0000
.0000
Rock1
#222 #111 #333
.....
..222
.0100
.0010
.01.1
Rock2
#222 #111 #333
.....
.222.
.0010
.0100
..100
Rock3
#222 #111 #333
.....
.2222
.000.
.01..
.....
Rock4
#222 #111 #333
.....
.2222
.1000
..110
...11
Rock5
#222 #111 #333
.....
.2222
..000
..100
...0.
Rock6
#222 #111 #333
.....
.2222
.0001
.0001
.001.
StartGround
brown
.....
.0000
.0000
.0000
.0000
Ground1
#321 #210 #432
.....
.2222
.0001
.100.
..10.
Ground2
#321 #210 #432
.....
.2222
.0001
.1000
..01.
Ground3
#321 #210 #432
.....
.2222
.0100
..001
...01
StartWall
grey
.....
.0000
.0000
.0000
.0000
Wall1
#022 #133 #244
.....
.2222
.1111
.0000
.1101
Wall2
#022 #133 #244
.....
.2202
.0000
.1011
.1011
Wall3
#022 #133 #244
.....
.2022
.0011
.1000
.1110
KnightL
#069 red #789 #456
..11.
.22.1
.200.
.0000
.3.3.
KnightLF
#069 red #789 #456
..111
.22..
.2000
.000.
.3.3.
KnightR
#069 red #789 #456
..11.
.1.22
..002
.0000
..3.3
KnightRF
#069 red #789 #456
.111.
...22
.0002
..000
..3.3
KnightCL
#069 red #789 #456
...1.
..221
.0001
.0000
...3.
KnightCR
#069 red #789 #456
..1..
.122.
.1000
.0000
..3..
KnightD
#069 red #789 #456
.....
..121
.1110
.0111
.1.13
Tomb
#069 red #789 black
.....
.....
..33.
.3123
.1000
GoblinR
#693 #630
.....
...00
..110
..111
..0.0
GoblinL
#693 #642
.....
.00..
.011.
.111.
.0.0.
GoblinRS
#693 #630
.....
.....
..00.
.110.
.1110
GoblinD
#693 #630 red
.....
.202.
.0222.
.2221
.02.2
SweatR
#aef
.....
...0.
.....
.....
.....
SweatL
#aef
.....
..0..
.....
.....
.....
Sweat2
#aef
.....
.....
..0..
.....
.....
Sweat3
#aef
.....
.....
.....
.....
..0..
(white lightgrey grey
.....
..0..
.211.
.20..
.1.1.)
SwordR
#cff
.....
.....
.....
.000.
.....
SwordL
#cff
.....
.....
.....
..000
.....
ClubR
#963
.....
.....
..0..
.0...
.....
ClubL
#963
.....
.....
...0.
....0
.....
ArrowL
white grey
.....
..0..
.0111
..0..
.....
ArrowR
white grey
.....
...0.
.1110
...0.
.....
Treasure
#fea #996 #543 #432
.....
..01.
.0101
.2223
.3333
=======
LEGEND
=======
KnightW = KnightL or KnightR
KnightC = KnightCL or KnightCR
KnightF = KnightRF or KnightLF
Sword = SwordL or SwordR
Player = KnightW or KnightC
P = KnightW or KnightC or KnightD or N
Wall = Wall1 or Wall2 or Wall3
Rock = Rock1 or Rock2 or Rock3 or Rock4 or Rock5 or Rock6
Ground = Ground1 or Ground2 or Ground3
Obstacle = Rock or Wall or Ground
Platform = Obstacle or Ladder
Goblin = GoblinL or GoblinR or GoblinD
Club = ClubL or ClubR
Sweat = SweatR or SweatL or Sweat2 or Sweat3
Baddie = Goblin
. = Background
, = Border
# = StartWall
§ = Startground
* = StartRock
- = Ladder
@ = KnightL
R = GoblinR
L = GoblinL
T = Treasure
=======
SOUNDS
=======
sfx0 71068907
sfx2 37610908
sfx4 17029904
sfx5 34067504
sfx7 35477700
Player move 94220107
================
COLLISIONLAYERS
================
Background
Safe Border
Ladder Treasure
Sword
Club
Goblin StartWall StartGround StartRock Obstacle Player KnightD Tomb
Sweat
KnightF
ArrowL ArrowR
N
======
RULES
======
( Setting things up )
[StartWall ] -> [random Wall ]
[StartGround] -> [random Ground]
[StartRock ] -> [random Rock ]
up [Obstacle | no Obstacle] -> [Obstacle | Safe]
up [Ladder | no Ladder ] -> [Ladder | Safe]
( Player moves )
[N] [> Player] -> cancel
[N] [action Player] -> cancel
[up KnightR Ladder] -> [up KnightCR Ladder]
[up KnightL Ladder] -> [up KnightCL Ladder]
vertical [> KnightR | Ladder] -> [> KnightCR | Ladder]
vertical [> KnightL | Ladder] -> [> KnightCL | Ladder]
(down [> KnightCR Ladder | Ladder Safe] -> [> KnightR Ladder | Ladder Safe]
down [> KnightCL Ladder | Ladder Safe] -> [> KnightL Ladder | Ladder Safe])
[left KnightCR no Safe] -> [KnightCL]
[right KnightCL no Safe] -> [KnightCR]
[left KnightCL no Safe] -> cancel
[right KnightCR no Safe] -> cancel
(
[right KnightC Ladder Safe] -> [KnightR Ladder Safe]
[left KnightC Ladder Safe] -> [KnightL Ladder Safe]
[down KnightCR Ladder Safe] -> [KnightR Ladder Safe]
[down KnightCL Ladder Safe] -> [KnightL Ladder Safe]
)
[left KnightR] -> [action KnightL]
[> KnightR] -> [right KnightR]
[right KnightL] -> [action KnightR]
[> KnightL] -> [left KnightL]
( Everything else moves )
[stationary KnightD] -> [Tomb] sfx4 sfx2
[stationary P] [KnightF] -> [P] [down KnightF]
[stationary P] [ ArrowL] -> [P] [left ArrowL]
[stationary P] [ ArrowR] -> [P] [right ArrowR]
[stationary P] [> ArrowL | Obstacle] -> [P] [ ArrowR | Obstacle]
[stationary P] [> ArrowR | Obstacle] -> [P] [ ArrowL | Obstacle]
( Goblin )
[stationary P] [Sweat3] -> [P] [ ]
[stationary P] [Sweat2] -> [P] [Sweat3]
[stationary P] [SweatR] -> [P] [Sweat2]
[stationary P] [SweatL] -> [P] [Sweat2]
[stationary P] [GoblinR | SwordL] -> [P] [GoblinL | SwordL]
[stationary P] [GoblinL | SwordR] -> [P] [GoblinR | SwordR]
[stationary P] right [no Safe | GoblinL no Sweat | SwordL] -> [P] [no Safe | GoblinL SweatR | SwordL]
[stationary P] left [no Safe | GoblinR no Sweat | SwordR] -> [P] [no Safe | GoblinR SweatL | SwordR]
[stationary P][ GoblinL] -> [P] [left GoblinL]
[stationary P][ GoblinR] -> [P] [right GoblinR]
[> GoblinR | | SwordL] -> [GoblinR | | SwordL]
[> GoblinL | | SwordR] -> [GoblinL | | SwordL]
[stationary P][> GoblinL | no Safe] -> [P] [ GoblinR | ]
[stationary P][> GoblinR | no Safe] -> [P] [ GoblinL | ]
[stationary P][> GoblinL | Goblin] -> [P] [ GoblinR | Goblin]
[stationary P][> GoblinR | Goblin] -> [P] [ GoblinL | Goblin]
[stationary P][GoblinD] -> [P] [] sfx5
[KnightF Border] -> [Border] sfx2
late [KnightR no Safe] -> [KnightRF N]
late [KnightL no Safe] -> [KnightLF N]
late [KnightRF Safe] [N] -> [KnightR Safe] [] sfx0
late [KnightLF Safe] [N] -> [KnightL Safe] [] sfx0
late [KnightCR Safe no Ladder] -> [KnightR Safe]
late [KnightCL Safe no Ladder] -> [KnightL Safe]
late [KnightCR Safe Ladder] -> [KnightR Safe Ladder]
late [KnightCL Safe Ladder] -> [KnightL Safe Ladder]
late left [SwordR | no KnightR] -> [ | ]
late right [SwordL | no KnightL] -> [ | ]
late left [KnightL | no Obstacle no SwordL] -> [KnightL | SwordL]
late right [KnightR | no Obstacle no SwordR] -> [KnightR | SwordR]
late [Sword Goblin] -> [Sword GoblinD]
late left [ClubR | no GoblinR] -> [ | ]
late right [ClubL | no GoblinL] -> [ | ]
late left [GoblinL | no Obstacle] -> [GoblinL | ClubL]
late right [GoblinR | no Obstacle] -> [GoblinR | ClubR]
late [Club P no N] -> [Club KnightD]
late [Player Treasure] -> [Player] sfx7
==============
WINCONDITIONS
==============
no Treasure
=======
LEVELS
=======
...*****..................
....***...............T...
...**..L..T........*-***..
.*....**-****.......-.....
*......*-**..R.....L-.....
*....R..-...****-*****....
.*-****T-.......-***......
..-.******......-.*.......
..-...T.........-.T..L....
*-*******-*...#########...
.-T.**.*.-......****.....*
***..*...-.@......*.....**
..*...******..**.....**.*.
.........**..****.........
,,,,,,,,,,,,,,,,,,,,,,,,,,
..*................######
..*................#....#
***[email protected].#
**§§-§§§§§§§§§§§§.§##-###
§**§-§§...§§§§....§§.-...
§§**-§.....§§........-..T
§**.-...............###-#.
§...-.L......****...***-#
...****-***...***......-#
....*..-T..L..**..L..T.-#
......****-*...*.***#####
**.....**.-.......*..**..
*.........-..............
.......*-**.**-*.**-*..**
........-....*-*..*-**...
*-*....**-*..*-....-L....
.-...R...-....-...******.
.***.***.-....-T....***..
.....L.T.-...****...*....
....********...*......**.
*,,,,,**,,,,,,,,,,,*,,,,,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment