Skip to content

WayneChou-bot/PixelPortfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Wayne's Pixel Portfolio โ€” Interactive 2D Resume

็น้ซ”ไธญๆ–‡็‰ˆ | English Version

An interactive 2D pixel-art portfolio built with Phaser 3. Navigate through a virtual isometric library as a capybara and explore my professional journey โ€” including projects, skills, and academic milestones.

๐Ÿ”— Live Demo: https://waynepixelportfolio.vercel.app/


โœจ Features

  • Explorable Pixel World โ€” Navigate an isometric library map featuring 8 interactive zones. Each room represents a core section of my resume: Profile, Projects, Skills, Achievements, Education & Experience, Certifications, Contact, and a cozy Break Room.
  • Bitmap Mask Pathfinding โ€” Implements a high-precision navigation system where walkable areas are defined by a pixel-level bitmap mask. Powered by an A grid search* algorithm with flood-fill reachability validation, ensuring the character intelligently avoids obstacles.
  • Animated Capybara Character โ€” Features a custom pixel-art capybara with diverse animation states: Walking, Standing (Front/Back), Working, Reading, Brainstorming, Drinking Coffee, and Resting.
  • Depth-Sorted Rendering โ€” Utilizes a layered depth system (Floor โ†’ Actor โ†’ Foreground Occluders) so the character naturally walks behind furniture and objects.
  • Bilingual Support โ€” Seamless, single-click toggle between English and Traditional Chinese for all UI panels.
  • Responsive Scaling โ€” Leveraging Phaser's Scale.FIT to adapt to any screen size while maintaining the 16:9 aspect ratio.

๐Ÿ›  Tech Stack

Layer Technology
Game Engine Phaser 3.80
Pathfinding A* Grid Search + Bitmap Walkable Mask
Art Assets Derived from ClawLibrary
Typography VT323 (Google Fonts)
Deployment Vercel

๐ŸŽฏ Technical Deep Dive: How It Works

  1. Pathfinding Logic: A 2752ร—1536 reference mask defines traversable areas via red pixel values (r > 180). At runtime, the engine samples this mask to generate a 160ร—90 navigation grid for the A algorithm*.
  2. Connectivity Validation: A flood-fill algorithm initiates from the spawn point to identify and retain only the connected walkable region, preventing "teleportation" glitches to isolated map areas.
  3. Route Optimization: Once the A* algorithm finds a raw path, collinear node removal and line-of-sight culling are applied to smooth the trajectory for more natural movement.
  4. Interactive Orchestration: Eight target nodes are strategically placed. Clicking a menu trigger dispatches the capybara to the corresponding coordinates before triggering the content modal.

๐Ÿ“‚ Project Structure

PixelPortfolio/
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ assets/
    โ”œโ”€โ”€ scene-floor.png 
    โ”œโ”€โ”€ scene-objects.png
    โ”œโ”€โ”€ walkable-mask.png
    โ””โ”€โ”€ actors/
        โ”œโ”€โ”€ walk-spritesheet.png
        โ”œโ”€โ”€ stand_front-spritesheet.png
        โ”œโ”€โ”€ stand_back-spritesheet.png
        โ”œโ”€โ”€ work-spritesheet.png
        โ”œโ”€โ”€ read-spritesheet.png
        โ”œโ”€โ”€ idea-spritesheet.png
        โ”œโ”€โ”€ coffee-spritesheet.png
        โ””โ”€โ”€ rest-spritesheet.png

๐Ÿ“„ License / ๆŽˆๆฌŠ

This is a personal portfolio project. All rights reserved. Art assets are derived from ClawLibrary and are used under its original license terms.


Built with โ˜• and pixels by Wayne Chou

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages