Skip to content

Commit

Permalink
Merge pull request #1 from gbouvignies/update-text-colors
Browse files Browse the repository at this point in the history
Changed game text colors to green
  • Loading branch information
gbouvignies committed Nov 28, 2023
2 parents 47e0d27 + c6d6c8e commit 702f620
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 @@ -190,7 +190,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 @@ -480,7 +480,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,
Expand Down
2 changes: 1 addition & 1 deletion game.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,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 702f620

Please sign in to comment.