Add build script and fix minor issues

This commit is contained in:
No Time To Play 2023-08-16 06:35:35 +00:00
parent a390988762
commit 8837d7ca4f
5 changed files with 17 additions and 7 deletions

View File

@ -1,4 +1,4 @@
Copyright 2021 Felix Pleşoianu <https://felix.plesoianu.ro/>
Copyright 2021, 2023 Felix Pleşoianu <https://felix.plesoianu.ro/>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -7,7 +7,7 @@ Welcome, traveler! This is a silly little adventure game of the resource managem
How to play
-----------
Get a move on every time you have the chance, but don't neglect rest, or your health. The game hints at how close you are to safety (watch for the jungle growing less dense) and tells you when you're starting to get tired. That happens more easily when you're hurt. Persist, there is an end to the journey.
Get a move on every time you have the chance, but don't neglect rest, or your health. The game hints at how close you are to safety (watch for the jungle growing less dense) and tells you when you're starting to get tired. That happens more easily when you're hurt. Persist, there's an end to the journey.
Hidden command: pressing Escape or 0 (zero) in any menu interrupts the game.

10
build-release.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
echo "Making default build..."
nim c -d:release -o:jungle64 jungle2.nim
echo "Making 32-bit build..."
nim c -d:release --cpu:i386 -o:jungle32 jungle2.nim
echo "Stripping executables..."
strip jungle64
strip jungle32

View File

@ -1,6 +1,6 @@
# Lost in the Jungle: a silly little survival game.
# 2021-03-25 Felix Pleşoianu <https://felix.plesoianu.ro/>
# Use as you like, and enjoy!
# Based on the Lua edition. Use as you like, and enjoy!
import random, strutils
@ -401,7 +401,7 @@ proc wrestlePlant() =
else:
echo "You pull tiredly at the vines. It's not enough."
getChewedOn()
fatigue -= 1
fatigue += 1
proc cutPlant() =
fatigue += 1

View File

@ -1,6 +1,6 @@
# Lost in the Jungle: a silly little survival game.
# 2021-03-30 Felix Pleşoianu <https://felix.plesoianu.ro/>
# Use as you like, and enjoy!
# Based on the Lua edition. Use as you like, and enjoy!
import random, strutils, terminal, std/exitprocs
@ -437,7 +437,7 @@ proc wrestlePlant() =
else:
echo "You pull tiredly at the vines. It's not enough."
getChewedOn()
fatigue -= 1
fatigue += 1
proc cutPlant() =
fatigue += 1
@ -500,7 +500,7 @@ proc playGame() =
echo "(In ", hours, " hours, with ",
bullets, " bullets left.)"
else:
echo "Game ended abnormally."
echo "Game interrupted."
echo "\n(press any key)"
discard getch()