ผลต่างระหว่างรุ่นของ "01219245/cocos2d/Sprites2"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
แถว 3: แถว 3:
 
In this tutorial, we will recreate a clone of a wonderful [http://en.wikipedia.org/wiki/Flappy_Bird Flappy Bird].  Let's call it Flappy Dot (as our player would look like a dot). We will start with basic game mechanics, then we will try to add special effects to the game.
 
In this tutorial, we will recreate a clone of a wonderful [http://en.wikipedia.org/wiki/Flappy_Bird Flappy Bird].  Let's call it Flappy Dot (as our player would look like a dot). We will start with basic game mechanics, then we will try to add special effects to the game.
  
== Steps ==
+
== Task breakdown ==
 +
Before we start, make sure you know how this game works.  You may want to try it for a bit.  I guess many of your friends have it on their phones.  This is how our game would look like:
 +
 
 +
[[Image:219245-dotscr.png]]
 +
 
 +
As usual, let's start by thinking about the possible list of increments we would add to an empty project to get this game.
 +
 
 +
<div class="toccolours mw-collapsible mw-collapsed">
 +
When you get your list, please see the steps that we plan to take here.
 +
<div class="mw-collapsible-content">
 +
* Show the player on the screen.
 +
* The player can jump and fall.  (Implement player physics)
 +
* Show a single pillar.
 +
* Move the pillar across the screen.
 +
* Check for player-pillar collision.
 +
* Let the pillar reappear.
 +
* Show more than one pillars.
 +
</div>
 +
</div>
  
 
== The player and its movement ==
 
== The player and its movement ==

รุ่นแก้ไขเมื่อ 15:33, 9 กุมภาพันธ์ 2557

This is part of 01219245.

In this tutorial, we will recreate a clone of a wonderful Flappy Bird. Let's call it Flappy Dot (as our player would look like a dot). We will start with basic game mechanics, then we will try to add special effects to the game.

Task breakdown

Before we start, make sure you know how this game works. You may want to try it for a bit. I guess many of your friends have it on their phones. This is how our game would look like:

219245-dotscr.png

As usual, let's start by thinking about the possible list of increments we would add to an empty project to get this game.

When you get your list, please see the steps that we plan to take here.

  • Show the player on the screen.
  • The player can jump and fall. (Implement player physics)
  • Show a single pillar.
  • Move the pillar across the screen.
  • Check for player-pillar collision.
  • Let the pillar reappear.
  • Show more than one pillars.

The player and its movement

The pillar

The pillars

Exercises

Player Animation

Background movement