Sistemas

Páginas: 46 (11354 palabras) Publicado: 19 de noviembre de 2012


2D
Gameplay
Tutorial

Providing
2D
Gameplay
with
Unity
2 Author:
Graveck
Interactive Last
Revision:
19­FEB­2008

Contents

1. Introduction Why
2D
is
the
Bee's
Knees
 Prerequisites
 2. Setting
The
Scene Getting
in
the
2D
Mind­Set
 A
Closer
Look
 Setting
the
Level
Attributes
 Object
Profile:
Level
Attributes
 Object
Profile:
Death
Zone
 Setting
Up
the
Platforms
Object
Profile:
Platform
(Prefabs)
 Object
Profile:

Pre­Assembled
Platform
 Introducing
Lerpz,
Our
Lovely
Character
 Placing
Lerpz
 Directing
the
Camera
 Object
Profile:
Character
(Lerpz)
 Lighting
our
Scene
 Spicing
up
the
Character
 The
Camera
 Object
Profile:
Main
Camera
 Continuing
our
Level
 Script
Profile:

CameraTargetAttributes
 Handling
Rigidbodies
 Object
Profile:
Crate
 Exercise
 Moving
Platforms
Object
Profile:
Moving
Platform
 The
Spaceship
 Object
Profile:
Spaceship
 Well
Done!
 3. Delving
Deeper:
Scripting
Examples Studying
the
Scripts
 Moving
Platform
Particle
Effects


4 6 7 9 10 12 13 13 15 16 17 18 19 20 22 24 26 27 28 28 29 30 31 32 33 34 35 36 38 38

The
Camera
Scrolling
Script
 Streamline
Your
Workflow
 Spaceship
Script
Part
1:
Defining
Helper
Classes
Spaceship
Script
Part
2:
Controlling
the
Spaceship
 Spaceship
Script
Part
3:
Special
Effects
 Finished!
 4. What's
Next? Your
Turn


40 41 43 44 47 47 48

Introduction
Sometimes
2D
gameplay
 calls
and
you
can't
resist
its
 alluring
charm!
Unity
can
 handle
it.
 This
tutorial
shows
the
 steps
you
need
to
create
a
 basic
2D­style
platform
 game.

Why
2D
is
the
Bee's
KneesIt
is
no
secret
that
Unity
can
help
you
create
great
three­dimensional
games
with
ease.
 Its
raw
power
and
flexibility
allows
even
beginners
to
create
impressive
games
with­ out
much
difficulty.
Unity
is
undoubtedly
a
great
3D
game
engine
­­
so
why
on
earth
 would
you
want
to
create
a
2D
game
with
it? For
certain
game
types,
that
extra
"D"
in
3D
can
be
a
hindrance.
Some
games
simply
work
better
with
two­dimensional
gameplay
mechanics.
Think
of
those
simple
and
fun
 2D
side­scrolling
games
you
have
played
in
the
past,
or
maybe
you
have
a
simple
puz­ zle
game
idea
that
would
work
best
constrained
to
two
dimensions
­­
the
list
keeps
 going
but
the
bottom
line
is
many
games
can
benefit
by
the
use
of
only
two
dimen­ sions.
 Two­dimensional
games
are
also
commonly
easier
for
the
casual
gamer
to
understand,
which
is
something
to
consider
if
you're
a
small
game
developer
(see
the
article
"Cas­ ual
Games
as
a
Business"). Luckily,
Unity
is
extremely
flexible
and
can
easily
handle
2D
gameplay!
Its
world
class
 Ageia
PhysX
is
highly
adaptable
and
can
be
constrained
in
many
ways
including
two
 dimensions.
 In
this
tutorial
we
define
a
2D
Game
as
a
game
where
graphics
are
still
in
3D,
but
re­stricted
motion
causes
the
physics
and
gameplay
only
to
occur
in
a
single
2D
plane.
 This
lets
us
use
3D
models
for
our
content
and
makes
life
easier
for
artists
and
devel­ opers
alike.
One
could
say
that
we're
using
the
best
of
both
worlds:
the
ease
of
2D


gameplay
and
the
beauty
of
3D
graphics
­­
with
the
added
attraction
that
existing
de­ velopers
already
have
a
good
3D
asset
production
pipeline
in
place.
This
tutorial
will
guide
you
in
building
a
2D
platform
game.
We
have
designed
this
 tutorial
with
beginner
/
intermediate­level
users
in
mind;
we
only
ask
that
you
have
a
 baseline
knowledge
of
Unity.
We
have
also
included
some
advanced
concepts
that
 may
be
of
interest
to
more
seasoned
users.
 We
begin
by
getting
you
into
the
2D
mind­set.
Then
we
will
walk
you
through
build­ing
a
2D
world
in
which
your
character
will
move
around.
After
adding
a
few
cool
ob­ stacles
and
scenery,
we'll
lastly
add
a
rocket
ship
for
the
player
to
fly.
 We
hope
you
enjoy
this
tutorial
as
much
as
we
had
fun
creating
it!

The
tutorial’s
demo
level
in
action.

5

Prerequisites
Here
are
the
tools
and
knowledge
you
should
have
before
you
begin
this
tutorial: • Unity
2...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Sistemas
  • Sistemas
  • Sistema
  • Sistemas
  • Sistemas
  • Sistemas
  • Sistemas
  • El sistema

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS