Tuesday, March 11, 2014

New Collision System is Done!

According to this article:
http://www.metanetsoftware.com/technique/tutorialA.html

Now we have done a simple collision system (in gridbase branch) which only supports rects. It doesn't support scaling yet.

You can add it from menu "Component > Boss Physics > Physics Entity".

Wednesday, March 5, 2014

Constants.xml Doc v0.1

There are a few numbers that can be tweaked.
<constants>
<player>
<walk-speed>1</walk-speed><!-- the speed the player moves without pressing SHIFT -->
<run-speed>1.5</run-speed><!-- the speed the player moves when pressing SHIFT -->
</player>
<boss>
<rush-speed>0.1</rush-speed><!-- the speed the boss rushed to the player on clapping -->
<trace-speed>0.04</trace-speed><!-- the speed the boss goes when shooting -->
</boss>
<boss-bullet>
<speed>0.2</speed><!-- the speed of the boss' bullets -->
</boss-bullet>
</constants>

Friday, February 28, 2014

New prototype: Space Being Shot!


It is in gridbase branch.
Exploring the playful part of the game.
It's kind of hard game and works well.

Coordinates in the game.

There are two coordinate systems in this game.


  • Unity's built-in 3d coordinates which uses left-hand coordinate system. using Vector3 class.
  • 2D screen tile-based coordinate system. using VectorInt2 class.
The problem is that the Y-axis is reversed between these two. Be aware of that.

Use Level.WorldToGrid(Vector2) to translate the first to the second.