Cocos2d-html5 Showcase

Added by Zhe Wang 12 months ago

This is a showcase of cocos2d-html5 alpha, including many features just as:
  • Parallax background
  • Tilemap
  • Actions
  • Ease
  • Frame animation
  • Schedule
  • Labels
  • Keyboard Dispatcher
  • Scene Transition.

Art and audio is copyrighted by Enigmata Genus Revenge, you may not use any copyrigted material without permission.

This showcase is licensed under GPL. You're welcome to use this as a simple tutorial for your upcoming html5 game :)

(Controls: Use WASD to move your ship)
If its too slow in this page, it may caused by iframe tag. Visit http://www.cocos2d-x.org/MoonWarriors/index.html and play it directly.

Download the source code from: https://github.com/ShengxiangChen/MoonWarriors


Comments

Added by Vasiliy Sergeev 12 months ago

Looks awesome!:)

Added by han zhen 12 months ago

So cook!

Added by Dorin GRIGORE 12 months ago

-- this -- is -- so -- amazing --

The future looks promising :D

Added by Oren Bengigi 12 months ago

Amazing!

Added by Evgeniy Rojkov 12 months ago

2-7 fps on my windows phone (nokia lumia 710).
seems like html5 still not an option

Added by Hao Wu 12 months ago

html5 might not be an option for mobiles right now, but we are working on javascript binding for both Cocos2d-x and cocos2d-iphone, which means you can take the game written for cocos2d-html5 and have it run on cocos2d-x on iphone and android with almost native performance

Added by David Diaz 11 months ago

Hi, Im testing out cocos2d with and Im looking at your code, trying to change scene I've come across this sentence:

var scene = cc.Scene.create();
scene.addChild(Menu_layer.create());
cc.Director.sharedDirector().replaceScene(cc.TransitionFade.create(1.2, scene))

But I'm getting the error: "undefined" is not a function evaluating cc.Scene.create(), so I looked at my recently bundled version of cocos2d-html5-alpha-canvasmenu-min.js, and I found that no function cc.Scene.create is there. But checking your project file in github i can see that your's actually have it. I downloaded the file today so I would expect to have the latest version, but I'm puzzled because I don't know if your's is a newer version or mine is the current one and that method is deprecated...

Added by Shun Lin 11 months ago

We are changing APIs for Cocos2d-html5 currently, from now on the APIs will be compatible with Cocos2d-x JS binding and Cocos2d-iPhone JS binding.

With the new APIs, all object is constructed by "create" function. You may pull the latest code from github, and build engine files to single file by yourself with Ant tools.

How to make a single file:
1) go to Cocos2d-html5/cocos2d directory
2) run "Ant" command in your terminal

If you are Mac user, you can run it directly. If you are windows or linux user, install Ant first.