Skip to content

A browser-based RPG game with action combat, enemy battles, leveling system, and special abilities. Features smooth animations, progression mechanics, and mobile-friendly controls.

License

Notifications You must be signed in to change notification settings

techs-targe/simple-rpg-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple RPG Game

A lightweight browser-based action RPG designed for casual gaming and time-killing fun. This simple game features engaging combat mechanics, different enemy types, and character progression with no installation required.

About

This game was created as a fun time-killer that you can play directly in your browser. Perfect for short breaks or when you need a quick gaming session to pass the time. The simple yet engaging mechanics make it easy to pick up but challenging to master.

How to Play

  1. Open index.html in your web browser to start the game.

  2. Game Controls:

    • Use Arrow Keys to move your character
    • Press Spacebar or click the Attack button to attack
    • Press H or click the Heal button to recover health over time
    • Press G to use collected gems for special bonuses
    • Press V or click the Bow button to draw/shoot arrows
    • Press P to pause/unpause the game
    • Press R or click Restart Game to start over
  3. Combat Mechanics:

    • Attack enemies by hitting them with your sword
    • Different enemies have different stats (health, attack, speed, etc.)
    • Perform Dash Attacks by moving while attacking for 3x damage and enhanced knockback
    • Land Sword Tip Hits for 2x damage and fixed knockback that ignores enemy resistance
    • Combined techniques (moving + sword tip) deal 6x damage and 5x knockback with medium fixed knockback
    • Use the Bow and Arrow system:
      • Press V once to draw the bow, and again to shoot
      • Movement speed decreases as charge level increases (70% → 30%)
      • Arrows get stronger the longer you charge (up to 8x damage)
      • Maximum charge arrows penetrate through enemies
      • Get 10 arrows for 1 gem using the arrows bonus option
      • Gain 2 arrows when leveling up
    • Build Combos by defeating enemies in quick succession for bonus experience
    • Critical Hits give bonus experience (2-4x) when defeating enemies
    • Watch your positioning - you take double damage from backstab attacks when hit from behind
    • Use Rock Obstacles strategically - they block both enemy and player movement, but can be destroyed for gems
  4. Character Progression:

    • Gain experience by defeating enemies
    • Level up to increase your stats and recover 20% of your max health
    • Collect gems when leveling up or by destroying rock obstacles
    • Use gems to purchase permanent bonuses:
      • HP+20 [1]: Increase max health by 20 points (press 1 to select)
      • HEAL-1s/+20% [2]: Decrease heal cooldown by 1s or increase healing amount by 20% (press 2 to select)
      • ATK+5 [3]: Increase attack damage by 5 points (press 3 to select)
      • KNOCK/RESIST+ [4]: Improve knockback resistance and strength (press 4 to select)
      • ARROWS+10 [5]: Get 10 arrows for your bow (press 5 to select)
    • Rocks: New rock obstacles appear every 5 player levels
  5. Enemy Types:

    • Blue: Fast, weak enemies with low health (Level 1+)
      • Movement patterns: Direct pursuit, Stationary, Flee from player
      • When hit, stationary blue enemies will become aggressive
      • At low health, blue enemies may flee from the player
    • Red: Balanced enemies with medium stats (Level 3+)
      • Movement patterns: Direct pursuit, Rock seeking, Black enemy seeking
      • When hit, rock or black seekers will directly pursue the player
      • At low health, red enemies may seek rocks for protection
    • Black: Slow, tough enemies with high health and attack (Level 7+)
      • Movement patterns: Slow approach, White enemy seeking, Blue enemy seeking, Stationary, Direct pursuit
      • When hit, any black enemy will charge directly at the player
      • At low health, black enemies may seek help from blue enemies
    • White: Rare, very powerful enemies with massive health and damage (Level 15+)
      • Movement patterns: Stationary, Random movement, Orthogonal movement (horizontal/vertical only)
      • When hit, stationary white enemies will start to move orthogonally
      • White enemies may randomly change their movement pattern

Tips

  • Stay mobile to avoid enemy attacks, but be aware of enemy positions relative to your facing direction
  • Keep an eye on your surroundings - you take double damage from backstab attacks from behind
  • Use knockback strategically to create space between you and enemies
  • Position yourself so you face multiple enemies at once to avoid backstabs
  • Time your healing for maximum effectiveness
  • Save gems for when you need them most
  • Use the bow effectively:
    • Fully charge arrows for maximum damage and penetration
    • Keep distance from enemies while charging
    • Be strategic with your arrows as they are limited
    • Consider investing gems in arrows for tough situations
    • Backstab attacks will cancel your bow drawing
  • Use the pause feature (P key) when you need a break
  • More powerful enemies give more experience
  • Critical hits give bonus experience, so aim for them when defeating enemies
  • Use rocks as barriers to control enemy movement and protect your back
  • Break rocks to earn additional gems if you need quick upgrades
  • Combine dash attacks with sword tip hits for maximum damage and knockback
  • Use fixed knockback abilities against high-resistance enemies (like black/white enemies)

Secret

Try clicking on "Level" multiple times for a surprise!

Development

This game is built with pure JavaScript, HTML, and CSS. No external libraries or frameworks are required.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Enjoy the game!

About

A browser-based RPG game with action combat, enemy battles, leveling system, and special abilities. Features smooth animations, progression mechanics, and mobile-friendly controls.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •