Creating a grid of objects

Here’s some stripped down code I use to create a grid of objects in Unity. I’ve used this setup in my Android game Block Blaze when the level is initialised. It’s attached to a Generator object, which also has some other functionality like determining what type of object is created, whether an object needs to be regenerated… Continue reading Creating a grid of objects

C# – Object Oriented Programming – Lab 4

Here is the scenario we want to test: – Write a “if else” statement that checks to see if bx and by are INSIDE the box. If the point (bx,by) is inside the box, print “Inside” otherwise print “Not inside”. (Hint use && in your answer) – Write a “if else” statement that checks to… Continue reading C# – Object Oriented Programming – Lab 4

C# – Object Oriented Programming – Lab 1 (Roots of a quadratic equation)

So I thought I’d upload some of the C# Object Oriented Programming labs I was given in my Computer Games studies and my solutions for them. Here’s the first one: Lab1 Create a Windows Console application, with a number of variables: a, b c (floats) x1 and x2 (floats) hasRoots (boolean) The purpose of the… Continue reading C# – Object Oriented Programming – Lab 1 (Roots of a quadratic equation)