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

render the game #10

Open
juicyGentlemen opened this issue Oct 16, 2020 · 0 comments
Open

render the game #10

juicyGentlemen opened this issue Oct 16, 2020 · 0 comments

Comments

@juicyGentlemen
Copy link
Collaborator

render function
draw the playing field
draw each players names and scores
draw the net
draw player 1 and player 2
draw the ball

"const framePerSecond = 50 ;"

game function
call update function (game logic)
call render function

set interval for game at 1000 / framePerSecond

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

No branches or pull requests

1 participant