serzhbsv / DragonWarriorJS

JavaScript/Canvas by recreating Dragon Warrior (NES) - site

Home Page:https://DragonWarriorJS.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Author repo DragonWarriorJS

Recreating the original NES Dragon Warrior using JavaScript

##Files

The "index.html" file loads all the scripts, testing elements, and the canvas.

The "assets" folder contains:

  • Font file
  • Music files
  • Sound effect files
  • Sprite sheets (characters, enemies, map tiles)

The "scripts" folder contains all the game objects. Here is a brief description of each file:

  • audio.js - audio object, plays music and sound
  • combat.js - combat related functions (player attack, enemy attack, run, etc.)
  • config.js - all configurable values:
    • sprites
    • level data
    • weapons, armor, and items
    • spell data
    • enemy data
    • map data (world, towns, dungeons)
  • game.js - game loop, rendering, script processing
  • init.js - initialize the game
  • map_functions.js - map object, map interaction functions
  • player.js - player object, properties and functions for the player
  • text.js - all in-game displayed text

##Grunt setup (optional)

If you haven't used Grunt before, be sure to check out the Getting Started guide.

Supported options:

grunt lint #check source for errors, etc
grunt      #build a combined/minified "release" version of the project

##References

About

JavaScript/Canvas by recreating Dragon Warrior (NES) - site

https://DragonWarriorJS.github.io


Languages

Language:JavaScript 99.3%Language:HTML 0.5%Language:CSS 0.2%