Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Cocos2d-JS Game Development
  • Table Of Contents Toc
Learning Cocos2d-JS Game Development

Learning Cocos2d-JS Game Development

By : Emanuele Feronato
3.9 (11)
close
close
Learning Cocos2d-JS Game Development

Learning Cocos2d-JS Game Development

3.9 (11)
By: Emanuele Feronato

Overview of this book

If you are a Java developer who wants to learn about Java EE, this is the book for you. It's also ideal for developers who already have experience with the Java EE platform but would like to learn more about the new Java EE 7 features by analyzing fully functional sample applications using the new application server WildFly.
Table of Contents (11 chapters)
close
close
9
9. Creating Your Own Blockbuster Game – A Complete Match 3 Game
10
Index

Chapter 4. Learn about Swipes through the making of Sokoban

Do you know the Sokoban game? It's a funny puzzle game featuring a player pushing crates to some designated places. Normally, on a computer, these kinds of games—called tile-based games—are controlled by arrow keys, but since our game has to be cross-platform, we will let the player control in-game movements using swipes.

The game we will build is very similar to an iOS game I made called BWBan. It's free; you can play it at http://bit.ly/1fUXP8c.

In the process of making this game, which we'll call Cocosban, you will learn about the following topics:

  • How to detect swipes
  • How to load graphic assets through a sprite sheet
  • How to create 8-bit-like pixel games by playing with anti-aliasing

There's a lot to do, so let's start with the good old blueprint made in the first chapter and work on it.

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Cocos2d-JS Game Development
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon