Skip to content

maasch/Devil_dolphin_memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

17 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Devil Dolphin Memory ๐Ÿฌ๐Ÿง 

Devil Dolphin Memory

Welcome to Devil Dolphin Memory, a beautifully designed, responsive web-based memory card game built with plain HTML, CSS, and Vanilla JavaScript. Test your memory skills, complete dynamically generated levels, and earn crowns based on your performance!

โœจ Features

  • ๐ŸŽฎ Dynamic Levels: The game features multiple levels with varying difficulties. Levels are generated dynamically with a set number of cards.
  • โฑ๏ธ Live Game Stats: Tracks your time, moves made, misses, pairs found, and calculates your accuracy in real-time.
  • ๐Ÿ† Achievements System: Depending on your game performance (time and moves), earn crowns:
    • ๐Ÿ‘‘ Red Crown (Level 3 - Expert)
    • ๐Ÿ‘‘ Gold Crown (Level 2 - Master)
    • ๐Ÿ‘‘ Green Crown (Level 1 - Starter)
  • ๐Ÿ“ˆ Local Storage Persistence: Automatically saves your levels statistics, overall accuracy, and best scores cross-sessions using browser localStorage.
  • ๐Ÿ“ฑ Fully Responsive: Carefully crafted CSS (including dedicated responsive files) ensures the game looks great on desktop, tablet, and mobile devices.
  • ๐Ÿ–ฅ๏ธ Fullscreen Mode: Immerse yourself in the game by toggling the fullscreen view during gameplay.

๐Ÿ› ๏ธ Tech Stack

  • HTML5: Semantic architecture for index.html (home dashboard) and game.html (gaming board).
  • CSS3: Custom modular stylesheet architecture (separated by components like header, footer, main, and Responsivity).
  • Vanilla JavaScript (ES6 Modules):
    • game.js: The core object-oriented game engine (MemoryCardGame class) handling logic, card flips, and timer operations.
    • home.js: Drives the home dashboard, populates levels, and renders the player's saved score and achievements.
    • utils.js: Houses common utilities like time formatting, array shuffling, formatting outputs, and Local Storage abstractions.
    • data/: Contains modular configuration data (levels.js) and the image assets mappings (cards_images.js).

๐Ÿ“‚ Codebase Structure

โ”œโ”€โ”€ assets/                  # Icons, images, and achievement crowns
โ”‚   โ”œโ”€โ”€ images/
โ”‚   โ”‚   โ”œโ”€โ”€ icons/
โ”‚   โ”‚   โ””โ”€โ”€ crowns/
โ”œโ”€โ”€ scripts/                 # Core logic and JS Modules
โ”‚   โ”œโ”€โ”€ data/                # Levels config and cards images data
โ”‚   โ”œโ”€โ”€ game.js              # Game board logic and Mechanics
โ”‚   โ”œโ”€โ”€ home.js              # Home dashboard and Stats viewer
โ”‚   โ””โ”€โ”€ utils.js             # Utility functions
โ”œโ”€โ”€ styles/                  # Modular CSS formatting
โ”‚   โ”œโ”€โ”€ game/                # Game page styles
โ”‚   โ”œโ”€โ”€ home/                # Home dashboard styles
โ”‚   โ”œโ”€โ”€ Responsivity/        # Media queries for responsive UI
โ”‚   โ””โ”€โ”€ all.css              # Global variables and CSS resets
โ”œโ”€โ”€ game.html                # The playing field view
โ””โ”€โ”€ index.html               # The entry, level-selection and stats view

๐Ÿš€ Getting Started

Since it's built with Vanilla HTML/CSS/JS, running the project is incredibly simple!

  1. Clone the repository to your local machine:

    git clone <repository-url>
  2. Navigate to the project directory:

    cd "Devil Dolphin Memory"
  3. Open index.html in your favorite web browser or start a local live server:

    • For VS Code users, standard extensions like Live Server work perfectly.
    • Or simply double-click index.html in your file explorer.
  4. Select a level and start matching cards!

๐Ÿงฉ How to Play

  1. Select a Level: Click a level from the dashboard.
  2. Match the Cards: Click on cards to flip them. Try to find two matching cards.
  3. Minimize Misses: Every pair of non-matching flipped cards counts as a miss, reducing your accuracy.
  4. Earn Crowns: Complete the game fast and with minimal misses to get the best crown.
  5. Quit or Start Over: Use the Cancel button anytime to return to the home screen.

Designed and Built by Adel Maach

About

Devil Dolphin Memory ๐Ÿฌ๐Ÿง  A beautifully crafted, responsive web-based memory card game built with HTML, CSS, and Vanilla JavaScript. Test your memory skills, complete dynamically generated levels, and earn crowns based on your performance! Features include live game stats ,and a seamless responsive UI for all devices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors