Is a Fated Encounter Real? Discover the Signs Here!

Date:

Share post:

Okay, so I wanted to mess around with this whole “fated encounter” idea, you know, like when two things are just meant to collide. I figured I’d try to make it happen with code, because why not?

Is a Fated Encounter Real? Discover the Signs Here!

The Setup

First, I needed something to represent my “entities.” I kept it super simple – just plain old circles. I thought about giving them names, like “Bob” and “Alice,” but decided to stick with numbers. Easier to keep track of, right?

The “Fated” Part

So, I had a basic setup and now i will start my project

I created a blank canvas on my screen. Think of it like an empty stage where the magic will happen.

  • I whipped up a quick function to draw my circles. Nothing fancy, just enough to plop them onto the canvas.

i created a new “do” function and defined the number of my circles.

This is where it gets interesting. I didn’t want them to just randomly bump into each other. I wanted it to feel, you know, destined. I started my code

Is a Fated Encounter Real? Discover the Signs Here!
  • make for loop.
  • set the position, be carefull about border.
  • assigned each circle a random direction.
  • Used random color to make it cool.

After that, i have some circles with random attribution!

  • I implemented a super basic collision check. Basically, if the distance between two circles is less than the sum of their radiuses, BAM! Collision.

Making it Move

i have some code can run, let them move, i implemented those:

  • Added some random movement, update position for each circle.

I set up a loop. now i can see them move and encounter each other. it just felt right. Cheesy, I know, but satisfying.

The Result

It’s nothing groundbreaking, obviously. Just a bunch of circles bumping into each other. But the whole process of building it, from the initial idea to seeing it play out, that’s what I enjoyed.

It’s like, I took this abstract concept of a “fated encounter” and turned it into something I could actually see and tweak. And yeah, maybe I’m reading too much into it, but it’s kind of cool, right?

Is a Fated Encounter Real? Discover the Signs Here!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related articles

Top 5 Benefits of Reading Daniil Charms Stories Find Out Why Now

Honestly, I stumbled upon Daniil Charms completely by accident last Thursday. Was aimlessly scrolling through the library app,...

How to understand The Iron Rod Hymn? Simple explanation for beginners!

Okay, let me just spill how I tackled making “The Iron Rod” hymn make sense for beginners. My...

Best Time to Buy Cheap Golf Packages Smart Traveler Savings Guide

My Quest for Cheap Golf Trips I got tired of paying full price for golf vacations last year. Kept...

Fix connecting rod engine yourself? Crucial steps for engine repair you must follow!

Alright folks, buckle up. Decided to tackle this connecting rod mess myself after the ol’ truck started knocking...