Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background | Teamwork Game! #1

Open
utterances-bot opened this issue Oct 13, 2023 · 1 comment
Open

Background | Teamwork Game! #1

utterances-bot opened this issue Oct 13, 2023 · 1 comment

Comments

@utterances-bot
Copy link

Background | Teamwork Game!

Background for our game

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

Copy link
Owner

Gabriel-Gravin commented Oct 13, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants