Skip to content

DoItEric/snowcraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

❄️ Snowball Fight

👉 中文版说明(README.zh-CN.md)

🎮 Project Overview

Snowball Fight is a real-time online multiplayer game built with Phaser. Players can move around the map, throw snowballs, and battle with others in a fun, fast-paced arena! The project uses a modern frontend-backend separation: the frontend is built with Vite + TypeScript + Phaser, and the backend uses Node.js + Colyseus for real-time communication.


📁 Directory Structure

.
├── client/    # Frontend (Phaser game)
├── server/    # Backend (Colyseus room management, API)
├── design/    # Art & sound resources
├── .gitignore

🚀 Quick Start

1. Prerequisites

  • Node.js 16+
  • Recommended: pnpm/yarn/npm as package manager

2. Install Dependencies

Install dependencies for both frontend and backend:

# Frontend
cd client
npm install

# Backend
cd ../server
npm install

3. Start Development

Start Backend

cd server
npm run start
# Default port: 2567

Start Frontend

cd client
npm run dev
# Default port: 3000

4. Play the Game

Open your browser and visit http://localhost:3000 to register/login and enjoy the snowball fight!


🛠️ Tech Stack

  • Frontend: Phaser 3, TypeScript, Vite, i18next (multi-language)
  • Backend: Node.js, Colyseus, Express, TypeScript
  • Real-time: Colyseus room sync
  • Art/Sound: See design/ directory

✨ Main Features

  • Real-time online multiplayer battles
  • Snowball throwing, collision detection, kills & respawn
  • Player registration, login, authentication
  • Map zoom, minimap, chat system
  • Supports English & Chinese (switchable in-game)
  • Rich art and sound resources

Snowball Fight Gameplay Screenshot
In-game screenshot: Intense snowball action!


📂 Directory Details

  • `

About

Mini-MMO based on the 1999 classic game Big Snowball.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published