Ladybugs

← Back to Home

Project Description

One little bug, then many of them. Can they be enjoyable to look at? (touch the screen to enable debug mode that shows their target and they field of view)

Initial Prompt

I want to build an app in p5.js. Let's start by designing one single ladybug. I uploaded a diagram of its anatomy. Please draw the head, body, antennas, legs, etc. Later... Let's implement movement. The ladybug can either walk straight or do one step forward while also turning left of right of 5 degrees. First, she decide at random a target, than walk to it.

Project Development Snapshots

Development snapshot 1 for Ladybugs

First time I prompted Gemini with a photo like this one to help create a data class. Notice how it also got the unusual ladybug color from this.

Development snapshot 2 for Ladybugs

I wasn't able to get the legs fully fixed just by prompting. Vibe AI Fail!

Development snapshot 3 for Ladybugs

First rendering. What's wrong with those legs!

Development snapshot 4 for Ladybugs

I asked the ladybugs to avoid each other, but I got the opposite effect. I mean, they tried to avoid each other, but if they collided, they would get stuck and form these clusters.

Lessons Learned

  • What worked: The ladybug looks cute and walks in a reasonable way. It worked well as a reusable component that I duplicated for the final effect.
  • What needed help: Getting the legs right was impossible. The first result was hilarious, with messed up legs inside the body. After several prompts, that kind of corrected a few things, I had to manually fix the legs angles. Ladybug collision was also a pain to solve. Eventually I gave up and deemed it "good enough". Maybe I should have just prompted "the ladybugs should never collide", instead of giving explicit rules. Something to try, next time!

Project Card

Dev environment: Cursor

Model: Gemini (2.5)

Dev time: 3 hours

My Rating: ♥︎♥︎♡♡♡

Submitted: May 24, 2025

Credits: Ladybug anatomy from learnaboutnature.com

naturep5jssimulation

Author

Roberto

Roberto

About Me

When I don't code for work, I code for fun! On CO-DERS I like to post some of the results of my vibe coding sessions, as I learn how to build with AI.

I'm rediscovering the origins of my passion for coding: creating something new, visually appealing, with surprising behaviors and functions.

Stuff I do

  • I come up with project ideas all the times
  • I'm writing a book
  • I love my family

Keywords

  • Android
  • Italy
  • Solo

Explore Other Projects

Have a Project to Share?

We're always looking for exciting new solo projects to showcase. If you've built something cool, we'd love to hear about it!

Start Your Project

© 2025 Solo Productions ⌘ CO·DERS.com ⌘ All rights reserved.