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

2 Player Ping Pong Game #1

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

2 Player Ping Pong Game #1

wants to merge 7 commits into from

Conversation

dev-oiram
Copy link
Owner

Introduction

A simple ping pong game created for the colonistio-test that can be played for two players con local machine.

Features

  • The paddles can be move according to the palyer (PlayerOne= W-key, S-key 🥇) (PlayerTow= ArrowUp,ArrowDown 🥇 )
  • The ball bounces of top and bottom borders and the players paddle.
  • It increase score when the ball subpass players paddle
  • Every time the ball bounce off players paddle it increases speed.
  • Using the "Space Bar" game can be Paused and with the "R-key" resets the game

VideoDemo

GameDemo.mp4

Install node_modules
Make game fullscreen and add deltatime variable to update method
Create module.js and Player class inside to add movement for two players
Add Ball to the game and added top and bottom border collision to change ball direction
Check when the ball collides with the left and right borders to reset. When the ball collides with the users it bounces back
Set TextNode for players score
Add differente states like: START, PAUSE, GAME, also added app.reset() for start game all over
@demiculus
Copy link
Collaborator

Hey @dev-oiram

Nice work, can you do some edits?
Branch off of this branch and continue on the new branch. Then create a new PR merging that new branch to this one and tag me for review.

At the new branch, I want to see a couple of things

  1. Fun mechanic: The game is a bit boring. Add any mechanic that you think would make the game more fun.
  2. Good design: Rectangle ball? come on :D, make it circle :D

Let me know if there are any questions.

@dev-oiram
Copy link
Owner Author

Hey @dev-oiram

Nice work, can you do some edits? Branch off of this branch and continue on the new branch. Then create a new PR merging that new branch to this one and tag me for review.

At the new branch, I want to see a couple of things

  1. Fun mechanic: The game is a bit boring. Add any mechanic that you think would make the game more fun.
  2. Good design: Rectangle ball? come on :D, make it circle :D

Let me know if there are any questions.

Thanks, I´ll make the changes

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

Successfully merging this pull request may close these issues.

2 participants