Game Development Reference
In-Depth Information
end
elsif @x > des_x
if @x - des_x < shift
@x = des_x
else
@x -= shift
end
end
if @y < des_y
if des_y - @y < shift
@y = des_y
else
@y += shift
end
elsif @y > des_y
if @y - des_y < shift
@y = des_y
else
@y -= shift
end
end
# ...
end
# ...
end
It wouldn't win code style awards, but it does the job. Game is now much more playable.
Reviewing The Changes
Let's get back to our list of improvements to see what we have done:
1.
Enemy tanks do not respawn.
2.
Random maps are boring and lack detail, could use more tiles or random
environment objects.
3.
Bullets are hard to see on green surface.
4.
Hard to tell where enemies are coming from, radar would help.
5.
Sounds play at full volume even when something happens across The whole map.
6.
My tank should respawn after it's dead.
7.
Map boundaries are visible when you come to the edge.
8.
Both my tank and enemies don't have any identity. Sometimes hard to distinguish
who is who.
9.
Explosions don't leave a trace.
Search WWH ::




Custom Search