Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcdonnell2 committed Apr 23, 2018
2 parents 5227bfe + 1e2f4ba commit 365225a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Binary file added images/pan.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions js/Main/ImageLoading.js
@@ -1,6 +1,9 @@
// still images
var hippoCarPic = document.createElement("img");
var particlePic = document.createElement("img");
var panPaddle = document.createElement("img");

//sprites
var hippoCarPicTailwag = document.createElement("img");
var hippoCarPicTailwagSprite;

Expand Down Expand Up @@ -85,6 +88,7 @@ function loadImages() {
var imageList = [
{varName: hippoCarPic, theFile: "foodTruck.png"},
{varName: particlePic, theFile: "particle.png"},
{varName: panPaddle, theFile: "pan.png"},

{TrackType:TRACK_ROAD, theFile: "track_road.png"},
{TrackType:TRACK_WALL, theFile: "track_wall.png"},
Expand Down
3 changes: 2 additions & 1 deletion js/PongScene/Kitchen.js
Expand Up @@ -10,7 +10,8 @@ function kitchenStuff() {
colorRect(0, 0, canvas.width, canvas.height, "lightgrey");

//paddle 1
colorRect(paddle1X, paddle1Y, PADDLE_THICKNESS, PADDLE_HEIGHT, "white");
//colorRect(paddle1X, paddle1Y, PADDLE_THICKNESS, PADDLE_HEIGHT, "white");
canvasContext.drawImage(panPaddle, paddle1X, paddle1Y)

//paddle 2
colorRect(paddle2X, paddle2Y, PADDLE_THICKNESS, PADDLE_HEIGHT, "white");
Expand Down

0 comments on commit 365225a

Please sign in to comment.