Skip to content

Instantly share code, notes, and snippets.

@derofim
Last active September 22, 2021 13:39
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save derofim/568e52ae75aff70a7213 to your computer and use it in GitHub Desktop.
Save derofim/568e52ae75aff70a7213 to your computer and use it in GitHub Desktop.
Cocos 2d js game resources

Books cocos2d-x javascript

Learning Cocos2d-JS Game Development
Rapid Game Development Using Cocos2D-JS

Tutorials cocos2d-x javascript

parkour-game-with-javascript-v3.0: https://github.com/slackmoehrle/cocos-docs/tree/92bba2dcc94ad718c1bfbdde37d47b19da879e6a/tutorial/framework/html5/parkour-game-with-javascript-v3.0
More official tuts:
https://github.com/slackmoehrle/cocos-docs/tree/92bba2dcc94ad718c1bfbdde37d47b19da879e6a/tutorials/javascript
https://github.com/slackmoehrle/cocos-docs/tree/92bba2dcc94ad718c1bfbdde37d47b19da879e6a/tutorial

Snake game: http://www.gamedevcraft.com/2015/09/cross-platform-snake-game-in-javascript.html

Cocos2D HTML 5 Tutorial Series table of contents (2012, gamefromscratch.com): http://www.gamefromscratch.com/page/Cocos2D-HTML-5-Tutorial-Series-table-of-contents.aspx

(2013) From zero to a complete game with Cocos2d HTML5: http://www.emanueleferonato.com/2013/05/16/from-zero-to-a-complete-game-with-cocos2d-html5-step-1/

(2013) How To Make a Cross-Platform Game with Cocos2D Javascript Tutorial: http://www.raywenderlich.com/32970

(2014) HTML5 Game Development with Cocos2d-JS - http://blog.rhesoft.com/2014/06/28/tutorial-html5-game-development-with-cocos2d-js-firefox-os/

Video from Sonar Systems

Cocos2d-x JavaScript Networking: https://www.youtube.com/playlist?list=PLRtjMdoYXLf6dWQTfK1b_kjLXK0EmQOES
Cocos2d-x JavaScript - Rect/Bounding Box Collision Detection: https://www.youtube.com/watch?v=t42V0slcf-0
Cocos2d-x Multi Device Design 2.0: http://www.sonarlearning.co.uk/coursepage.php?topic=game&course=cocos2d-x-multi-device-2 Cocos2d-x Pass Data To Scene: http://www.sonarlearning.co.uk/coursepage.php?topic=game&course=cocos2d-x-pass-data Cocos2d-JS v3 Course: http://www.sonarlearning.co.uk/coursepage.php?topic=game&course=cocos2d-js-v3 Cocos2d-x v2 JavaScript Course: http://www.sonarlearning.co.uk/coursepage.php?topic=game&course=cocos2d-x-v2-js

@derofim
Copy link
Author

derofim commented Feb 28, 2016

@derofim
Copy link
Author

derofim commented Feb 28, 2016

@derofim
Copy link
Author

derofim commented Feb 28, 2016

@derofim
Copy link
Author

derofim commented Feb 28, 2016

image
image
image

@derofim
Copy link
Author

derofim commented Feb 28, 2016

image

@derofim
Copy link
Author

derofim commented Feb 28, 2016

image

@derofim
Copy link
Author

derofim commented Feb 28, 2016

image

@derofim
Copy link
Author

derofim commented Feb 29, 2016

image
Simple Floppy Robin Cocos2d Javascript Lite #1 Getting Started
https://www.youtube.com/watch?v=cL5_bRkf4YA

@derofim
Copy link
Author

derofim commented Feb 29, 2016

image

@derofim
Copy link
Author

derofim commented Mar 1, 2016

@derofim
Copy link
Author

derofim commented Mar 2, 2016

http://www.cocoachina.com/bbs/read.php?tid-458173.html - CocosCreator + SocketIO + MySQL 简易教程(图裂已修复

@derofim
Copy link
Author

derofim commented Mar 2, 2016

@derofim
Copy link
Author

derofim commented Mar 2, 2016

@derofim
Copy link
Author

derofim commented Mar 7, 2016

Spine (skeleton animation) $69 - $300 USD https://ru.esotericsoftware.com/spine-purchase
image

Spine + cocos
http://www.gmtdev.com/blog/2014/09/02/getting-started-with-spine-skeletal-animations-with-cocos2d-x-v3/
https://github.com/EsotericSoftware/spine-runtimes/tree/master/spine-cocos2dx/3
Cocos API:
http://www.cocos2d-x.org/reference/html5-js/V3.8/symbols/sp.Skeleton.html
Spine + cocos2d js
https://github.com/cocos2d/cocos2d-x/blob/v3/tests/js-tests/src/SpineTest/SpineTest.js
RUS program 1.7.3:
http://gamemaker.at.ua/load/prochee/prochee/23
RUS edu video:
http://rutracker.org/forum/viewtopic.php?t=5026711

UPD 1:
* Spineboy demo works*
package.json
"modules": ["cocos2d", "extensions"],
resource.js
spineboy_png: "res/spineboy.png",
spineboy_json: "res/spineboy.json",
spineboy_atlas: "res/spineboy.atlas",
app.js
var skeletonNode = new sp.SkeletonAnimation(res.spineboy_json, res.spineboy_atlas, 1.5);
skeletonNode.setAnimation(0, "walk", true);
skeletonNode.setScale(0.2);
skeletonNode.setPosition(cc.p(50, 100));
this.addChild(skeletonNode);

@derofim
Copy link
Author

derofim commented Mar 9, 2016

map_01

@derofim
Copy link
Author

derofim commented Dec 2, 2016

@derofim
Copy link
Author

derofim commented Dec 2, 2016

Multiplayer Card Game using WebSockets,Java Netty Server ,Cocos2d-x-HTML5
http://www.gamedevcraft.com/2016/01/multiplayer-card-game-using.html
image

@derofim
Copy link
Author

derofim commented Dec 2, 2016

Статьи про мультиплеер
http://buildnewgames.com/real-time-multiplayer/
http://www.gabrielgambetta.com/fpm2.html
Multiplayer WebSocket Game server written in C using libuv & libwebsockets & Cocos2d-x-HTML5
http://www.gamedevcraft.com/2016/08/part-1-multiplayer-websocket-game.html
https://www.youtube.com/watch?v=zD8QuHzzpUk

@derofim
Copy link
Author

derofim commented Dec 2, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment