aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--LICENSES.txt1
-rw-r--r--Makefile74
-rw-r--r--beyond-the-titanic39
-rw-r--r--beyond-the-titanic.desktop12
-rw-r--r--ship.svg38
6 files changed, 165 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1377554
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.swp
diff --git a/LICENSES.txt b/LICENSES.txt
new file mode 100644
index 0000000..91c34fd
--- /dev/null
+++ b/LICENSES.txt
@@ -0,0 +1 @@
+Ship icon licensed as linkware from http://www.iconarchive.com/download/i103129/unclebob/spanish-travel/ship.svg. http://www.iconarchive.com/show/spanish-travel-icons-by-unclebob/ship-icon.html. Please check out the author's site at http://www.malagatravelguide.net.
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6b6c360
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,74 @@
+# File: Makefile for Beyond the Titanic
+# Location:
+# Author: bgstack15
+# Startdate: 2019-03-31
+# Title: Makefile for Beyond the Titanic source package
+# Purpose: To use traditional Unix make utility
+# History:
+# Usage:
+# Reference:
+# bgscripts Makefile, move-to-next-monitor Makefile
+# Improve:
+# Document:
+# Dependencies:
+# Free Pascal compiler: fpc
+
+APPNAME = beyond-the-titanic
+APPVERSION = 0.0.1
+PKGDIR = $(CURDIR)
+SRCDIR = $(CURDIR)/src
+prefix = /usr
+BINDIR = $(DESTDIR)$(prefix)/bin
+SHAREDIR = $(DESTDIR)$(prefix)/share
+APPDIR = $(SHAREDIR)/$(APPNAME)
+APPSDIR = $(SHAREDIR)/applications
+DOCDIR = $(SHAREDIR)/doc/$(APPNAME)
+LICENSEDIR = $(SHAREDIR)/licenses/$(APPNAME)
+
+awkbin :=$(shell which awk)
+cpbin :=$(shell which cp)
+echobin :=$(shell which echo)
+findbin :=$(shell which find)
+fpcbin :=$(shell which fpc)
+grepbin :=$(shell which grep)
+installbin :=$(shell which install)
+rmbin :=$(shell which rm)
+sedbin :=$(shell which sed)
+sortbin :=$(shell which sort)
+truebin :=$(shell which true)
+
+all:
+ ${fpcbin} $(SRCDIR)/BEYOND.PAS
+
+.PHONY: clean install install_files uninstall list
+
+list:
+ @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | ${awkbin} -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | ${sortbin} | ${grepbin} -E -v -e '^[^[:alnum:]]' -e '^$@$$'
+
+install: install_files install_docs
+
+install_files:
+ ${echobin} Installing files to ${DESTDIR}
+ ${installbin} -d ${BINDIR} ${APPDIR} ${APPSDIR}
+ ls -l ${SRCDIR}
+ for word in $$( ${findbin} ${SRCDIR} ! -type d ! -name '*.*' -print ) ; do ${installbin} -m0644 $${word} ${APPDIR} ; done
+ ${installbin} -m '0755' ${SRCDIR}/BEYOND ${APPDIR}/
+ ${installbin} -m '0755' ${PKGDIR}/${APPNAME} ${BINDIR}/
+ ${installbin} -m '0644' ${PKGDIR}/${APPNAME}.desktop ${APPSDIR}/
+
+install_docs:
+ ${echobin} Installing docs to ${DOCDIR}
+ ${installbin} -d ${DOCDIR} ${LICENSEDIR}
+ ${cpbin} -pr ${PKGDIR}/History/* ${PKGDIR}/INSTRUCT.TXT ${DOCDIR}
+ ${installbin} -m '0644' -t ${LICENSEDIR} ${PKGDIR}/*gpl*.txt ${PKGDIR}/LICENSES.txt
+
+uninstall:
+ ${echobin} SRCDIR=${SRCDIR}
+ ${rmbin} -rf ${APPDIR}/* ${DOCDIR}/* ${LICENSEDIR}/* ${APPSDIR}/${APPNAME}.desktop ${BINDIR}/${APPNAME}
+
+ # remove all installed directories that are now blank.
+ for word in $$( ${findbin} ${DESTDIR} -mindepth 1 -type d -printf '%p\n' | ${awkbin} '{print length, $$0 }' | ${sortbin} -rn | ${awkbin} '{print $$2}' ) ; do ${findbin} $${word} -mindepth 1 1>/dev/null 2>&1 | read 1>/dev/null 2>&1 || { rmdir "$${word}" 2>/dev/null || ${truebin} ; } ; done
+
+clean:
+#${echobin} "target $@ not implemented yet! Gotta say unh."
+ ${rmbin} -f ${SRCDIR}/BEYOND ${SRCDIR}/BEYOND.o
diff --git a/beyond-the-titanic b/beyond-the-titanic
new file mode 100644
index 0000000..6a1ce22
--- /dev/null
+++ b/beyond-the-titanic
@@ -0,0 +1,39 @@
+#!/bin/sh
+# File: /usr/bin/beyond-the-titanic
+# Author: bgstack15
+# Startdate: 2019-03-31 17:55
+# Title: Beyond the Titanic
+# Package;
+# Purpose: Runs BEYOND from the correct location
+# History:
+# Usage: Normally called by /usr/share/applications/beyond-the-titanic.desktop
+# Reference:
+# https://stackoverflow.com/questions/2924697/how-does-one-output-bold-text-in-bash
+# Improve:
+# Documentation:
+# Dependencies:
+# file /etc/default/beyond-the-titanic
+# tput
+
+# load variables from defaults file
+test -r "/etc/default/beyond-the-titanic" && . /etc/default/beyond-the-titanic 1>/dev/null 2>&1
+test -z "${BEYOND_DIR}" && BEYOND_DIR=/usr/share/beyond-the-titanic
+
+# warn about screen size if not correct
+if test -z "${BEYOND_SILENT}" ;
+then
+ ___cols="$( tput cols 2>/dev/null )"
+ ___lines="$( tput lines 2>/dev/null )"
+ if "${___cols}" != "80" || "${___lines}" != "24" ;
+ then
+ printf "The game recommends using a terminal size of exactly 80 columns by 24 lines. Set BEYOND_SILENT=1 to suppress this message.\nPress enter to continue. "
+ read ___foo ;
+ fi
+fi
+
+# start game
+cd "${BEYOND_DIR}"
+./BEYOND
+
+# return terminal text to normal style
+tput sgr0
diff --git a/beyond-the-titanic.desktop b/beyond-the-titanic.desktop
new file mode 100644
index 0000000..a7f585e
--- /dev/null
+++ b/beyond-the-titanic.desktop
@@ -0,0 +1,12 @@
+#!/usr/bin/xdg-open
+[Desktop Entry]
+Name=Beyond the Titanic
+Exec=/usr/bin/beyond-the-titanic
+Type=Application
+StartupNotify=true
+Path=/usr/share/beyond-the-titanic
+Icon=beyond-the-titanic
+StartupWMClass=BEYOND
+Comment=Text adventure game from 1988
+Terminal=true
+Categories=Game;AdventureGame;
diff --git a/ship.svg b/ship.svg
new file mode 100644
index 0000000..aa9cc00
--- /dev/null
+++ b/ship.svg
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 16.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ width="533.709px" height="538.994px" viewBox="0 0 533.709 538.994" enable-background="new 0 0 533.709 538.994"
+ xml:space="preserve">
+<g>
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M278.524,174.093c-8.848-2.003-18.358-5.216-26.892-3.812
+ c-66.164,10.907-125.364,40.093-185.544,71.556c14.778,26.943,28.89,52.879,43.197,78.704
+ c20.286,36.61,40.063,73.416,49.682,114.666c0.606,2.61,2.434,6.073,4.613,7.01c25.704,11.079,52.464,17.156,81.193,17.032
+ c3.033-29.71,5.942-58.166,8.848-86.63c0.663,0.078,1.322,0.149,1.981,0.225c2.924,28.781,5.848,57.56,8.986,88.465
+ c22.611-4.654,42.916-9.391,63.438-12.884c16.025-2.729,23.487-10.87,27.513-27.135c11.311-45.751,37.034-85.151,59.421-125.948
+ c9.589-17.478,18.825-35.15,28.763-53.74C389.05,215.294,336.837,187.299,278.524,174.093z M325.74,270.501
+ c-1.118,0.243-2.262,0.379-3.42,0.38c-6.643,0.011-12.391-4.025-15.303-9.973c-1.999-3.154-3.181-6.857-3.181-10.803
+ c0-11.159,9.312-20.471,20.471-20.471s20.471,9.312,20.471,20.471C344.778,260.78,336.25,269.743,325.74,270.501z M368.752,281.268
+ c-19.247,0-19.247-29.846,0-29.846S387.999,281.268,368.752,281.268z M401.23,286.241c-10.229,0-10.229-15.861,0-15.861
+ S411.459,286.241,401.23,286.241z"/>
+ <path fill-rule="evenodd" clip-rule="evenodd" fill="#B42A25" d="M25.025,464.918c6.788,2.695,13.539,5.481,20.372,8.058
+ c36.708,13.846,72.331,8.862,107.628-5.699c4.59-1.898,11.435-2.879,15.494-0.835c57.151,28.771,114.393,25.959,171.744,1.292
+ c7.701-3.31,14.007-3.785,22.005-0.412c41.344,17.456,82.747,19.316,123.712-1.688c1.416-0.723,3.119-0.895,6.695-1.864
+ c-4.897,22.128-20.41,31.867-37.749,38.823c-36.971,14.82-73.833,4.875-102.955-27.197c-21.323,35.963-54.954,49.371-94.504,49.465
+ c-39.692,0.097-73.263-13.7-95.709-49.821c-26.97,34.017-61.417,40.4-100.09,28.521c-18.321-5.628-32.504-17.201-39.038-35.762
+ C23.427,466.835,24.224,465.88,25.025,464.918z"/>
+</g>
+<path fill-rule="evenodd" clip-rule="evenodd" fill="#B42A25" d="M385.961,95.328c-25.154,0-49.315,0-75.02,0
+ c0-11.611,0-21.78,0-32.724c-17.16,0-32.735,0-50.663,0c0-15,0-28.314,0-41.745c-2.414,0-4.593,0-6.739,0s-4.326,0-6.739,0
+ c0,13.431,0,26.745,0,41.745c-17.928,0-33.503,0-50.663,0c0,10.944,0,21.113,0,32.724c-25.704,0-49.865,0-75.02,0
+ c0,6.814,0,12.206,0,16.527c6.886,6.148,13.263,11.843,21.137,18.878c-1.686,6.219,8.701,19.672-10.559,20.957
+ c0,12.704,0,25.191,0,39.007c3.726-1.12,6.87-2.018,9.981-3.021c1.236-0.404,2.37-1.097,3.591-1.562
+ c52.357-20.162,79.984-30.054,108.271-29.689c28.287-0.365,55.914,9.527,108.271,29.689c1.221,0.464,2.354,1.157,3.591,1.562
+ c3.111,1.003,6.256,1.902,9.981,3.021c0-13.816,0-26.303,0-39.007c-19.26-1.284-8.873-14.737-10.559-20.957
+ c7.874-7.035,14.251-12.73,21.137-18.878C385.961,107.534,385.961,102.143,385.961,95.328z M205.647,149.728
+ c-12.132,0-23.578,0-35.203,0c0-7.792,0-14.583,0-22.11c11.798,0,22.937,0,35.203,0
+ C205.647,135.571,205.647,142.352,205.647,149.728z M273.199,149.87c-6.686,0-13.138,0-19.66,0s-12.975,0-19.66,0
+ c0-7.544,0-14.276,0-22.229c6.844,0,13.309,0,19.66,0s12.816,0,19.66,0C273.199,135.594,273.199,142.326,273.199,149.87z
+ M336.634,149.728c-11.625,0-23.071,0-35.203,0c0-7.376,0-14.157,0-22.11c12.267,0,23.405,0,35.203,0
+ C336.634,135.145,336.634,141.937,336.634,149.728z"/>
+</svg>
bgstack15