14 double xPositions[COUNT] =
18 0.3, 0.25, 0.35, 0.2, 0.4,
19 0.7, 0.75, 0.65, 0.8, 0.6,
20 0.5, 0.4, 0.6, 0.45, 0.55, .6
23 double delays[COUNT] =
27 3.25, 0.25, 0.25, 0.25, 0.25,
28 3.25, 0.25, 0.25, 0.25, 0.25,
29 3.5, 0.3, 0.3, 0.3, 0.3, 0.3
35 for (
int i = 0; i < COUNT; i++)
Represents an enemy ship that is biological in nature.
virtual void SetTexture(Texture *pTexture)
Sets the texture that will be used to render the enemy ship.
virtual void Initialize(const Vector2 position, const double delaySeconds)
Initializes the enemy ship.
static void SetCurrentLevel(Level *pLevel)
Set the current level.
static int GetScreenWidth()
Gets the screen width in pixels.
Loads and manages the lifespan of objects from external files.
T * Load(const std::string &path, const bool cache=true, const bool appendContentPath=true)
Load and manage a resource.
Represents a 2D grid of texels.
Vector2 GetCenter() const
Gets the center position of the texture.
Defines a vector with 2 components (x and y).
float Y
The y-coordinate of the vector.
void Set(const float x, const float y)
Sets the components of the vector.
virtual void LoadContent(ResourceManager &resourceManager)
Load the content for the level, including game objects and resources.
virtual void AddGameObject(GameObject *pGameObject)
Add a game object to the level. This object will be updated, rendered, and checked for collisions.
virtual void LoadContent(ResourceManager &resourceManager)
Load the content for the level, including game objects and resources.