This is a submission for the Alibaba Cloud Challenge: Build a Web Game.*
What I Built
I built Maze Robot Game, a fun and interactive browser-based puzzle game where players guide a robot through a maze to reach its goal. The game is built using React, TypeScript, and Vite, and styled with Tailwind CSS for a clean and responsive design. The goal is to combine logic and pathfinding with a simple, engaging UI that anyone can play in the browser.
Demo
๐ Live Demo: https://maze-robot-game.vercel.app/
๐ OSS deployed url: http://maze-robot-game.store
rajdhokai
/
maze-robot-game
A React-based interactive game where a robot navigates through a dynamically rendered maze. Built with Vite, Tailwind CSS, and TypeScript for lightning-fast performance and modern styling.
๐ง rajdhokai / Maze Robot Game
๐ค Maze Robot Game
Maze Robot Game is an interactive browser-based puzzle game where you help a robot navigate through a maze to its goal!
Built using React, Vite, TypeScript, and styled with Tailwind CSS, it's designed for smooth gameplay and modern UI.
๐ฎ Game Features
๐ง Maze Logic & Movement
- The robot moves through a grid-based maze.
- Players control movement with arrow keys.
- Logic prevents wall collisions and ensures valid paths.
- The structure allows for dynamic mazes in the future.
๐จ UI & UX
- Responsive and clean layout using Tailwind CSS.
- Smooth transitions and mobile-friendly controls.
- Designed for clarity and accessibility.
โ๏ธ Development Tools
- Built with Vite for lightning-fast HMR and builds.
- Code is modular and scalable with TypeScript.
- Uses ESLint and Prettier for clean, consistent code.
- Icon support with Lucide React Icons.
๐ฆ Tech Stack
- Reactโฆ
โ๏ธ Alibaba Cloud Services Implementation
โ Object Storage Service (OSS)
OSS is ideal for hosting static sites. Itโs fast, globally available, and straightforward to use.
How I used it:
- Built the game using
npm run build
. - Uploaded the output files directly to an OSS bucket.
- Enabled Static Website Hosting on the bucket.
- Set
index.html
as the default entry file. - Used an OSS-Accelerate endpoint for improved global performance.
๐ Benefits
- ๐ Extremely fast and low-latency static asset delivery
- ๐งพ No server management or backend configuration required
- ๐ ๏ธ Easy setup and integration through the Alibaba Cloud Console
โ ๏ธ Challenges
- ๐ Regional restriction for some core services (like ECS), but OSS worked perfectly as a workaround.
- ๐ Slight learning curve around bucket policies and safely enabling public access.
๐ฎ Game Development Highlights
- ๐ Dynamic Maze Logic: The maze is built with a scalable structure allowing for future upgrades like procedural generation or different difficulty levels.
- ๐ฏ Grid-Based Movement: The robot moves within a constrained grid, allowing intuitive navigation and potential for future pathfinding algorithms.
- โก Built with Vite: Super-fast development and hot module replacement made the build process smooth and efficient.
- ๐งฉ Component-Based Structure: The project is organized into clean, reusable components, making it easy to maintain and expand.
- ๐จ Tailwind-Powered Design: Quick UI styling with Tailwind enabled responsive layout and a polished interface with minimal effort.
Top comments (0)