Jump to content

I wrote 4 part tutorial how to build Snake game using Cocos2d-x HTML5 version


umen
 Share

Recommended Posts

Hello all  

I started to write tutorials blog about game development,especially exploring the options developer have when developing cross platform games using open source tools.      

for the first tutorial series i developed simple snake game which i plan to show how to implement it for the web,mobile and desktop.   

the framework i chose is Cocos2d-x. it is mature and professional and  above all it is open source.

and have great JS/Lua support.  

i will use JavaScript as my language for this. way ? Because it is easy and accessible. easy to learn for beginners.  

First part is for the web:  





 

To play the final game :  


The source code:  


 

 

Please note that this is the first draft , i will happy to get Feedback so i could iterate and improve.

Thanks
Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...

Good question , but to worm the user , i think it involve the iOS api while it detected it will fire callback which you will catch in your code . 

i dont think it is implemented in cocos2d-x engine 

 

yes, I hope it will be implemented in near-future.

this feature is really important if you want to get sponsorhip from html5 game. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...