Programs

I have migrated the site here...

These are a few games and simulations I made over time, begining with flash and now in c++. They are presented in reverse chronological order.

Email: calin.mocanu@gmail.com or calinutzu92@gmail.com


Doodly

This is meant to be a shared canvas on which everyone can draw on, it is not finished yet and I won't be able to post it here because it needs a server that can run a java program. However you could draw with me and your friends/colleagues if you ask me to start the server (which is currently my computer and it will continue to be my computer if no one funds me). Email me at calinutzu92@gmail.com .


Aquarium

Google posted my little fish experiment :D and it almost has 5 stars :D and this page is finally searchable through Google :D.

The details:

Quote: "belive it or not this guy may have discovered the secret to self thinking robotic mind share"

I wish it was that way but there are just some formulas and a few random numbers moving the fish

Yes I have used a potential field (I didn't have that in mind though): the fish are attracted to each other when closer than 100px while they also repel when closer than about 20px which makes them stay in equilibrium at a certain distance. The mouse only repels them so they appear to avoid it.

There are also random changes in each of their speed so they appear dynamic as a whole and make them look confused when they are alone. Because the change is small and happens many times a second they stand pretty still but change direction very often when alone, however when they are grouped these random changes will propagate, but the fish will move reasonably because the group influences them more than their randomness. Their speed is also reduced a little bit every second so they don't become supersonic fish (that would mean friction).

And the final correction I made is some correction of their position (a median between their position and the center, where the center has very little influence) so over time they tend to go towards the center. This acts like a force attracting them to the center over time, you can observe this by isolating a fish and letting him slide towards the center or seeing the entire group orbiting around the center as a planet orbits around the sun (I'll go into this later).

So all of those formulas combined and acting on 100 fish makes them move together with a small degree of randomness which is what you would expect from a normal bank(shoal). And their fish image gives your brain the final clue that they could actually be real fish.

The apparent orbiting

As a group the fish will appear to have mass and and almost constant speed (every fish has random changes in its speed but because they are many that cancels out). And they all get attracted to the center in some way and because that propagates through the group it, as a whole, appears to be attracted to the center by a force. This is quite similar to a planet and the sun (the force is very different though) and it's enough to make the fish orbit the center. I didn't want this effect because this doesn't seem natural but it's the only simple way I thought of in order to keep the fish inside the screen.

Just enjoy

Aquarium

And give me 5 stars while your at it:D


Html 5, canvas:

I just found out about the canvas element that will be present in the new HTML 5 standard. That has made HTML and javascript a lot more interesting so I've started learning them...

Ball

Catch this little ball that refuses to keep its colour (o.O), also resize the browser window if it works slowly.

Swarm of scared little things

This should be simulating a bank of fish birds or whatever little creatures that flock together to escape from predators, enjoy. It isn't quite polished yet, I should put fish images that move instead of balls:D and tweak the values a little bit more.

Update! Now they are actually fish and I'll try posting this on Chrome Experiments. I hope the server will hold if I succeed.

Strange things

The strange pages that I end up with while creating something new: to where? and why do they stay near the center?


Snake

My first game made with c++ and SFML. I was inspired by the classic game and tried to make a similar one as well as developing a little game engine. In 2 weeks I did it and the only similarities between my game and the classic one is that it has a snake.

There are 3 characters a snake, a spider and worms. The snake moves around in its miniworld trying to eat as many worms as he can, the more worms he eats the more he grows. Ocassionally he falls in one of the worms' tunnels and gets dizzy. He must be aware of the dangeorous spider webs as any movement in them will attract the venomous spider.

Screen shot:

snake print

Download:

For windows and linux: exe and exe+source


Solar system

This is meant to simulate how a solar system is formed. The masses are moved only by the gravitational force and plastic collisions between them.

Download:

For windows(with source): project solar

How to:

The number you must enter represents the number of initial objects, their maximum random velocity, gravitational strength, size, screen size(for projectors). Play with those numbers until you see a nice result. I got a sun and 2 or 3 planets orbiting around it.

You can zoom in and out with the mouse wheel and move around by click-drag-release.


Birds' poo

A little simulations I made to ilustrate how probable a bird is too poo on you. I did calculate a formula and presuming that birds poo every hour and one passes over you every day than you are to be hit by falling poo at 60 years of age. After seeing that my parrot does his business about every 10 minutes than that figure isn't quite acurate.

Download:

For windows: pasari


Orbital

My first game ever. Made using flash and some gross aproximations of the gravity law as I didn't knew it than. The action script code contains a lot of copy-paste (I could recreate the 1000-3000 lines of code in it in about 100 now), it was a good experience though.

You shall be the all mighty ghost Abudabar and with the power of the meteor at your hands you want to give those little inhabitants some adrenaline. Launch your meteor but be aware that if they don't destroy it the meteor will crash in their solar system thus blocking the vital sun and killing your playmates. You want to scare them again and again, don't you?

Screen shot:

orbital print

Download:

For windows+flash and html: orbital

How to:

The meteorite in your hand has to dodge the planets for 10 seconds until it's blown away.

To start click-drag-release; the meteor will start going in that direction, the longer the line the faster the speed.


More games and simulations

I made a few more things, not very semnificative: gravity in more dimensions, 2 planets orbiting, a water simulation that doesn't work, and my first try at a game that I didn't got quite right Snooker.