Inspiration

The concept of Energy Flow Defense was inspired by the strategic depth of classic tower defense games like Defense Grid and the creative mechanics of energy-based systems in games such as Factorio. I wanted to create a game that blends the excitement of resource management with the thrill of strategic combat, all while exploring the potential of generative AI and cloud-based services to deliver a unique, dynamic experience.

The idea of using energy beam networks as a core mechanic emerged from our desire to introduce something new and engaging. This mechanic encourages players to think beyond static defenses, pushing them to innovate by creating interconnected systems that are as visually stunning as they are effective in gameplay.


What I Learned

Through the development of this project, we gained invaluable insights into:

  • Generative AI Integration: Using Amazon Q AI, we explored how AI can dynamically adapt gameplay by generating enemy wave patterns and procedural challenges based on player progression.
  • Cloud Services for Games: Leveraging AWS DynamoDB, we learned how to store and retrieve player data for leaderboards, ensuring a seamless and competitive gaming experience.
  • Game Design Principles: Balancing resource collection, defense strategies, and wave progression taught us the importance of creating a gameplay loop that feels both challenging and rewarding.
  • Problem-Solving in Real-Time: Overcoming technical challenges like efficient energy beam animations, dynamic wave management, and resource balancing deepened our understanding of game programming and system design.

How I Built It

  1. Framework: The game was built using PixiJS, a lightweight 2D rendering library, ensuring optimal performance for web-based gameplay.
  2. Game Mechanics:
    • Energy Core: Acts as the heart of the game, requiring players to defend it at all costs.
    • Towers and Beams: Players strategically place towers and connect them with energy beams to enhance their power.
    • Dynamic Waves: Enemy waves increase in difficulty, with each wave procedurally generated by Amazon Q AI.
    • Resource Management: Players gather resources manually or automate collection using harvesters, enabling upgrades and repairs.
  3. AWS Services:
    • Amazon Q AI: Generated dynamic enemy compositions, procedural challenges, and environmental hazards.
    • DynamoDB: Managed player leaderboard scores and progress, enabling a competitive multiplayer experience.
    • AWS Lambda: Created serverless functions to handle game data operations.
    • Amazon API Gateway: Created REST API endpoints to interface with Lambda functions.
  4. Art Style: We adopted a minimalist neon aesthetic, ensuring a visually engaging experience while keeping asset requirements lightweight.

Challenges I Faced

  1. Dynamic Wave Generation:
    • Integrating Amazon Q AI to create wave compositions that scale dynamically with player progress required careful tuning to maintain balance.
  2. Energy Beam Networking:
    • Designing a system where towers could connect via energy beams, with visual feedback for overcharging or splitting beams, was both a technical and artistic challenge.
  3. Leaderboard Integration:
    • Configuring DynamoDB for seamless data storage and retrieval of leaderboard scores required careful handling of edge cases like simultaneous updates.
  4. Resource Balancing:
    • Balancing the collection and use of multiple resource types, while ensuring players had meaningful choices, involved iterative testing and feedback.
  5. Time Constraints:
    • Limited time required prioritizing essential features over additional services like Amplify Hosting or S3, while still maintaining a polished final product.

Outcome

Energy Flow Defense delivers a fresh take on tower defense by combining dynamic energy mechanics, resource management, and AI-driven progression. It showcases the potential of generative AI and cloud services in gaming, offering a challenging yet rewarding experience for players. By focusing on core mechanics and essential cloud integrations, this project demonstrates how lean development can achieve impactful results.

Built With

Share this project:

Updates

Submission history