Save
SEMESTER 01
PLATFORM DEV THEORY
Chapter 15: Monogame Project Classes
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Soeroe
Visit profile
Cards (39)
What is the final assignment of the course?
Develop a
MonoGame
application
View source
Why must the classes described be used in the project?
To demonstrate understanding of the
course content
View source
What are the two main classes discussed in section 15.2?
SpriteSheet
AnimatedSpriteSheet
View source
What does the SpriteSheet class implement?
Functionality to show part of a
Texture2D
View source
What class does AnimatedSpriteSheet inherit from?
SpriteSheet
View source
Why is inheritance used for AnimatedSpriteSheet and SpriteSheet?
To exercise inheritance and
polymorphism
View source
What is the base class of SpriteSheet?
System.Object
View source
What properties does SpriteSheet have?
Texture2D
,
Rows
,
Columns
,
TopLeftPosition
,
Size
View source
What does the SpriteIndex property represent?
0-based
index identifying the sprite
View source
How is SpriteSize calculated?
Using
Texture2D
dimensions,
rows
, and
columns
View source
What methods does SpriteSheet have?
Update(
GameTime
) and Draw(
SpriteBatch
)
View source
What is the special feature of SpriteSheetAnimation?
Capability to move the shown
sprite
for animation
View source
What properties are specific to SpriteSheetAnimation?
MinSpriteIndex
,
MaxSpriteIndex
,
IdleSpriteIndex
View source
What does the IsAnimationStopped property do?
Sets
CurrentSpriteIndex
to
IdleSpriteIndex
if true
View source
What does the Update method in SpriteSheetAnimation do?
Calls
base.Update
and
updates
the
animation
View source
What is the purpose of the GameObject class?
To combine visualization with extra
features
View source
What is the inheritance structure of GameObject?
Inherits from
System.Object
View source
Why is GameObject declared abstract?
To prevent direct
instantiation
View source
What property in GameObject represents its visualization?
Visualization of type
SpriteSheet
View source
What does the IsActive property control in GameObject?
Whether the GameObject participates in
operations
View source
What does the Velocity property in GameObject represent?
The speed of the GameObject's
movement
View source
How is IsOutOfBounds calculated?
Using Visualization properties and GameSettings values
View source
What does the Update method in GameObject do?
Moves the GameObject and updates
visualization
View source
What is the purpose of the Draw method in GameObject?
Calls
Visualization
.Draw if active
View source
What does the IsCollidingWith method check?
If two GameObjects'
HitBoxRectangles
intersect
View source
What are the main responsibilities of the Screen class?
Initialize
LoadContent
Update
Draw
View source
What is the inheritance structure of the Screen class?
Inherits from
System.Object
View source
What is the purpose of the GameSettings class?
To
provide
global access
to
settings
View source
What keyword is used to define partial classes in C#?
partial
View source
What is the significance of the static declaration in GameSettings?
All members must be static as well
View source
What properties are defined in GameSettings?
Dimensions
for graphics and screens
View source
How does Game1 interact with GameSettings.ActiveScreen?
Updates and
draws
the ActiveScreen only
View source
What is the purpose of the UserInput class?
To handle standard user
interactions
View source
What does the SimpliedTextBox class inherit from?
TextControl
View source
What is the main function of the Button class?
To allow user interaction through clicks
View source
What are the key features of ControlBase?
Abstract class
Inherits from System.Object
Properties: Position, Size, BackgroundColor, StrokeColor
Methods: Update, Draw
View source
What are the properties of TextControl?
Inherits from
ControlBase
Properties
: Text, Font,
TextColor
Overrides Draw to center text
View source
What does the SimpliedTextBox class add to TextControl?
Logic to change displayed text on key releases
View source
What is the relationship between Button and TextControl?
Button inherits from TextControl
Button adds no new
properties
or
methods
View source