Skip to content

carlos-alvarezdelavega/find-your-hat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find your hat is a simple 2D game

I worked on this game as part of a Codecademy challenge project.

This an interactive game written in JavaScript and running in Node.js using the terminal.

About the Game

The scenario is that the player (*) has lost their hat (^) in a field (░) full of holes (O), and they must navigate back to it without falling down one of the holes or stepping outside of the field.

This is what the game looks like

Game Demo

How to start the game?

From visual studio code, you'll need to open the internal terminal.

In your terminal, make sure you are on the game directory. You may change the working directory with the cwd command.

Type in your terminal node main.js to display the game interface in the terminal.

Game instructions

  • You are * and your hat is ^.
  • Avoid the holes (O) and find your hat!
  • Don't go out of bounds or you may lose!
  • Use the u, d, l, and r keys to navigate the field.
  • u = up, d = down, l = left, r = right.
  • Good luck!

About

A 2D game using JavaScript and NodeJs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published