Wednesday, May 14, 2014

Playing with Unity3d and the 4.3 2d tools



Test project I put together using Unity 4.3 2d tools. Built this to teach myself the basics. Yes there are random particle effects everywhere ,you can stand on the enemies heads, yeah its super short and you can't die.
Controls
  • ctrl - strong attack
  • alt - quick attack
  • space - jump
  • a - Move Left
  • d - Move Right


Play it in a new window



Things of note.
  • The hit detection mechanism is RayCasting. Check out the OnAttacking method for details on that. (RayCasting is super easy with unity)
The Player Control Script









No comments: