Game-Design / Sprint2 / Sprint2_actual / Shay Code Review Readability Sprint 2.txt
Shay Code Review Readability Sprint 2.txt
Raw
Code Review Author: Shay Fabrizio
Date: 10/4/21
Sprint 2
.cs file being reviewed: ItemSprite.cs
.cs file author: Jackson Chapman
Time spent: 15 minutes

This file is a concrete implementation of ISprite. It has only one property, Texture. All others
are private instance variables. It's constructor takes a total of 8 parameters to initialize these
instance values. Its draw() method contains a single line calling upon the spriteBatch. Very clean
and easy to follow. Its update method is very eay to follow; much easier than other ISprite concretions,
in fact! The timeSinceFrameChange increase by the elapsed game time milliseconds, then it checks if the
time since the last frame change exceeds the millisecods per frame. If so, reset and iterate frames,
and change the source Y coordinate to grab the new frame. If we hit the last frame, reset. Simple and concise.
Great job, Jackson!