Skip to content

Instantly share code, notes, and snippets.

@kahlstrm
Created September 15, 2020 12:26
Show Gist options
  • Save kahlstrm/7c76c96c0fd11beb1f24276da5254813 to your computer and use it in GitHub Desktop.
Save kahlstrm/7c76c96c0fd11beb1f24276da5254813 to your computer and use it in GitHub Desktop.
Laivanupotus (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
title Laivanupotus
author Elias Ojanpera, Jussi Lamberg, Niko Mikkonen, Kalle Ahlstrom
homepage www.puzzlescript.net
noundo
realtime_interval 0.1
throttle_movement
========
OBJECTS
========
Background
Blue
Wall
Gray
Counter
Blue
End
Red
checkpoint1
Green
checkpoint2
black
Player
Yellow
00000
00.00
0...0
00.00
00000
Ship
Black
Hit
Red
..0..
.000.
00000
.000.
..0..
Miss
White
.....
.....
..0..
.....
.....
=======
LEGEND
=======
c1 = checkpoint1
e = End and Wall
c = Counter
. = Background
w = Wall
p = Player
s = Ship
h = Hit
m = Miss
a = Counter and checkpoint1
b = Wall and checkpoint2
=======
SOUNDS
=======
StartLevel 123413
EndLevel 123413
sfx0 21973702
sfx1 72501706
================
COLLISIONLAYERS
================
Ship
Background
Hit,Miss
Wall, Player
Counter
checkpoint1, checkpoint2
End
======
RULES
======
[ Action Player Ship ] -> [ Action Player Hit sfx0]
[ Action Player no Hit no Miss][Counter]-> [Action Player Miss Background sfx1][down Counter]
[Counter End] [checkpoint1][checkpoint2]->[End][checkpoint1 Counter][down checkpoint2]
==============
WINCONDITIONS
==============
No Ship
=======
LEVELS
=======
Message Etsi kaksi laivaa, pituudet 3 ja 4, ja upota ne. Liikuta tahtain ruudun paalle ja ammu X:lla.
wwwwwwwwwwwwwwwwwwwabwwww
wp...........s....wwwwwww
w............s....wwwwwww
w...sss......s....wwwwwww
w............s....wwwwwww
w.................wwwwwww
w.................wwwwwww
w.................wwwwwww
w.................wwwwwww
w.................wwwwwww
w.................wwwwwww
w.................wwwwwww
w.................wwwwwww
wwwwwwwwwwwwwwwwwwwewwwww
Message Etsi kolme laivaa, pituudet 2, 3 ja 4, ja upota ne.
cwwwwwwwwwwwwwwwwwwwwwwwwwww
wpssss.....................w
w..........................w
w..........................w
w..........................w
w....ss....................w
w.......s..................w
w.......s..................w
w.......s..................w
w..........................w
w..........................w
w..........................w
w..........................w
ewwwwwwwwwwwwwwwwwwwwwwwwwww
Message Onnittelut!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment