Skip to content

torrobinson/roguelike

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roguelike

preview Play at http://www.torrobinson.com/roguelike/build/game.html

This is an experiment to familiarize myself with game mechanics, TypeScript, and Pixi.js

It is a procedurally generated rogulike-esque game with armor, a gui, monsters, and fake "lighting".

The game "engine" is written entirely from scratch, with the exception of a pathfinder (for resolving paths) and Pixi for drawing images and shapes to the screen.

To Play:

  • Install Node.js
    • This should include NPM
  • In your project directory root, run npm install to install required packages
  • Run gulp to build
  • Run the built./build/game.html

Instructions

  • Up, Down, Left, Right keys move
  • I opens the inventory
  • Esc pauses the game
  • Moving into an enemy performs an attack
  • With a ranged weapon equipped, use [ and ] to cycle through enemies and press | to fire the ranged weapon
  • Missed arrow shots can be picked up again
  • Clicking the "Random Dungeon" button generate a random dungeon for debugging purposes

Attribution

Art provided by

Tools

Lessons Learned

  • Start off using TypeScript, don't try to convert later (ugh)
  • Abstract everything
  • Separate gameclock from frameclock - game should be playable blind without a renderer attached
  • Finding sprite assets and mapping them to actors is hard