LEAF STORY :

Here is a comprehensive summary of the Leafstory game based on the provided code. It is a highly detailed, fully functional 2D side-scrolling browser RPG inspired by classic MMORPGs like MapleStory, complete with physics, WebAudio synthesis, and P2P multiplayer.

πŸ“ˆ Level & Progression

  • Max Level: 200.
  • Progression: Players earn EXP by defeating monsters, completing quests, or using EXP Boost items. Leveling up grants increased Max HP/MP, 3 Ability Points (AP) for core stats (STR, DEX, INT, LUK), and 2 Skill Points (SP).
  • Death Penalty: Dying brings up a prompt to either pay 500 Meso to revive instantly on the spot or return to the safety of the Henesys town.

βš”οΈ Job (Class) System

Players start as a Beginner and can advance their class by talking to the Job Master NPC.

  • 1st Job (Level 10): * Warrior (Melee / STR focus)
    • Magician (Magic / INT focus)
    • Bowman (Ranged / DEX focus)
    • Pirate (Hybrid Brawler/Gunner / STR+DEX)
    • Thief (Stealth & Evasion / LUK focus)
  • 2nd Job (Level 30): Each base class upgrades to a specialized 2nd job.
    • Warrior β†’ Fighter
    • Magician β†’ Wizard
    • Bowman β†’ Hunter
    • Pirate β†’ Gunslinger
    • Thief β†’ Bandit

πŸ—ΊοΈ Maps & World

The game features a vast world with parallax-scrolling HD backgrounds. Players use the "World Map" board to fast-travel.

  • Towns (Safe Zones): Henesys (Main Hub), Kerning City, Perion Canyon.
  • Hunting Fields & Dungeons: Snail Park, Mushroom Forest, Slime Cave, East Rocky Mountain, Demon Castle, Ice Valley, Fire Crater, Dragon Nest, Ludibrium Tower, Crimsonwood Keep, Temple of Time, Arcana, and Limina (Endgame).
  • Boss Lairs (Levels 50-180): Instanced arenas for massive bosses like Balrog, Zakum, Pink Bean, Horntail, Papulatus, and Vellum. Bosses drop massive EXP, Meso, and sometimes premium Maple Points.
  • Special Zones: Mu Lung Dojo (Training dummies), PK Arena (Free-for-all PvP zone), and the GM Jail (A restricted cell where Game Masters can lock rulebreakers).

✨ Skills

A robust skill tree system with unique visual and audio effects.

  • Categories: Active (attacks/spells), Buffs (temporary stat boosts, shields, auras), and Passives (Masteries that permanently boost base damage floors).
  • Unique Mechanics: Magicians have "Magic Guard" (redirects HP damage to MP) and "Teleport". Thieves have "Dark Sight" (temporary invincibility) and "Shadow Partner" (a clone that mimics attacks). Fighters have "Combo Attack" and "Power Guard" (damage reflection).
  • Players can bind skills to the 1-8 Quick Slots via drag-and-drop.

πŸ§‘β€πŸ€β€πŸ§‘ NPCs

Towns are populated with fully functional, interactable NPCs:

  • Job Master: Handles 1st and 2nd class advancements.
  • Quest Guide: Offers hunting quests (e.g., "Defeat 5 Slimes") that yield EXP and Meso.
  • Shopkeeper: Sells potions, town portal scrolls, weapons, armor, and chairs.
  • Stylist (Beauty Salon): Allows players to customize gender, face, hair, hair color, skin color, and clothing color for 100 Meso.
  • Blacksmith Hendrick: Upgrades weapons and armor. Gear can be upgraded up to +10 with Meso, and +11 to +20 ("Superior" tier) using exclusive Medal Points.
  • Guild Master Aldric: Allows players to establish a custom Guild (with a tag, colors, and emblem) for 50,000 Meso.
  • Stablekeeper: Sells rideable mounts like the Baby Boar, Blue Horse, King Snail, and King Pig which boost movement speed.
  • Priest Elara: Provides free full HP/MP heals and sells powerful 30-minute to 1-hour buffs (like EXP multipliers or Divine Shields).
  • Bounty Broker: Found in the PK Arena. Exchanges PvP kills for "Medal Points".
  • Ranker Shop: Sells exclusive endgame "Champion" and "Ranker" gear for Medal Points.

🌐 Online (Multiplayer)

Powered by WebRTC (PeerJS), the game features a serverless P2P multiplayer environment holding up to 100 players simultaneously.

  • Shared World: Toggling "Online" teleports you to the shared Henesys lobby. You can see other players' custom avatars, movements, attacks, chat bubbles, and damage numbers in real-time.
  • Party System: Create parties, invite players, kick members, and use a private Party Chat channel. Party members' HP is synced live in the UI.
  • Friend List: Add players to your friend list, track who is online, and view remote player stats/equipment.
  • Secure Trading: A fully synchronized trade window where players can offer up to 6 items and Meso securely to one another.
  • PvP (Player vs Player): By traveling to the "PK Arena", players can freely attack and kill each other to rack up "PK Score".
Updated 3 days ago
Published 4 days ago
StatusIn development
PlatformsHTML5
Authoryuno
GenreAction, Role Playing
Tags2D, online
AI DisclosureAI Assisted, Code, Graphics, Sounds, Text

Development log

Leave a comment

Log in with itch.io to leave a comment.