Skip to content

Instantly share code, notes, and snippets.

@jjmajava
Created April 13, 2020 17:18
Show Gist options
  • Select an option

  • Save jjmajava/a558f62e4e223d40f7fc8b9b78c4dd41 to your computer and use it in GitHub Desktop.

Select an option

Save jjmajava/a558f62e4e223d40f7fc8b9b78c4dd41 to your computer and use it in GitHub Desktop.

Revisions

  1. jjmajava created this gist Apr 13, 2020.
    1 change: 1 addition & 0 deletions readme.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Play this game by pasting the script in http://www.puzzlescript.net/editor.html
    188 changes: 188 additions & 0 deletions script.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,188 @@

    run_rules_on_level_start

    ========
    OBJECTS
    ========

    background .
    blue #55415f
    00000
    00000
    00000
    00100
    00000
    rubble ,
    #000000 #55415f
    10000
    00010
    01000
    00001
    00100
    tiles -
    #000000 #55415f
    00000
    01010
    10100
    01010
    10100

    Wall #
    #000000
    00000
    00000
    00000
    00000
    00000
    WallL
    #000000 #646964
    1....
    1....
    1....
    1....
    1....
    WallR
    #000000 #646964
    ....1
    ....1
    ....1
    ....1
    ....1
    WallD
    #000000 #646964
    .....
    .....
    .....
    .....
    11111

    WallU
    #000000 #646964
    11111
    .....
    .....
    .....
    .....
    Facade
    #000000 #646964 #55415f
    21221
    12112
    00000
    .....
    .....
    Stairs S
    #000000 #55415f
    11111
    00000
    10000
    10100
    10101

    HeroR H
    #000000 #d77355 #e6c86e #508cd7
    02222
    22323
    02222
    01110
    01110

    HeroL
    #000000 #d77355 #e6c86e #508cd7
    22220
    32322
    22220
    01110
    01110

    GoblinL G
    #000000 #d77355 #64b964 #e6c86e
    20002
    22220
    32320
    11110
    01110


    DemonL D
    #000000 #d77355 #646964 #e6c86e
    20002
    11122
    31310
    11110
    01110


    =======
    LEGEND
    =======

    Hero = HeroL or HeroR
    Player = Hero

    Goblin = GoblinL
    Demon = DemonL

    Mob = Goblin or Demon

    =======
    SOUNDS
    =======

    ================
    COLLISIONLAYERS
    ================

    background
    rubble tiles
    facade
    stairs
    wall hero mob
    wallu
    walld
    wallr
    walll

    ======
    RULES
    ======

    ( Build )
    up [ wall | no wall ] -> [ wall wallu | ]
    down [ wall | no wall ] -> [ wall walld | facade ]
    left [ wall | no wall ] -> [ wall walll | ]
    right [ wall | no wall ] -> [ wall wallr | ]

    ( )



    ( Hero moves )
    [ left Hero ] -> [ left HeroL ]
    [ right Hero ] -> [ right HeroR ]


    ==============
    WINCONDITIONS
    ==============

    =======
    LEVELS
    =======

    ################
    #,,,#######....#
    #,D.###...G.##.#
    #.,.###G,,,.#..#
    ##.####...,,#..#
    ##.######.###.##
    ##,#,..##.###.##
    ##.#,H.##.##...#
    ##,#.,,#...#.s.#
    ##.......#.#...#
    #####.####.#####
    ###...#-----####
    #...###-----####
    #...###-----####
    ################