Please create a mobile app based on below name and description. The app should be designed with mobile-first principles, optimized for responsive for mobile devices.
Name: David vs. Goliath (Action RPG) Description: Players control David in a 2D action RPG, upgrading skills (e.g., sling accuracy, agility) and battling Philistine enemies, culminating in a boss fight against Goliath. Earn pi coins for victory.
I've created a complete mobile-first 2D action RPG game "David vs. Goliath" with the following features:
The game is fully playable on mobile devices with intuitive touch controls and provides an engaging RPG experience with progression mechanics!
Detailed MechanicsCore Gameplay Systems:Character Control:Player Character: David, a 2D sprite with attributes: Sling Accuracy (0–100, affects hit chance), Agility (0–100, affects movement speed), Faith (0–100, boosts damage). Mechanics: Players move David on a 2D battlefield (10x10 grid or open map), collecting resources (stones, armor) and fighting enemies.
Combat System:Enemies: Philistine soldiers (10 HP each, 5 types with increasing difficulty) and Goliath (100 HP, boss). Mechanics: David attacks with a sling (tap to aim/shoot, 5–10 damage based on Accuracy). Agility determines dodge chance (e.g., 50 Agility = 50% dodge). Faith boosts critical hits (e.g., +5 damage at 50 Faith). Progression: 5 levels, each with waves of Philistines (e.g., Level 1 = 3 soldiers, Level 5 = Goliath). Defeating enemies grants XP to upgrade attributes.
Resource Collection:Resources: Stones (ammo for sling, +1 per pickup), Armor (reduces damage taken by 10%), Faith Points (from prayer actions, +10 Faith). Mechanics: Resources spawn on the map; players tap to collect. Stones are limited (max 10), requiring strategic use.
Objectives:Primary Goal: Defeat Goliath in Level 5 by landing precise sling shots (needs 70+ Accuracy for reliable hits). Secondary Goals: Complete levels with high Faith (>80) for bonus Pi Coins or collect all resources in a level. Failure Condition: If David’s HP (100) reaches 0, the level restarts (0.2 Pi Coin penalty to continue without restarting).
User Interactions:Interface: 2D battlefield with David (shepherd sprite), Philistines (soldier sprites), Goliath (large sprite), and resource icons (stones, armor). HP, Accuracy, Agility, and Faith bars displayed. Controls: Tap to move David, swipe to aim sling, tap “Pray” to gain Faith. Upgrade menu (post-level) for spending XP. Feedback: Visuals (e.g., hit sparks, Goliath staggering) and text (e.g., “Critical hit! +10 damage”). Events: Pop-ups for key moments (e.g., “Goliath taunts you! Use 20 Faith to boost Accuracy?”).
I've completely rebuilt the David vs. Goliath game with all the detailed mechanics you specified:
The game now features the complete tactical RPG experience with resource management, strategic combat, and progressive difficulty scaling to the epic Goliath encounter!
Add combo attacks and special moves to make combat more engaging:Combo Attacks: Chain 3 successful sling hits to trigger a “Faithful Strike” (+15 damage, costs 10 Faith). Special Move: “Divine Courage” (unlocked at 80 Faith, costs 0.5 Pi Coins), a one-time area-of-effect attack dealing 20 damage to all enemies in a 3-tile radius. Enemy Variety: Introduce new Philistine types (e.g., Archers: 5 HP, long-range; Spearmen: 15 HP, high damage) to diversify combat strategies.