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

Roadmap for Pong Game Implementation #24

Closed
21 tasks done
vcwild opened this issue Jun 2, 2023 · 0 comments
Closed
21 tasks done

Roadmap for Pong Game Implementation #24

vcwild opened this issue Jun 2, 2023 · 0 comments
Assignees
Labels
back-end Back-end feature or request front-end Front-end feature or request study Further information is required

Comments

@vcwild
Copy link
Collaborator

vcwild commented Jun 2, 2023

Study Plan: Pong Game with Websockets using NestJS and Socket.IO

This study plan outlines the steps to develop a Pong game using websockets and the Socket.IO library within the NestJS framework. The goal is to create a real-time multiplayer Pong game where players can compete against each other online.

  1. Familiarize yourself with the basics of NestJS (relates to Study NestJS #19)

    • Understand the core concepts of NestJS, such as modules, controllers, and providers.
    • Learn how to set up a basic NestJS project and run it.
    • Explore how to handle HTTP requests and responses using controllers and services.
  2. Study websockets and Socket.IO:

  3. Design the architecture of your Pong game:

  4. Implement the backend:

    • Create a NestJS module for handling the game-related functionality.
    • Set up a Socket.IO server within your NestJS application.
    • Implement the game logic, including ball movement, collision detection, and scoring.
    • Handle socket events for player actions, such as paddle movement and game start/stop.
    • Implement room management to handle multiple game instances.
  5. Build the frontend:

    • Choose a TypeScript framework for the frontend, such as Angular or React.
    • Set up a Socket.IO client in the frontend application to establish a connection with the backend.
    • Create the necessary UI components for rendering the game, including the paddles, ball, and scoreboard.
    • Handle user input for controlling the paddles.
    • Emit socket events to communicate with the backend for actions such as paddle movement and game start/stop.
  6. Test and debug:

    • Write unit tests for the backend components to ensure they function correctly.
    • Test the game's functionality by simulating player interactions and verifying the expected behavior.
    • Debug any issues or errors that arise during testing.
@vcwild vcwild added study Further information is required front-end Front-end feature or request back-end Back-end feature or request labels Jun 2, 2023
@vcwild vcwild added this to the Implement Game milestone Jun 2, 2023
@vcwild vcwild changed the title Roadmap: Pong Game Implementation Roadmap for Pong Game Implementation Jun 2, 2023
@vcwild vcwild closed this as completed Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Back-end feature or request front-end Front-end feature or request study Further information is required
Projects
None yet
Development

No branches or pull requests

2 participants