Skip to content

Commit 33497dd

Browse files
committed
Minor tweaks to win condition
1 parent 3d98bef commit 33497dd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Resources/maps/test.tmx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<map version="1.8" tiledversion="1.8.6" orientation="orthogonal" renderorder="right-down" width="40" height="23" tilewidth="16" tileheight="16" infinite="0" nextlayerid="8" nextobjectid="5">
2+
<map version="1.8" tiledversion="1.8.6" orientation="orthogonal" renderorder="right-down" width="40" height="23" tilewidth="16" tileheight="16" infinite="0" nextlayerid="8" nextobjectid="7">
33
<tileset firstgid="1" name="Dungeon tiles" tilewidth="16" tileheight="16" tilecount="625" columns="25">
44
<image source="../images/Environment/Dungeon Prison/Assets/Tiles.png" width="400" height="400"/>
55
<tile id="0">
@@ -273,5 +273,11 @@
273273
</properties>
274274
<point/>
275275
</object>
276+
<object id="6" name="win" x="63.083" y="193.892">
277+
<properties>
278+
<property name="object" value="((:win))"/>
279+
</properties>
280+
<point/>
281+
</object>
276282
</objectgroup>
277283
</map>

src/win.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
(when (< (distance player-x player-y position-x position-y)
1010
(* 4f0 +scaled-tile-size+ +scaled-tile-size+))
1111
(al:show-native-message-box (cffi:null-pointer)
12-
"You win!" "" "Thanks for playing!"
12+
"You won!" "" "Thanks for playing!"
1313
(cffi:null-pointer) 0)
1414
(setf *quit* t))))

0 commit comments

Comments
 (0)