Back to Journal

AI Game Dev Adventures

Building games with artificial intelligence

Day 92025-08-25
airplane-turrets

Airplanes + Turrets + Rockets - Using Proven Algorithms

Combining good game development practices with proven algorithms from existing tutorials, discovering that real game logic from tutorials beats asking AI to reinvent mechanics from scratch.

Screenshots from Day 9
Screenshot 1 from Airplanes + Turrets + Rockets - Using Proven AlgorithmsScreenshot 2 from Airplanes + Turrets + Rockets - Using Proven AlgorithmsScreenshot 3 from Airplanes + Turrets + Rockets - Using Proven Algorithms

Airplanes + Turrets + Rockets - Using Proven Algorithms

Challenge:

Can I combine good assets with proven algorithms to create something fun quickly?

Attempt 1:

Found a game tutorial with logic for turret tracking and homing missiles. Used those algorithms instead of asking AI to reinvent the wheel.

💬 PROMPT
"Make me a game where you have an airplane flying under the screen and you have turrets following it, shooting rockets at it" + provided existing game tutorial algorithms

✅ OUTCOME

  • Turret tracking behavior worked much better than expected
  • Visuals were functional but surprisingly bad (just squares moving around)

Gray circles as turrets, red lines as missiles, green rectangle as airplaneGray circles as turrets tracking a green rectangle airplane

Basic geometric shapes breaking suspension of disbeliefRed line missiles tracking the player

Lessons learned:

  • Real game logic from tutorials > asking AI to invent mechanics
  • Just watching squares move around breaks suspension of disbelief completely

Next:

Try adding proper assets to make this actually look like a game

Ingredients

  • AI Assistant: Claude Sonnet - ~$3 in API credits
  • Tutorial Source: Game development tutorial with proven turret tracking algorithms - Free
  • IDE/Platform: Browser-based game development - Free
  • Assets: Basic geometric shapes (circles, rectangles, lines) - Free
  • Algorithms:

- Turret tracking mathematics from tutorial

- Homing missile steering behaviors

  • Key Discovery: Proven algorithms > AI-invented mechanics
  • Time Investment: 3-4 hours of implementation and testing

Community & Discussion

Join the conversation through comments or share your thoughts across the web. Discuss this journal entry and share your experiences.

Comments & Discussion

Join the conversation! Comments are powered by GitHub Discussions. Share your thoughts about this journal entry.

💡 Tip: Comments are stored as GitHub Discussions, while web mentions capture shares and mentions from Twitter, Mastodon, blogs, and other platforms. Together they provide a complete picture of community engagement.