Posted by: spawnfestis on: March 5, 2009
Here you go, two of my classes in two distinct snippets! GameObject.cs /* Author: Jimmy (spawnfestis.wordpress.com) Revision: 1.0 Description: Essentially gives an object properties to be used within the game constructor To-do: Add more references and vectors Known bugs: N/A */ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace Breakout { class GameObject { public Texture2D sprite; public [...]
Posted by: spawnfestis on: March 4, 2009
Gravitation, what more is there to know? You’ll grasp it from this fast snippet-explanation! float gravitation = 0.1f; // Variable for defining a float 0.1 decimal for (int i = 0; i < playerArray.GetLength( 0 ); i++) // Loop through all of the players accessible in the array. (GetLength = Returns a value of HOW [...]