Tag Archives: script

Unity Draw Call Batching

I was having problems with Unity draw call batching. I’ve started on a small 2d game (Earth Guardian) and had made a small mockup and was already having problems with the number of draw calls 🙁 It looked like I was getting an ekstra draw call for each sprite I created. So I didn’t know what I was doing..! So… (more…)

Unity touch input

My first encounter with Unity touch input didn’t go as I wanted it to.. After some failed attempt and a test scene in Unity, it did started to make sense. And finding out that touch has phases and FingerId’s helped a lot. 😉 So here’s my take on a controller and firing script for my current project. private shieldFingerId = -1;… (more…)

Player movement script for the 3×3 POC

I just wanted to show how I chose to do the player control script. After playing the game some more, I’ve decided that the game isn’t going to work on the mobile devises. The swipe to move the player would be very counter intuitive after level 8. For the movement script, I wanted the player to move in a continuous… (more…)