Skip to content

MassFuer/mini-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🕹️ SLALOM Game 🕹️ | inspired by IronHack's Race Car Lab

Tchoupi Joker
tchoupi-logo joker-logo

IronHack's Scope

  • Practice and consolidate what we've learnt during these 3 first weeks.
  • Practice and consolidate what we've learnt during these 3 first weeks.
  • Create a simple 2d game using HTML, CSS, JavaScript, and DOM manipulation.
  • Learn by failing
  • Bring our personal insight into our projects
  • Advance our technical skills in HTML, CSS, JS.

    Instructions

  • Implement simple game logic and UI, including start screen, game screen, and end-game screen.
  • Use best practices learnt during lessons
  • Single page / Single HTML
  • At least 3 stats (splash, game, gameover)
  • Use classes and OOP to organize data, functionality, and game elements.
  • Use setInterval() to create a game loop that continuously updates the game elements.
  • Handle user input and events to control game elements.
  • Create and display randomly generated obstacles to add complexity to the game.
  • Create and manipulate elements in the DOM, including displaying and hiding elements.
  • Change the style of the game elements using DOM and CSS

    Technologies

  • Basic HTML, CSS, JS
  • JavaScript ( DOM, Basic JS, Classes)
  • Win/Lose Logic
  • Version control tool (Git/Github)
  • Bonus: Local Storage, Audio.

🌈 Slalom Game : Armed Edition 🌈

Credits

Getting Started

Setup Instructions

General Controls

  • You can access controls buttons on top of the screen during all your game experience, they let you :
    • Play / Stop a music
    • Enable / Disable sounds effects during the game
    • Enable / Disable dark-mode

Game-Intro

  • First, choose your character depending on your age / mood / personal preferences
  • If you've already played the game on your browser, you should see below the characters a recap of the top three scores recorded on the browser Local Storage
    • Try hover them, some effects were added

Game-Rules

  • HTML and Game-Rules' pages titles are set depending on the character you chose
  • Splash image differs from your character's choice
  • Enter your name or pseudo so that the app could record your score locally

Note

Note that it must be less thant 15 characters long

Tip

You can use 'Enter' keyboard to launch the game

Caution

Don't worry, your data is only stored locally on your browser !

🎮 Play the Game 🎮

Interacting

  • Use arrows ⬅️ ⬆️ ⬇️ ➡️ to move your character along the game-screen
  • Press SPACE or CLICK to fire projectiles

Note

You'll notice that Tchoupi throws bananas 🍌 whereas Joker got real ammos 🔫

Objective

  • Make the highest score and share it with your friends 🤝

Game behavior

  • You start with score to 0 (yes, I'm serious), 3 lives, and unlimited munitions
  • Avoid colliding with enemies, you'll lose 1 live, make a 360° spin and hear me crying Wassuuuup.
  • You got two options to avoid them :
    • fire a projectile and hear me again simulating a sonic rocket Piou 😆. If it's collide with the enemy, you'll score 1 point, hear a (satisfying) Boom shaka, enemy will disappear on screen and you can keep going on targeting high score leaderboard
    • move around enemy with the directions keys

Tip

I understand if you disable sounds. Just click on the top button dedicated for that ! sounds-off

  • You could also grab some bonuses falling from the sky. 🍄 and ♥️ will let you gain 1 more live (notice the animation in the stats menu) and hear me saying you Good Job !

Caution

Speed Game increased by 1 every 5 score points

🤡 Game Over 🤬

  • You lost all your lives, GAME OVER !
  • A sample of the famous ad 'Wassuuuuup' audio auto plays when game ends.
  • Image displayed in the Game End screen depends on the character you chose
  • Name and score are recorded locally on the browser
  • Top Three scores are displayed as a recap
    • If your score is on the top three (inside the locally stored array), you should be on screen, good job ! 👍

Additional features we could go through

  • Responsive design
  • Handling number of projectiles munitions
  • Improve design
  • Animations when enemy shooted, highscore reached, combo executed (get 1 life when 3 points scored in a row, change background over time, etc), etc.
  • Feature to pause the game

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published