FoonLudum Dare ExplorerLD44 → Psukhe-survival

Psukhe-survival

By tolmera

View on ldjam.com

CategoryRankScoreCount
Overall3.003
Fun2.503
Innovation3.003
Theme2.503
Graphics2.754
Audio3.503
Humor2.503
Mood3.003

Comments

2019-04-29 22:51

I like the concept and am looking forward to giving it a try. Hope all goes well!

764hotshot 2019-04-30 00:24

How do you play it?

tolmera 2019-04-30 22:48

@764hotshot

New instructions have been added to the description above and here for your refference

How to play the game. Go to the Github page Fork my repo Go to where you want to download the game to in oyur file system `git clone https://github.com/${{Yous Username Here}}/psukhe-survival.git` Inside the newly created "psukhe-survival" folder, you have two subfolders: "server" and "client" If you're just wanting to play, head into the "client" folder.

You're going to need nodejs, npm, typescript to launch/play the game. If you don't have node, head to https://nodejs.org/en/download/ or use your favourite version management software to download nodejs. Node comes bundles with "NPM" (Node Package Management) - so in a terminal type "npm install -g tsc" which will install typescript on your machine. I recommend "npm install -g tsc-watch" and "npm install -g nodemon" which are both handly little tools for auto-compiling your code and auto-running your code when you make changes, so there's no manual compile and run delays.

in a terminal navigate into the client folder and run "tsc" which will run typescript's compiler. cd build ^^^ Will move you into the build directory that tsc created. node index.js ^^^ Will run the game

You're not going to see too much for 30 seconds, just a spawn message and waiting. Once your character gets hungry or thirsty, they are going to start eploring looking for food/water. Playing the game means looking inside the "src" folder, and scripting your AI to be better at survival/hunting/running than other people's AI's.

Cheatsheet /src/controller/mind contains the current 'what to do when X happens' code, which is pretty simple. /src/controller/eye || ear || nose - these are empty templates linked to eye, ear and nose events. You'll use these as you start to evolve. /src/controller/intent - This contains all of the actions that you can perform. From moving, eating and drinking to evolving your creature. Expand the client as much as you like, feel free to develop in other languages or in other ways. The only caveat being that you need to be able to communicate with the server, so check out socket.io which the server is using for network comms.

Good luck, and happy hunting

2019-05-01 19:15

I really like this idea, but as an artist the installation instructions seem a bit intimidating. I know this is a scripting game, but it would be nice if it was accessible to nonprogrammers.

tolmera 2019-05-02 07:06

@ariel-meylan

Hi Ariel, I'm glad you like the idea, and thanks for the comment, it made me see that the instructions had not formatted themselves very well.

Hopefully you can still enjoy the game, and hopefully the instructions are a bit more surmountable once they have been better formatted. I'm likely also going to do a simple youtube video at some point, showing some coding and writing a simple AI to live a little longer (until someone can hunt it down) . So maybe if nothing else you might enjoy when I do that.

edshotmachine 2019-05-02 08:33

Hey, when I ran tsc in the client folder it spit an error, that said the following:

> error TS2688: Cannot find type definition file for 'node'.

I sort of have no idea what i'm doing, so any idea what this means?

tolmera 2019-05-02 22:19

@edshotmachine

Yes, that's a non-error error on typescripts behalf. What it means is that typescript can't find the definitions for node, so it does not know what functions and variables etc pre-exist in node.

You should be able to make this error go away by running

npm install @types/node --save

In the same folder that you ran tsc.

**You're one step away from being able to run the game**

All you need to do now is cd into the build folder and run node index to start a character running around.

When you have someone running around, you can go to http://ec2-52-56-250-10.eu-west-2.compute.amazonaws.com/ and look for the black dot on the map - thats your character.

I really hope you have fun doing a little coding and making an awesome character who can actually survive.

xlambein 2019-05-05 13:14

Hey! Your game seems awesome and I really wanna play it. Unfortunately, when I run `tsc`, I get the following error:

```error TS5023: Unknown compiler option 'types'.```