GithubHelp home page GithubHelp logo

freddydumont / the-labyrinth-roguelike Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 13.63 MB

A roguelike game based on the ancient Greek myth of Theseus and the Minotaur

Home Page: https://freddydumont.github.io/the-labyrinth-roguelike/

HTML 1.21% JavaScript 98.71% CSS 0.08%

the-labyrinth-roguelike's People

Contributors

cclar avatar freddydumont avatar mmarinm avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

the-labyrinth-roguelike's Issues

Rework labyrinth

  • Reduce the size of the map
  • Make it round (optional)
  • Implement sacrificed youth functionality to have a clue about the minotaur's location

Chasing to last known position

What happens now

Enemies chase the player as long as they see him. When player is out of sight, they go back to the wander task.

What should happen

When enemies lose sight of player, they continue chasing to the last known position of the player.

If player is not spotted and enemy has reached last known position, they go back to wander.
If player is spotted before reaching last known position they chase him again.

Merge win and lose screen

Problem

There are some problems with the current win and lose screens.

  • They do not allow the player to go back to main menu
  • They do not show score
  • They do not show how the player won or how he died

Potential solution

Combining them together into a single endScreen that calculates score would solve all these issues.

For example, on win it would display the following positioned in the center:


You Won!
You have slain the minotaur with x sacrificed youth remaining.
Your score is 4547.

You made it to the leaderboard!
Type your name and press enter to return to main menu.


Figuring out how to make sure that the score is relevant (top 20 only?) before asking for the player's name would be essential to have a perfect solution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.