Stats

2
Projects
18
Devlogs
26
Votes
1
Ships

Coding Time

All Time: 32h 31m
Today: 0h 0m

Member Since

June 16, 2025

Badges

1
🚢
Maiden Voyage
you shipped your first project! the journey begins...

Projects

2
Sand simulator
14 devlogs about 2 months ago

Activity

Created an actual system to simulate genetics and natural selection. I also added more traits to the predators.

Update attachment

Duplicated the prey class to create a predator one. The predators are bigger and reproduce by eating prey. The predators also need to eat the prey to survive. The prey no longer have the sleep feature and I fixed the edge stickiness by making it loop around like pacman. And each time a new child object is made (for predator or prey), it has a small chance for its speed or reproduction requirement to change.

They can now reproduce via mitosis and I have added a basic nn using numpy based on a YouTube tutorial on them. Here are somethings I want to fix/add by the next devpost:

-The prey getting stuck on the edges
-Some of them getting frozen when they are exactly in between two food objects
-Maybe add inheritable traits like speediness (so the fastest prey gets the food instead of the closest one)

So far I have added prey objects that move randomly until they detect food nearby. There's an energy system and they fall asleep to recharge when they run out. Going to work on reproduction next ( :( Even green pixels have more game than me).

Mahit Marri
Mahit Marri created a project
19d ago

Prey&Predator simulation (also a project to help me introduce my self to neural networks)

Prey objects have to run around and get food to survive long enough to reproduce. Predator objects do the same but their food is the prey.

4 devlogs 0 followers

Final devlog to show off the completed project.

This is mainly to be an alternative incase the demo doesn't work.

Final bug fixes, changed ui for some features, added an eraser mode (bound to E), and worked on making it into an exe.

Update attachment

The project is now complete, this last develop is for the final feature which is a function that takes a picture and converts it into sand particles.

Just some bug fixes, program crashed whenever an unbound key was pressed.

Update attachment

I added an input feature so the user can add their own custom colors. press enter to open the input box, enter again to confirm. The custom color will be bound to the C key.

I added more colors and different placement sizes.

added multiple colors. Press R for red, B for blue, g for green, and S for sand colored sand.

I added horizontal acceleration but I can't tell if it looks better without it or not

I added gravitational acceleration to the sand. I ran into an issue where no sand was being placed after I added the gravity changes but then I realized it was because the velocity started at 0 so the particles spawned in unmoving and then got replaced all in one frame. I'll add horizontal acceleration next.

No changes to the actual function of the simulation but now it stops rendering when nothing is changing. This is mainly to stop my computer from heating up

Update attachment

Turns out I did not fix the left bias issue, I did that now. I also changed the colors a bit.

I made the pixels bigger and fixed a left bias with the cascading effect

I figured out how to make each pixel maintain its color by creating an object to represent each one. Then I added the settling by having each particle check if there's sand in the diagonals below it.

sand falls but the next thing I want to add is slightly randomized shades of sand grains. The problem right now being that the sand does not maintain the same color.

Mahit Marri
Mahit Marri created a project
56d ago

Sand simulator

Sand that falls (and those some other stuff) I have created a trinket page for the demo, it's really slow but I don't mind if you copy paste my code into your own vscode file to try it out. (instructions are also on the trinket)

Sand simulator
14 devlogs 3 followers Shipped
Mahit Marri
Mahit Marri joined Summer of Making
60d ago

This was widely regarded as a great move by everyone.