Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
/ blocks.js Public archive

A small plattform game engine driven by JavaScript and DOM.

Notifications You must be signed in to change notification settings

0x7061/blocks.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Blocks.js

A small platform game engine driven by JavaScript and DOM.

Check out the demo here: http://mt111102.students.fhstp.ac.at/lv-meta/projekt/web/

// create engine and add the viewport

var Engine = new Engine2('jumptastic',config);
Engine.addViewport('body','viewport');

// add an intro image and start button

var imgSrc = 'img/tutorial.jpg';
Engine.addIntroductionImage(imgSrc);
Engine.addStartButton('start_button','Let\'s Jump!');

//override some default configurations

Engine.setGravity(5);
Engine.setPlayerSpeed(5);
Engine.setElevatorSpeed(1);
</pre>

About

A small plattform game engine driven by JavaScript and DOM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published