Skip to content

New Branch [develop]: TypeScript, React, Phaser and Vite #3

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

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

Conversation

Taiizor
Copy link
Contributor

@Taiizor Taiizor commented Dec 15, 2024

This pull request includes significant changes to the Dockerfile, README.md, and several client-side files to improve the structure, deployment, and functionality of the project. The most important changes include restructuring the Dockerfile for multi-stage builds, updating the README with new instructions, and adding new client-side features and configurations.

Dockerfile and Deployment:

  • Dockerfile: Restructured for multi-stage builds to separate client and server build processes, improving the efficiency and size of the final image. Added Docker support for containerized deployment.

Documentation:

  • README.md: Updated the prerequisites to require Node.js v20 or higher and added Docker as an optional prerequisite. Provided detailed instructions for both local development and Docker deployment, including building and running the Docker container. [1] [2]

Client-side Enhancements:

  • client/index.html: Added a new HTML template for the client, including references to the Vite build tool and the main TypeScript entry point.
  • client/package.json: Introduced a new package configuration for the client, including dependencies for TypeScript, React, Phaser, and Vite, as well as scripts for development, building, and linting.
  • client/src/App.tsx: Added a new React component to handle the main application logic, including socket connection management and game initialization with Phaser.
  • client/src/components/LoginOverlay.tsx: Created a new React component for user login, allowing players to enter their username before joining the game.
  • client/src/game/GameScene.ts: Implemented the main game scene for Phaser, including socket event handling, game state updates, and rendering logic for players and food items.
  • client/src/game/UI.ts: Refactored the UI class to TypeScript, adding methods for setting up and updating the scoreboard, status texts, and minimap.

These changes collectively enhance the project's development workflow, deployment options, and client-side functionality, providing a more robust and scalable solution.

Screenshots

image
image

@Taiizor Taiizor changed the title New Branch [develop]: TypeScript, React, Phaser, and Vite New Branch [develop]: TypeScript, React, Phaser and Vite Dec 15, 2024
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.

1 participant