This is a digital rendition about The Fish Game, developed and published by The Cloud Institute for Sustainability Education.
The Fish Game is a game that allows participants to become inspired and hopeful about contributing to the shift toward a sustainable future through education, generate a personal rationale for educating for sustainability and develop a shared understanding and vocabulary of Sustainability and Education for Sustainability.
The Fish Game requires an AMP environment in which the server will run. Depending on your operating system, directions for getting an AMP stack up and running may vary.
-
If you're using Mac OS-X, then check out MAMP.
-
If you're using Windows, then WAMP is the usual choice. MAMP also comes in Windows version.
-
If you're using Linux, then your distro probably includes all required components, but you'll have to adjust some settings. Look for directions in the web, as different Linux distributions use different folders and commands.
The Fish Game also requires the following dependencies:
You can find detailed installation directions below.
- Clone this repository or download via zip.
- Unzip contents inside the
www
folder in your AMP server. So you should end up with, let's say wamp\www\fishgame if using WAMP. Some AMP installations don't have awww
folder. If so, look forhtdocs
instead.
-
Check the Installation guide and install depending on your Operating System.
-
In The Fish Game folder, create a
JSON
file and name itcomposer.json
. -
Edit
composer.json
and add the following content:{ "autoload": { "psr-0": { "MyApp": "src" } }, "require": { "cboden/ratchet": "0.3.*" } }
-
Save all changes.
- Open a terminal (command line) and navigate to the The Fish Game folder.
- Install Ratchet with
composer install
command.
- Download Flot in zip format.
- Unzip contents. Be sure to remember where you unzipped Flot.
- Copy
jquery.flot.js
from the Flot unzipped contents. - Navigate to The Fish Game directory, and then to the bin folder.
- Paste
jquery.flot.js
you copied earlier.
- Download the latest Hopscotch via zip.
- Unzip contents. Be sure to remember where you unzipped Hopscotch.
- Navigate to dist directory inside the unzipped Hopscotch folders, and then to css directory.
- Copy the
hopscotch.css
file. - Navigate to The Fish Game directory, and then to the bin folder.
- Paste
hopscotch.css
you copied earlier.
- Navigate to dist folder inside the unzipped Hopscotch folders, and then to js folder.
- Copy the
hopscotch.js
file. - Navigate to The Fish Game directory, and then to the bin folder.
- Paste
hopscotch.js
you copied earlier.
- Navigate to dist folder inside the unzipped Hopscotch folders, and then to img folder.
- Copy both
sprite-green
andsprite-orange
files. - Navigate to The Fish Game directory, and then to the img folder.
- Paste both
sprite-green
andsprite-orange
you copied earlier.
That should install all the required components.
Before running the game, you'll need to adjust some settings, both on client and server.
- In The Fish Game directory, go to the bin folder and open the
chat-server.php
file with a text editor (Notepad, TextEdit, vim, ...) - Go to line 8, and change the
$myIP
variable. It should contain the IP address of your server as a string, so make sure it is wrapped around quotation marks ('my.ip.is.this' or "my.ip.is.this"). - Save changes and exit the editor.
- In The Fish Game directory, go to the bin folder and open the
scripty.js
file with a text editor. - Go to line 4, and change the
IP
variable. It should contain the IP address of your server as a string, so make sure it is wrapped around quotation marks ('my.ip.is.this') or ("my.ip.is.this"). - Save changes and exit the editor.
When you're ready to play, just turn on the server and open the client on your browser.
- Open a terminal (command line) and navigate to The Fish Game folder.
- Move to the bin folder, and turn on the server with the command
php chat-server.php
.
The server should be up and running now.
- Open your browser and access the following URL:
localhost\fishgame\bin\room.html
That's all :)
- In The Fish Game directory, go to the src folder and open the
preferences.ini
file with a text editor. - Adjust the settings as you like. When you're done, save changes and exit the editor.
The Fish Game (c) 1995-2015 The Cloud Institute for Sustainability Education.
This digital rendition of The Fish Game is licensed under a MIT License. Read LICENSE for more information.