Skip to content

Instantly share code, notes, and snippets.

@kahlstrm
Created September 15, 2020 12:35
Show Gist options
  • Save kahlstrm/22ed314b6f25610d7e5807adb97fc9f3 to your computer and use it in GitHub Desktop.
Save kahlstrm/22ed314b6f25610d7e5807adb97fc9f3 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
lightgreen
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]
[checkpoint2 End] ->restart
==============
WINCONDITIONS
==============
No Ship
=======
LEVELS
=======
Message Etsi kaksi laivaa, pituudet 3 ja 4, ja upota ne. Liikuta tahtain ruudun paalle ja ammu X:lla.
wwwwwwwwwwwwwwwwwwwwabwww
wp...........s....wwwwwww
w............s....wwwwwww
w...sss......s....wwwwwww
w............s....wwwwwww
w.................wwwewww
w.................wwwwwww
w.................wwwwwww
w.................wwwwwww
w.................wwewwww
w.................wwwwwww
w.................wwwwwww
w.................wwwwwww
wwwwwwwwwwwwwwwwwwwwwwwww
Message Etsi kolme laivaa, pituudet 2, 3 ja 4, ja upota ne.
wwwwwwwwwwwwwwwwwwwwabwww
wpssss............wwwwwww
w.................wwwwwww
w.................wwwwwww
w.................wwwwwww
w...........ssss..wwwewww
w.................wwwwwww
w......s..........wwwwwww
w......s..........wwewwww
w......s..........wwwwwww
w......s..........wwwwwww
w.................wwwwwww
w.................wwwwwww
wwwwwwwwwwwwwwwwwwwwwwwww
Message Onnittelut!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment