From 78a9a06cbf4035b46acb16e8fde4318f9130e991 Mon Sep 17 00:00:00 2001 From: nick Date: Mon, 25 Feb 2019 08:10:38 -0500 Subject: [PATCH] Updated to work in all browsers I changed the files to links to the github images so it works in chrome. --- flappyBird/sketch.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flappyBird/sketch.js b/flappyBird/sketch.js index f0c24fa..fe0ef27 100644 --- a/flappyBird/sketch.js +++ b/flappyBird/sketch.js @@ -40,14 +40,14 @@ var isChristmas = true; function preload() { if (isChristmas) { - birdSprite = loadImage("images/christmasBerd.png"); + birdSprite = loadImage("https://raw.githubusercontent.com/Code-Bullet/Flappy-Bird-AI/master/flappyBird/images/christmasberd.png"); } else { - birdSprite = loadImage("images/fatBird.png"); + birdSprite = loadImage("https://raw.githubusercontent.com/Code-Bullet/Flappy-Bird-AI/master/flappyBird/images/fatBird.png"); } - topPipeSprite = loadImage("images/full pipe top.png"); - bottomPipeSprite = loadImage("images/full pipe bottom.png"); - backgroundSprite = loadImage("images/background.png"); - groundSprite = loadImage("images/groundPiece.png"); + topPipeSprite = loadImage("https://raw.githubusercontent.com/Code-Bullet/Flappy-Bird-AI/master/flappyBird/images/full%20pipe%20top.png"); + bottomPipeSprite = loadImage("https://raw.githubusercontent.com/Code-Bullet/Flappy-Bird-AI/master/flappyBird/images/full%20pipe%20bottom.png"); + backgroundSprite = loadImage("https://raw.githubusercontent.com/Code-Bullet/Flappy-Bird-AI/master/flappyBird/images/background.png"); + groundSprite = loadImage("https://raw.githubusercontent.com/Code-Bullet/Flappy-Bird-AI/master/flappyBird/images/groundPiece.png"); }