Home Start Back Next End
  
18
and current position
is
not goal, then X will keeps on driving. Travelled distance
is
inversely proportional
to the
gas
use,
means that the
further distance of
X
trip,
the
lower
level of gas resource shown in the fuel meter, which will
leads to refuel state
when
the
fuel
meter
indicates critical
level
or
no
fuel
left.
These
two
states
will
keep
iterating
until
it
achieve
arrive
state, which symbolize with current position
equals to destination position.
Figure  
2.1.2.1.  
State  
Machine
Start
(Point A)
Illustration for A-B travelling case
study.
Initial_Distance
Gas_Empty
Gas_Consumed
Distance_Reduced
Driving
Refuel
Zero_Distance
Gas_Full
Arrive
(Point B)
2.1.2.2.  
Math Theory
Math
is
one
of
the
fundamental theories
that
Game
Programmer
needs
to
understand,
since
there
are
a
lots
of
elements
in
game
that
require
some
of
the
proven theories to assist its development, although most of the computation will be
Word to PDF Converter | Word to HTML Converter