Skip to content

ElenaRumiru/Code-and-magic

Repository files navigation

Code and Magic

Guide Pendalf through a magical pixel adventure!

JavaScript HTML5 CSS3

Play Now


code-and-magic

About

A pixel-art browser game built as part of the HTML Academy professional JavaScript course (Stream 29). Create your own wizard character, customize its appearance, and explore a side-scrolling magical world!

How to Play

Key Action
Space Start the game
Arrows Move Pendalf
Shift Cast fireballs!

Create Your Pendalf

Click the avatar icon to open the character setup:

  1. Choose a unique name
  2. Select an avatar
  3. Click robes, eyes, or fireball to change their colors
  4. Browse auto-generated similar wizards for inspiration

Features

  • Pixel-art side-scrolling gameplay
  • Full character customization (name, avatar, colors)
  • Random wizard generator + "similar wizards" feature
  • Form validation with Pristine API
  • Debounced input handling
  • Keyboard event handlers (click, Escape)
  • Avatar selection system

Development Stages

Stage Feature
0 HTML/CSS initial version
1 Movement speed and fireball physics
2 Random name, robe, eye, and fireball color generation
3 Random wizard creation from generated data
4 Settings modal with random wizard gallery
5 Click and Escape key event handlers
6 Form validation (Pristine API)
7 Form submission
8 Similar wizard generation (matching features)
9 Input debouncing
10 Avatar change system

Tech Stack

Language JavaScript (ES6+)
Validation Pristine.js
Styling CSS3 with pixel-art aesthetic
Course HTML Academy, Stream 29

Project Structure

index.html        # Entry point
css/              # Stylesheets
img/              # Sprites and pixel art
js/               # Game logic modules
pristine/         # Pristine.js validation library

Made by Elena Rumiru, 2023 | Educational project from HTML Academy

Play Code and Magick

About

JavaScript game: Code and Magic

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors