np-eazy / Pentaquad

3 stars 1 forks source link

General update #55

Closed np-eazy closed 1 year ago

np-eazy commented 1 year ago

Summary

Specifics

Constants: tweaked some game constants for better gameplay Debug: default to false GameState: idleMoveIncluded arg has been dropped back into CoreState Cell: now has a decaying lightColor which is added to compute currentColor

Target: added more complete features

TargetStage: Target spawning and power-ups have been worked out

Action: added a LOCK action enum, which triggers CoreState copying the current piece into the PieceStage and effectively locking the current piece for 5 moves.

GameController: Changed and added controls

CoreState: gameplay and graphic improvements

Scorekeeper: a very basic scoring system, contained in this class

Scoresheet: really basic score render just to put something in renderScoresheet() for demoing

graphics/utils/Functions: A lot of graphics use oscillations, so a sinusoid function which takes in an Object for arguments would be better organization.