Skip to content

A Sonar game, inspired by chapter from book by Albert Sweigart

Notifications You must be signed in to change notification settings

uzername/SonarTheGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Sonar the game

This is a simple game, written in JavaScript. The game idea was taken from book "Invent Your Own Computer Games with Python" by Albert Sweigart ( https://inventwithpython.com/chapter13.html ).

It works with javascript canvas object and is designed using an ASCII interface, found in classical roguelikes.

Rules

Use [A], [D] keys to steer the boat, [W] key to move the boat, [Z] key to place sonar device. A number on Sonar device indicates the distance to closest treasure. Drop sonar onto treasure to collect it. Once you have collected the treasure, other sonar devices will update their displayed values to show the actual distance to treasure.

About

A Sonar game, inspired by chapter from book by Albert Sweigart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages