Skip to content

alexbrjo/JoResEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JoRes Game Engine

Ever since I started coding, I've been making games. Most of my projects would start with me reprogramming these game components:

  1. Collision detection
  2. Level data structure, almost always block-based
  3. Basic application flow

So instead of programming these same components over and over I've condensed them into my own game engine and level designer so I can focus on programming the unique parts of these games.

Try out the sample game

  1. Requires Grunt 0.4+ and a web browser that supports HTML5 canvas
  2. Clone git repo and run grunt task 'build'
  3. Open ../sample/play.html

Try out the GameCreator (early early dev.)

  1. Requires Grunt 0.4+ and a web browser that supports HTML5 canvas
  2. Clone git repo and run grunt task 'build'
  3. Copy rsc folder from ../sample to ../dist
  4. Open ../dist/gameCreator.html

How it's done

  1. Build JoResEngine.js and add the script from ../dist to your webpage.

    <script type="text/javascript" src="JoResEngine.js"></script> 

    Your page must have a canvas element with id "JoRes-target".

    <canvas id="JoRes-target"></canvas>
  2. Create an instance of the Engine.

    var joRes = new JoResEngine();
  3. Override the default menu and load screen.

    joRes.load(['MyMenu.js', 'MyLoadScreen.js']);
  4. Add the relative level data and image paths for JoRes to find.

    joRes.setLevelPath('myLevels/level*.js');
    joRes.setImgPath('myImages/*.png');
  5. Start!

    joRes.start();

Todo before Release

  1. Add audio modules
    • music
      • loading
      • starting / pausing / stoping
      • volume and (?)stereo control
    • sound effects
  2. Complete LevelCreator and Leveldata data format
    • paralax scrolling background
    • foregrounds
    • Add entity and unit support
    • Optization
    • Add default settings/properties file
  3. Complete HUD
    • Add scoreboard and points module
    • Add statistics to track in game actions
    • Add pause and setting screen
  4. Add docs
    • Tutorials with screenshots on how to use
    • Docs on how to create units and blocks

History

Over the past decade I've collected maybe a hundred half-started coding projects. This began as a platformer game and was re-adopted in March 2016. Decemeber 2016 development was resumed and I decided to convert the project into a stand alone Game Engine.

About

Personal 2D platformer Game Engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors