출처 : http://catlikecoding.com/unity/tutorials/runner/


Runner, a minimal side-scroller

In this tutorial we'll create a very simple endless running game. You'll learn to
  • generate a layered background;
  • reuse objects;
  • use simple physics;
  • detect input to make the player jump;
  • implement a power-up;
  • write a small event manager;
  • switch stuff on and off on demand;
  • make a minimal GUI.

You're assumed to know your way around Unity's editor and know the basics of creating C# scripts. If you've completed the Clock tutorial you're good to go. The Graphs tutorial is useful too, but not necessary.

Note that I will often omit chunks of code that have remained the same, only new code is shown. The context of the new code should be clear.


You'll make a run for it.
Game Design
Before we get started, we should make some decisions about what we put in the game. We're going to make a very simple 2D side-scroller, but that's still very vague. Let's narrow it down a bit.

For gameplay, we'll have a runner who dashes towards the right of the screen. The player needs to jump from platform to platform for as long as possible. These platforms can come in different flavors, slowing down or speeding up the runner. We'll also include a single power-up, which is a booster that allows mid-air jumps.

For graphics, we'll simply use cubes and standard particle systems. The cubes will be used for the runner, power-up, platforms, and a skyline background. We'll use particle systems to add a trail effect and lots of floating stuff to give a better sense of speed and depth.

There won't be any sound or music.


안정적인 DNS서비스 DNSEver DNS server, DNS service
Posted by 키르히아이스
,