Not really something looking like a game but a topic about that kind of program should be done. I toyed with TCOD and simplex noise. I did a simple perlin-like noise to 8 gray scale + position dithering. Here is the coordonate dithering method. You can change the 4 into any power of 2.
bool done = false; int t = 0; float scale = 1./50.; float timescale = 1./600.; while(!done) { TCODConsole::root->clear();
for (int x = 0; x < 80; ++x) { for (int y = 0; y < 50; ++y) { int u = x&-(4-(y&1)); int v = y&-(4-(x&1)); float value = 0; value += noise.value(u * scale, v * scale, t*timescale ); // value -= noise.value((j&1) * scale, (i&1) * scale, t/100.)/3; value = ((value + 1)/2.); value = clamp(value); value = step(value, 8); int pixel = value * 255; TCODConsole::root->setCharBackground(x, y, TCODColor(pixel, pixel, pixel)); } } TCODConsole::flush(); t++;
for (int x = 0; x < width; ++x) { for (int y = 0; y < height; ++y) { float heightMap = 0; float totalFactor = 0; for (int i = 0; i < 5; ++i) { float s = 1./scales[i]; float f = factors[i]; float p = power[i]; float o = offsets[i]; bool ridge = ridged[i];
I'm getting more and more used to my new computer. Here's the current desktop look. I have two 1280*1024 screens and the split between them is right at the right place. I wanted a wallpaper that would be splitted in two and yet I found something that went beyon my expectations : let's get retro with Spy vs Spy! :p
depression_points = {LIFE, SHYNESS, LIFE_CHOICES, LAZINESS, etc...}; // too many to list them. while(has_projects_to()) { if(has_homework_to_do()) { if(has_important_project_to_do()) program_on_small_project(rand()%num_small_projects()); } else depressing_about_(depression_points, rand()%num_depression_points()); } EDIT :oh wait that isn't humourous nor a joke... WAit...