yanceyy / 2048

2048 game based on webcomponents

Home Page:https://2048web.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

game screenshot

Welcome to the 2048 WebComponents Game repository. This is a modern interpretation of the popular 2048 game, leveraging the power of WebComponents for modular, reusable, and encapsulated code. The game also introduces theme change functionality, allowing you to customize the look and feel of your gaming experience.

Paly it online

Play on Vercel

Run it locally

Before you start, ensure that you have Node.js and pnpm installed.

Install the required dependencies:

pnpm install
pnpm dev

To start the game, navigate to localhost:5173 (or the port indicated in your terminal) in your web browser. Use your arrow keys to move the tiles. Tiles with the same number merge into one when they touch, and the goal is to earn as much score as you can.

You can change the theme of the game using the theme switch provided in the top panel. Choose from a range of pre-set themes to enhance your gaming experience.

License

This 2048 Game is open-sourced software licensed under the MIT license.

About

2048 game based on webcomponents

https://2048web.vercel.app

License:MIT License


Languages

Language:JavaScript 89.6%Language:CSS 8.2%Language:HTML 2.2%