Skip to content

Commit

Permalink
Changed game text colors to green (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
github-actions[bot] and github-actions authored Aug 20, 2022
1 parent 935658e commit 81685f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ var TitleScreen = function TitleScreen(title,subtitle,callback) {
};

this.draw = function(ctx) {
ctx.fillStyle = "#FFFFFF";
ctx.fillStyle = "#00FF00";

ctx.font = "bold 40px bangers";
var measure = ctx.measureText(title);
Expand Down Expand Up @@ -437,7 +437,7 @@ var GamePoints = function() {
this.draw = function(ctx) {
ctx.save();
ctx.font = "bold 18px arial";
ctx.fillStyle= "#FFFFFF";
ctx.fillStyle= "#00FF00";

var txt = "" + Game.points;
var i = pointsLength - txt.length, zeros = "";
Expand Down
2 changes: 1 addition & 1 deletion game.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ var Starfield = function(speed,opacity,numStars,clear) {
// If the clear option is set,
// make the background black instead of transparent
if(clear) {
starCtx.fillStyle = "#000";
starCtx.fillStyle = "#0F0";
starCtx.fillRect(0,0,stars.width,stars.height);
}

Expand Down

0 comments on commit 81685f1

Please sign in to comment.