public Ball(Renderer3D renderer, IEnumerable <CollidableGameObject> collidableObjects) : base(renderer, collidableObjects) { vmc = new VariableMovementComponent(this, 30, Vector3.Zero, Vector3.Zero); addComponent(vmc); frames = new Texture2D[1]; }
public GameObjectsManager(GraphicsDevice graphicsDevice) { gameObjects = new List <GameObject>(); drawableGameObjects = new List <DrawableGameObject>(); collidableGameObjects = new List <CollidableGameObject>(); toRemove = new List <GameObject>(); toAdd = new List <GameObject>(); this.graphicsDevice = graphicsDevice; r2D = new Renderer2D(graphicsDevice); r3D = new Renderer3D(graphicsDevice); }
public Character(Renderer3D renderer, IEnumerable <CollidableGameObject> collidableObjects, string name, Ball ball) : base(renderer, collidableObjects) { addComponent(new PlayerMovementComponent(this, 30, 0.05f, MAX_X)); addComponent(new ConstantMovementComponent(this, new Vector3(0, 0, 0.1f), 40)); addComponent(new VariableMovementComponent(this, 30, Vector3.Zero, Vector3.Zero)); this.name = name; this.ball = ball; touchingGround = true; }
public Field(Renderer3D renderer, int rows, int columns) : base(renderer) { goal = new Goal(renderer); bleachers = new Bleachers(renderer); this.rows = rows; this.columns = columns; keepMoving = true; textures = new Texture2D[4]; floorTiles = new Quad[rows * columns]; props = new Prop[256]; cactus = new Texture2D[4]; grass = new Texture2D[12]; rock = new Texture2D[13]; tree = new Texture2D[4]; DefinePropsWeight(); initQuads(); }
public Bleachers(Renderer3D renderer) : base(renderer) { animationInterval = 100; frames = new Texture2D[3]; }
public Goal(Renderer3D renderer) : base(renderer) { Visible = false; }
public Prop(Renderer3D renderer, float baseScale) : base(renderer) { this.baseScale = baseScale; }