Gabriel-Gravin / Teamwork

Platform jump game
MIT License
0 stars 0 forks source link

Background | Teamwork Game! #1

Open utterances-bot opened 10 months ago

utterances-bot commented 10 months ago

Background | Teamwork Game!

Background for our game

https://gabriel-gravin.github.io/Teamwork/2023/10/06/Background.html

Gabriel-Gravin commented 10 months ago

Drew the background. Made the background move down 5 pixels every 50 milliseconds to make it look like link will be moving up through the game. Did this by having 3 sperate backgrounds 1 off the screen on the bottom, one on the screen, and one off the screen on the top. After the background is fully off the screen it moves to the top and off the screen and the cycle continues. One of the key challenges for the drawing was getting the top of the picture to match the bottom. Did this by copy and pasting a small snippet of the top and put in on the bottom to give me an outline of where to draw. The main challenge of the code was just writing the logic so it would know when the background was fully off the screen and then moving it to the top.