Skip to content

Instantly share code, notes, and snippets.

@BaseCase
Created September 21, 2018 18:30
Show Gist options
  • Save BaseCase/547d38a9a6a519ffd7ad5ef55ba66efb to your computer and use it in GitHub Desktop.
Save BaseCase/547d38a9a6a519ffd7ad5ef55ba66efb to your computer and use it in GitHub Desktop.

Revisions

  1. BaseCase created this gist Sep 21, 2018.
    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
    81 changes: 81 additions & 0 deletions script.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,81 @@
    title PuzzleScript Intro
    author Casey Brant


    OBJECTS
    =======
    Background
    darkblue

    Player
    Blue #ff0000
    0.0.0
    .101.
    00000
    .000.
    0.0.0

    Wall
    gray

    Target
    yellow
    .....
    .....
    .....
    0...0
    00000

    Box
    brown


    LEGEND
    ======
    . = Background
    P = Player
    # = Wall
    T = Target
    B = Box

    SOUNDS
    ======


    COLLISIONLAYERS
    ===============
    Background
    Target
    Player Wall Box


    RULES
    =====
    [ > Player | Box ] -> [ > Player | > Box ]


    WINCONDITIONS
    =============
    all Box on Target


    LEVELS
    ======

    #####
    #...#
    #.P.#
    #.B.T
    #####

    message "Great job!"

    ...........
    .######....
    ##....#####
    #.....p...#
    #..b......#
    #....p....t
    ###########

    message "You win!"