Posts

Showing posts with the label Game Programming

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...

Andre Michelle's Tile based Scrolling ported to AS 3

Update:- I have found something that has to be added to the existing code. The SWF embedded here runs only @ around 60 FPS on a Safari or Firefox on a Mac . I will work on a more consistent render loop code adding some timer calculation elements soon. I have ported the Tile based scrolling in Flash code by Andre Michelle to use Actionscript 3.0 Main challenge I faced was the tearing issue which was removed after I used Timer Event and updateAfterEvent() method. Thanks to 8bitRocket site for the tip. I am getting a blazing 160 FPS in browser.. OMG Flash rocks ! If anyone wants me to provide comments and documentation for the code. I will happily do it on request. Click here to get the full source code. P.S. If its slow, its because you might be having the static noise swf playing below (scroll page down). View on the post page by click the title to ensure it plays smoothly.

Starting SDL !!!

Its been quite sometime since I started to study SDL with my friend. I am going to summarise somethings about SDL as a beginner. First let me tell the steps for configuring SDL with DevC++ IDE 4.9.9.2. After installing DevC++ IDE, download the SDL Library Download the SDL development library for Mingw32 http://libsdl.org/release/SDL-devel-1.2.12-mingw32.tar.gz (might be changed in the future) SDL Library official site is www.libsdl.org Place it in your C:\ Drive root. You can also place it whereever you want to store, but here I am going to make further explanation assuming that we are extracting the downloaded file in C:\. If you are extracting at a different location make changes in the path as necessary in the below example Extract the contents. It will create a folder called SDL-1.2.12. Rename the folder to 'SDL' for simplicity sake. Now extracted contents are in C:\SDL To verify check if there are folders by name bin, build-scripts, lib, include etc. under the path ...

How to begin game programming ??

I remember I asked my father how games were made when I was in UKG after I got my ATARI 2600, and has been always trying to find out since then. (Throughout my school life, I never owned a computer at home, only thing they taught in school was LOGO and very very limited amount of Basic. When I was in 9th or 10th standard I met this awesome thing called "Flash" which was Flash 5 then, and Flash CS4 now !) This is something that I took years to find out. The first thing I started was to program with Flash . Soon I realized Flash's capabilities.I agree that you can make decent games with flash too. But still how do these people program real AAA titles like Half Life, Quake 3 etc ?? Then I came to world of turbo C, started ambitiously later found its slow and screen was flickering, then came Java with double buffering , I got a tutorial about tile based games and realized this is how games like Super Mario was made. Used it in Java, got some smooth scrolling, but could...