Vlad
Vlad

Reputation: 619

What should I use to create a 2D game with JS (runner game)?

I'm a frontend developer and now I have a task to create a game.

Example is ⇾ http://redcarpetrampage.com/

The player should run via two buttons, only if event is "onkeyup" (or maybe "tap" on mobile).

The logic of all game is 95% like in example. Game hero should run, jump and collect something and in the end will get some score (and I should save it in database).

Popular game framework for 2D games in JS is Phaser, but I don't find any nice example for my type of like, like in example.

Game from example is created with Construct. I never used it before.

My experience in gameDev is - creating a few small games by tutorials without frameworks, and I have some knowledge with webGl (3d).

So I don't really know what should I do with it. Now I start a small tutorial based on Phaser, but I'm not sure is it right or not.

Hope, someone has some recommendation for me :)

Upvotes: 0

Views: 541

Answers (1)

Mosè Raguzzini
Mosè Raguzzini

Reputation: 15821

Note: I'll not list game engines already mentioned, (that are very good anyway).

CraftyJS

As the game mechanism is very simple you can try out Crafty, it is opensource and very simple for prototyping. It has built-in all the behaviors you are seeking for:

PixiJS

If you need performances and also mobile compatibility you can take a look at the stunning PixiJS which is more a rendering engine than a game engine, but has by far the best performance vs other engines, take a look at the performance of your device in examples section.

Upvotes: 1

Related Questions