Welcome to the thrilling world of Feed the Snake, a vibrant and unpredictable realm where a daring snake embarks on an epic journey of survival and glory! Your mission? Guide the snake to greatness by feeding it, growing stronger, and conquering challenges.
But beware—this isn’t just a stroll in the park! The path is littered with treacherous obstacles, mischievous traps, and a ticking timer that will test your speed and wit. Watch out for rocks that block your way, mushrooms that flip your controls, and the sly poison eggs that threaten to shrink your progress.
Only the bravest and smartest players can navigate this chaotic maze, collecting delicious apples for growth and scoring big by catching the elusive rat for bonus points. With each level, the stakes rise higher faster gameplay, tougher challenges, and more cunning obstacles await.
Will you rise to the occasion and become the ultimate hero of Pixel Plains? Test your skills, embrace the challenge, and dive into the most exhilarating snake adventure you've ever played. The clock is ticking. The snake is waiting. The adventure begins now! 🎮
- When the game launches, you will be greeted with an introduction page, click the Start Game button
- Enter your name in the designated input field to personalize your gameplay experience.
- Choose a difficulty level by selecting one of the available options. Each difficulty level determines the speed of the snake and the overall challenge.
-
Arrow Keys:
- Use the arrow keys on your keyboard to control the movement of the snake.
- Press:
- Up Arrow to move the snake upward.
- Down Arrow to move the snake downward.
- Left Arrow to move the snake to the left.
- Right Arrow to move the snake to the right.
- Be strategic with your movements to avoid hitting obstacles or the snake's own body.
-
Spacebar:
- Press the Spacebar to pause the game at any point if you need a break or want to strategize.
- Press the Spacebar again to resume the game and continue playing.
-
Your main goal is to score as many points as possible by eating food items while navigating the snake around the game area.
-
Food Types:
- Regular Food: Increases your score and grows the snake by one segment.
- Special Foods: Provides various effects, such as increasing your score further or triggering unique challenges.
-
Obstacles:
- Avoid running into rocks or other obstacles, as colliding with them will end the game.
-
Snake's Body:
- Be cautious not to let the snake’s head collide with its own body. This will also result in a game over.
-
Timer:
- You have 60 seconds to complete each level. If you fail to meet the objective within the time limit, the game ends.
- The game consists of 10 levels, each with increasing difficulty.
- Successfully completing a level will advance you to the next one, where the snake moves faster, and more obstacles are added.
- Successfully complete all 10 levels within the time limit for each level to win the game.
- Your final score will be displayed, and if it is among the top 10, it will be added to the leaderboard.
- Navigate with Precision: Use the arrow keys to control the snake’s movements and guide it on its thrilling journey.
- Feast on Apples: Eating an apple will make your snake grow longer and boost your score. Apples are your key to success—don’t miss them!
- Dodge the Rocks: Rocks are deadly obstacles. Crashing into them ends your adventure, so stay sharp and maneuver carefully!
- Mushroom Madness: Dare to eat a mushroom? It will reverse your controls for 5 seconds, creating a wild challenge! However, it’s worth it—your score will soar without increasing the snake’s size.
- Chase the Rat: Rats are rare and rewarding! Catch one to earn extra points and watch your snake grow even larger. Don't let them escape!
- Beware the Egg: Eggs may look harmless, but they are dangerous! Eating one will shrink your snake and cost you 2 points. Steer clear to survive!
The Challenge Increases As you progress through the levels, the game becomes faster, with more obstacles to navigate. Stay focused and test your skills in this escalating adventure!
Good luck and enjoy the excitement of the Feed the Snake adventure! 🐍
- HTML5: It serves as the foundational structure for the game.
- CSS3: It enhances the visual appeal of the game with styling and animations.
- JavaScript: It powers the game’s logic and interactivity, creating an immersive and dynamic experience.
To run the game locally:
- Clone the repository:
git clone https://github.com/ParameswariE/aws-game-challenge
- To Run Backend:
cd backend node server.js
- Open index.html in a browser
- Go to the AWS Management Console.
- Search for "Amplify" and open the Amplify Console.
- Click "New app" → "Host web app".
- Choose GitHub as the repository source.
- Authenticate with GitHub (if required).
- Select your Snake Game repository and choose the branch (e.g.,
main
).
- Create an
amplify.yml
file in your project root with the following content:version: 1 frontend: phases: build: commands: - cd backend # Change to the backend directory - npm install # Install dependencies in the backend directory - node server.js # Start the server artifacts: baseDirectory: / files: - '**/*' cache: paths: - backend/node_modules/**/*