Skip to content

codeadventurer/LordOfTheRingGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Lord of the (Berlin) Ring

Screenshot

How to play

The aim of the game is to challenge your knowledge of the Berlin transport system. You get a random U-Bahn or S-Bahn station within the ring and you have to guess where it is. When you click on one of the stations you get points depending on how far you are from the right station. If you guessed right you get 100 points.

There are 10 rounds so try to get the maximum of 1000 points!

Technologies

The game is build using JavaScript DOM Manipulation. The map is an image png. file with clickable image-map areas. The coordinates of the ares were measured with Image Map Generator. The image-map technology allows us to have a responsive design and play the game on small screens.

Challenges

The most challenging was to find the way to make the image clickable in the right spots and connect them to an algorithm that would calculate the distance between wrong and right station and give the points accordingly. Another challenge was to highlight the stations since you cannot change styles of the image-map areas easily. The solution was to use

elements and connect their appearing position and size to the coordinates of the stations.

Play the game here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published