PDA

View Full Version : cool growth simulation



jverkoey
04-04-2004, 08:48 PM
I just recently spent about an our or two whipping together a growth simulation program that simulates the growth of three organisms in an environment

check it out here:

http://thejefffiles.com/downloadfile.php?fileID=portfolios/jverkoey/files/Growth.zip

it's pretty fun to try and keep one of the groups of things high population, while maintaining the rest of the population

BMJ
04-05-2004, 12:14 PM
That's really neat. :D

ober
04-05-2004, 08:11 PM
I found it to be just a little odd... but if the stats are true, it is interesting.

...
04-05-2004, 11:30 PM
its neat, but there should be a way to exit the program :-\

ober
04-06-2004, 06:13 AM
umm... Alt-F4?

...
04-06-2004, 11:44 AM
having the OS forcefully closing your window and the program having the capability of cleanly exiting back to the OS by itself are two different things, especially when the program is run in full screen...

though, i will give you the benefit of the doubt and assume that you have never written a clean and user-friendly program before. :)

XSquared
04-06-2004, 12:14 PM
ALT-F4 is not forcefully closing. With most programs, it's the same as hitting the 'X' or going to File->Exit.

...
04-06-2004, 02:17 PM
im not going to argue the point, except to say that programs should have an obvious way to exit when they are run in full screen.

jverkoey
04-06-2004, 08:11 PM
alt-f4 is the same as hitting the x, as it quits from the message loop and handles all of the cleanup code at the end. I'm sorry if it's really that big of a deal that i forgot to make it so you could quit with the escape key, lol. It's just one line of code....i'll put it in there right now

-edit-
sorry, two lines of code :)



if(wParam==VK_ESCAPE)
done=true;


happy day