All the bricks for each level are initialized and updated here.
View code on GitHub
Inheritance Hierarchy
Breakout Level
Breakout.Tests EmptyLevel
Namespace: Breakout
Assembly: Breakout (in Breakout.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The Level type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Level | Initializes a new instance of the Level class |
Methods
Name | Description | |
---|---|---|
Dispose | Releases all resources used by the Level | |
Explode | ||
GetBrickAt | ||
InitializeNextLevel | ||
LifeLost |
Fields
Name | Description | |
---|---|---|
bricks | ||
columns | ||
rows |
Properties
Name | Description | |
---|---|---|
BricksLeft |
Remarks
Examples
[Test] public void Draw() { Resolve<Level>(); }
[Test] public void ForceResolutionChange() { Resolve<Level>(); Resolve<Window>().ViewportPixelSize = new Size(400, 600); }
[Test] public void DrawLevelTwo() { var level = Resolve<Level>(); level.InitializeNextLevel(); }
See Also