Author Topic: A simple new rogue-like engine in Javascript  (Read 9377 times)

mindjock

  • Newcomer
  • Posts: 1
  • Karma: +0/-0
    • View Profile
    • Email
A simple new rogue-like engine in Javascript
« on: December 22, 2019, 12:01:23 PM »
In under 1000 lines of Javascript, a procedural dungeon generator, with collision detection and line of sight.  It is the beginnings of a game.  Right now you can move around with arrow keys or by swiping in the direction you want (if you have a touch screen)

These are newly designed algorithms and would love to get an opinion of my code.  Also, if this helps you, great.

The game is live right now at http://www.Divinity.com  The game now is simple, find the key to open the door to a newly generated level.  Also, hitting the space-bar will generate a new maze if you don't feel like finding the key to open the door.

In the future, mobs can be spawned in the game to chase the player, other items, an inventory system, etc.
Again, any comments are appreciated.



Troubler

  • Rogueliker
  • ***
  • Posts: 101
  • Karma: +0/-0
    • View Profile
    • Email
Re: A simple new rogue-like engine in Javascript
« Reply #1 on: December 23, 2019, 03:55:18 AM »
That's a good start. There isn't much to comment on yet.
Do you plan on having diagonal movement with numpad support?

Jokkajohny

  • Newcomer
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: A simple new rogue-like engine in Javascript
« Reply #2 on: February 17, 2020, 03:27:45 PM »
Good work.