Ok, last night I spent nearly 4 hours until I passed out trying to figure out layering the GUITEXTURES on the camera to get an effect to play as a 2d game.
Attached is a space invaders clone game I wrote in another languaged called aurora. The code for the game exists in the file called basic.src
Now, the deal with this, as to why I am posting it, is to show that the 2d layer with transparency is used for the game, the 3d atmosphere in the background is not unlike unity where the fact that everything is in the 3d space. Now, its crappy choppy I know, because of the way that engine handles the game loop and I don’t have the movement based on timer, but instead, static positioning.
So, now my delima, I need to do the same thing in Unity, I can update that exact code to work with in unity, IF I can figure out how to place / update images dynamically on the camera as a guitexture.
So, if there is an article in the docs that I have completely overlooked on how to test for collision between sprite objects, please link me the url to it so I can see how to check for collisions between sprites.
That will only work on a PC though since its written for directx9, october release I think. Only other aspect I thought about before my head hit my desk, was to create cubes for all game objects, then check for box collision between the objects and lock them to the x and z for movement.
The entire game logic is already done.
That took me about a week to come up with although off and on, so really about 9 hours of programming time and testing.
Like with everything else, I’ll be hammering on this until I figure out how to get it to work the way I want it to.
36114–1328–$flyinginvaders_137.zip (6.73 MB)