This is a basic Telegram Web App implemented using plain JavaScript, HTML, and CSS. This app is to show how a developer can create and configure an interactive cool game.
- App is available via Bot: https://t.me/SunwebMyBot
- Deployment URL: https://maryjanyes.github.io/snake-game-telegram-mini-app/
- Game board and characters configuration.
- Easy to understand and modify.
A mini app that provides a demo of sample fun Snake Game, so we can bring more developers to work on similar apps
To run this example, you'll need a modern web browser with JavaScript enabled.
-
Clone this repository to your local machine:
git clone https://github.com/maryjanyes/snake-game-telegram-mini-app
-
Navigate to the project directory:
Open index.html
in your preferred code editor or IDE.
Feel free to customize this web app to suit your needs. You can modify the HTML, CSS, and JavaScript files as required.
Let's take simple modification example:
class GameBoard {
skins = {
forest: 'forest',
ground: 'ground',
};
}
// Modify game board skin theme
class GameBoard {
skins = {
forest: 'forest',
south: 'south',
};
}
<style>
div.gamePlayer.gamePlayerSkin_ocean {
background-color: blue;
}
</style>
This project is licensed under the MIT License - see the LICENSE file for details.