Skip to content

Instantly share code, notes, and snippets.

@kahlstrm
Created September 14, 2020 21:00
Show Gist options
  • Save kahlstrm/b34095d75ba44d39739e1be6c1085aa8 to your computer and use it in GitHub Desktop.
Save kahlstrm/b34095d75ba44d39739e1be6c1085aa8 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
Player
Yellow
00000
00.00
0...0
00.00
00000
Ship
Black
Hit
Red
..0..
.000.
00000
.000.
..0..
Miss
White
.....
.....
..0..
.....
.....
=======
LEGEND
=======
e = End
c = Counter
. = Background
w = Wall
p = Player
s = Ship
h = Hit
m = Miss
=======
SOUNDS
=======
StartLevel 123413
EndLevel 123413
sfx0 21973702
sfx1 72501706
================
COLLISIONLAYERS
================
Ship
Background
Hit,Miss
Wall, Player
Counter
End
======
RULES
======
[ Action Player Ship ] -> [ Action Player Hit sfx0]
[ Action Player no Hit no Miss] [Counter]-> [Action Player Miss Background sfx1] [down Counter Wall]
[Counter 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.
cwwwwwwwwwwwwwwwwwwwwwwwwwww
wps..........s.............w
w............s.............w
w...sss......s.............w
w............s.............w
w..........................w
w..........................w
w..........................w
w..........................w
w..........................w
w..........................w
w..........................w
w..........................w
ewwwwwwwwwwwwwwwwwwwwwwwwwww
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