Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

879872 Posts in 33010 Topics- by 24383 Members - Latest Member: celloe

May 25, 2013, 06:46:03 AM
TIGSource ForumsDeveloperTutorialsCocos2D HTML5 tutorial series
Pages: [1]
Print
Author Topic: Cocos2D HTML5 tutorial series  (Read 4165 times)
Serapth
Level 2
**


View Profile
« on: June 08, 2012, 05:36:19 PM »

I've just recently published a new series of tutorials, this one covering the recently released HTML5 port of Cocos2D-x.

If you are thinking about getting in to HTML5 game development, it's certainly worth checking out.  It's a remarkably nice environment to work in when someone else takes care of all the browser annoyances!

Right now there are 3 1/2 tutorials:

Tutorial 1 covers getting everything set up, including a local web server.

Tutorial 2 actually creates the mandatory Hello World application, but more importantly, gives an overview of program execution as well as a boiler plate for future code.  

Tutorial 3 covers displaying sprites on screen.  Wrapping your head around the coordinate system can be a bit tricky, so this tutorial goes into some detail on that subject.

Tutorial 3.5 covers setting up WebStorm to have full auto-completion support when working with Cocos2D... a must for me.  Granted, this isn't really a tutorial, thus the .5



Expect more tutorials shortly.  Of course I will still be publishing PlayStation tutorials as well, plus whatever else new and shiny draws my eye!  Rim's Gameplay SDK came *very* close to sinking it's hooks into me!

Hope some of you find them useful.
Logged
kamac
Level 10
*****


Notorious posts editor


View Profile WWW Email
« Reply #1 on: June 09, 2012, 06:41:43 AM »

Well that is interesting!
Didn't know cocos2d-x has it's port to HTML 5  WTF
Logged

Serapth
Level 2
**


View Profile
« Reply #2 on: June 09, 2012, 10:35:00 AM »

Yeah, the did a pretty good job too.

As an addon to this post, I also put together a cocos2D book round-up, in the same form as my earlier Unity book round-up.   Essentially it is a one page listing of every book available on the subject, including author, publisher, page count, rating, table of contents, description, links, publish date, etc.  A bit of a time saver if you are looking for a book on the subject.
Logged
eyeliner
Level 9
****


I'm afraid of americans...

hollow_digger@hotmail.com
View Profile WWW Email
« Reply #3 on: June 15, 2012, 07:54:08 AM »

Oh yes, this is how you do it! Hand Shake LeftTears of JoyHand Shake Right

Love this series! Thank YOU!
Logged

I'm doing this: Ballin'
Serapth
Level 2
**


View Profile
« Reply #4 on: June 17, 2012, 06:16:57 PM »

New tutorial up, this one covers handling mouse and keyboard events.
Logged
Mofko
Level 0
**


View Profile WWW Email
« Reply #5 on: June 28, 2012, 09:35:03 AM »

Coco's is a great software, I recommend it.
Logged
Serapth
Level 2
**


View Profile
« Reply #6 on: July 11, 2012, 04:28:18 PM »

Added another tutorial. Sound, music and menus

It demonstrates using menus, playing music and sound effects.
Logged
Serapth
Level 2
**


View Profile
« Reply #7 on: July 21, 2012, 10:11:46 AM »

I went off on a strange tangent with a new tutorial series that is somewhat related to this one.


Basically I am writing an app for my own use.  I have a little one, and she is having issues with transitions, so basically its just a presentation of "first this" and "then that".  So I show one picture to her, it transitions into another picture, then shows both pictures side by side.   Think along the lines of "first wash your hands"  then "dry them off".

So, I decided to

a) over engineer the hell out of it
b) document the process

If you are interested in web app development, I hope you will get something out of this series.  The end result is that simple application, but along the way I demonstrate/document

a) hosting a cocos2D application in a NodeJS server ( and show the basics of using Node and Express )
b) deploying your web application to a free cloud based provider ( Heroku in this case )
c) client/server web app development.  Create a settings application that allows you to upload images to be used by the game using YUI, JavaScript and Node

Coming up in the next part is of course authoring the simple game client itself using cocos2D and consuming networked assets.

If you look out there about web based games, this is the stuff that isn't often covered.  The nitty gritty "how am I going to host my app", "How do I communicate between the client and server", etc...  If you have zero web programming experience, a lot of this stuff can get pretty daunting.

So this tutorial series shows all that stuff...  it's on the edge of being game related, but I hope some of you find it interesting.

Part 1: serving cocos2D from Node
Part 2: deploying to the cloud
Part 3: client server programming
Part 4: coming soon

Logged
AlwaysGeeky
Level 0
**


View Profile
« Reply #8 on: July 23, 2012, 10:49:59 AM »

Cool, thanks!  Big Laff Evil
Logged
Mofko
Level 0
**


View Profile WWW Email
« Reply #9 on: July 30, 2012, 06:24:52 AM »

Cocos lets you make apps that aren't games right?  Sorry, stupid question.
Logged
Skaidon
Level 0
*


View Profile Email
« Reply #10 on: August 01, 2012, 09:41:56 AM »

Thanks! Collecting a bunch of HTMl5 tutorials for future reference. I'm a HTML5/CSS3 developer/designer who is trying to move more into the JS/Canvas side of things eventually! Smiley
Logged
Serapth
Level 2
**


View Profile
« Reply #11 on: August 15, 2012, 04:38:29 PM »

Added a new tutorial, working with Spritesheets

Also updated all tutorials to work with the newest code, which is much cleaner over all.
Logged
tigreton
Level 0
**


View Profile Email
« Reply #12 on: September 02, 2012, 07:43:37 AM »

It would be great if you make all your articles visible at the first post.
And if they are ordered by categories... Smiley
Logged
Serapth
Level 2
**


View Profile
« Reply #13 on: September 03, 2012, 11:08:00 AM »

I am being a bit thick I think but...

What do you mean?
Logged
tigreton
Level 0
**


View Profile Email
« Reply #14 on: September 03, 2012, 04:06:28 PM »

I mean, that it's nice that we can see your new post in your blog with a post in this thread. But it's easier to navigate if we can see them at the top, a collection. Like what you are doing in your left sidebar of your blog. You can use a {new} or something like that.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic