IbrahimFadel / rorkejs

A game framework made with PixiJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RorkeJS

This is a simple game framework inspired by Phaser. It uses the Pixi WebGL renderer to make browser games.

Usage

Using this framework is pretty simple. Essentially there are three stages to the game: load, create, and update. Load runs once at the start of the game, use it to load assets like spritesheets and textures. Create runs once, right after load. Update gets called every frame.

Check out game.js in this repository for an example of a simple game made with this framework.

Here's how you initialize your game. You can specify the canvas size, background color, and the functions to run for each three stages (in this case, i just kept them as load, create, and update).

const game = new Rorke(768, 758, [0, 0, 0], {
	load,
	create,
	update,
});
game.init();

About

A game framework made with PixiJS


Languages

Language:JavaScript 98.9%Language:HTML 1.1%