Posts

Showing posts with the label Unity3d

DoTween - The Big Demo

Image
I love DoTween , and have been using it extensively at work and personal projects, ever since I heard of it. Tweens are a great and cheap way to get a polished look for all transitions and animations in your game or mobile app. Stop coding movement by hand for menu items, HUDs, simple translations etc. if you are still doing it. So I made a small 2d demo in Unity5 with DoTween, where you can play with different types of tweens, including an option to choose a different tween for different axes (X and Y) Its open-source btw, and you can play with the code yourself on github . Click to open the unity web player in new tab (Firefox, Safari recommended) If Chrome blocks, follow instructions . Easing is an important component of making your games and interactive experiences Juicy. If you don't know what Juicyness is watch this amazingly cool super awesome video of two game developers showcasing their demo.

Game development live blogging - Part 2

Image
Alright yesterday I left a body-less snake alone in Part 1. Today I am going to make it attach with its body, and have you test-drive the snake in the editor, even in "Edit mode"... Fancy! I know, that's one of the strength's of Unity3d's editors. Recap : So far, in the editor, edit mode, I am able to drag the snake's head GameObject, and snap it to the grid. Now its time to link them together. Usually in the past, I always hold them all in a single array like data structure and keep updating their position using code, by shifting their position data from head to body 1, and body 1 to body 2 and so on. This time I am going to try a new approach. Let's do it the Unity3d's way. First I am going to declare a new variable called "nextPart" of type SnakePart. I realised, each part's responsibility is only to pass its old position to the next body part. This will be a chain effect and the entire snake will move. Also we never use th...

Game development live blogging - Part 1

Image
I'm starting a project called "Snake On Acid" using Unity3d engine. Its the classic old Nokia snake game, but with all the game development magic I have learnt so far in my career. It is going to have what I believe are some interesting time based twists, amazing sound and flashy graphics with lot of juicyness! Much in line with super hexagon's style. Lets start.. I have setup a basic project with some graphics inspired from Neave snake. I hope to change the graphics later. I have a "gameboard" background graphic object (with sorting layer : background), a snake game object with three snake body objects (sorting layer : foreground) and a main camera object. Oh I also have Demigiant's DoTween plugin added to the Unity project. There's going to be some amazing tweening :) Now to make the snake move, but with some tween magic. I am going to focus only on the head snake object and attach a script to the body. Body part will be a prefab, and w...