|
psy_wombats
|
 |
« Reply #930 on: June 23, 2010, 06:50:02 AM » |
|
8 doesn't have much context. You want a: const int theNumberEight = 8; Fixed! When I was about twelve and doing my first "serious" (well, serious as it gets as twelve) game coding project, I decided it would be a great idea to do the majority of the work in a ten hour marathon with most stuff getting done at 5 in the morning. I looked back at the code a day or so later and I literally had a variable called theNumberSeven. The exact line was: theNumberSeven = 7; // Don't change or the code will break!
|
|
|
|
|
Logged
|
|
|
|
|
Gnarf
|
 |
« Reply #931 on: June 23, 2010, 07:58:26 AM » |
|
const int evenOddCheckDivisor = 2; const int evenCheckResult = 0;
bool isEven(int aNumber) { return aNumber % evenOddCheckDivisor == evenCheckResult; }
|
|
|
|
|
Logged
|
This is IT -- the missing link in the chain of my existence. Rondo's SPINNING BUDDHA is what I need to make me complete.
|
|
|
|
Kekskiller
Guest
|
 |
« Reply #932 on: June 23, 2010, 10:30:13 AM » |
|
You guys have too much freetime. Or atleast something you should work on.
|
|
|
|
|
Logged
|
|
|
|
|
psy_wombats
|
 |
« Reply #933 on: June 24, 2010, 09:44:56 AM » |
|
Heh, I decided to use some of that free time... Whipped up a little program to tune up my C++. The result is a stupid program that takes words from lists and combines them to make Generic Fantasy Game Names, such as: "One-Winged Chaotic Explorer," "Trilogy Ex," "Magical Magus of The Last Angel" "Deadly Storm of The Betrayed Phantasmagoria," "The Golden Shard," "White Blighted Mages..." It's actually sort of useful because the lists can be changed around to help with naming games. My personal favorites have to be "The Dragon-riding Zombie" and "Lingering Temple of the Imperishable Chronology." It can be downloaded here if anyone wants to see what other horrible stuff it comes up with.
|
|
|
|
|
Logged
|
|
|
|
|
Skomakar'n
|
 |
« Reply #934 on: June 24, 2010, 10:27:27 AM » |
|
I've made a few of those as well. They can be really entertaining.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Skomakar'n
|
 |
« Reply #936 on: June 25, 2010, 08:05:12 AM » |
|
 <3
|
|
|
|
|
Logged
|
|
|
|
|
Mipe
|
 |
« Reply #937 on: June 25, 2010, 08:59:09 AM » |
|
I am happy. Finally made a feasible roguelike engine in Construct... or proof of concept at least. Now to work on the actual game engine... Whee.
|
|
|
|
|
Logged
|
|
|
|
|
psy_wombats
|
 |
« Reply #938 on: June 25, 2010, 09:09:22 AM » |
|
This is pretty great, especially when you git a big bug-eyed robot face placed close to the foreground.
|
|
|
|
|
Logged
|
|
|
|
|
Average Software
|
 |
« Reply #939 on: June 28, 2010, 12:11:55 PM » |
|
I had to abandon GtkAda for my Linux frontend, since it lags too far behind Gtk proper and it's tricky dependency to deal with. It's a shame, since it's a really nice library.
In a fantastic burst of productivity I got my frontend converted from Ada to C++ today. Very happy now that it's done.
|
|
|
|
|
Logged
|
|
|
|
|
increpare
Guest
|
 |
« Reply #940 on: June 28, 2010, 04:18:56 PM » |
|
Finally beginning to get reactive programming. Trying to do sorta-but-not-really-signal-based animation in cheetahmen...played around with the framework there...I can write things like this now: // bind enemy.pos to the following animation //loop walking left and right, unless hit, or alarm heard enemy.pos &= Loop ( moveLeft(2,1) + wait(2) + moveRight(2,1) + wait(2) ) //if collide signal heard, fall down + die <<= E("Collide") >> FallDown + Terminate //if alarm heard, move towards player + attack <<= E("Alarm") >> Loop(moveTo(player.pos,2,1) + Attack);
// then to perform the animation, I call each frame enemy.tick(elapsed)
It's not expression-templatey in its implementation - hopefully that won't be necessary, though. I may still abandon it in favour of a simpler setup. The above got sufficiently clunky that I'm now happily RIPPING it all out and replacing it with an entity-based system.
|
|
|
|
|
Logged
|
|
|
|
|
Skomakar'n
|
 |
« Reply #941 on: June 29, 2010, 07:27:19 AM » |
|
The above got sufficiently clunky that I'm now happily RIPPING it all out and replacing it with an entity-based system. Can we have an example of the new system?
|
|
|
|
|
Logged
|
|
|
|
|
increpare
Guest
|
 |
« Reply #942 on: June 29, 2010, 09:42:28 AM » |
|
The above got sufficiently clunky that I'm now happily RIPPING it all out and replacing it with an entity-based system. Can we have an example of the new system? Yeah, go look at flixel : )
|
|
|
|
|
Logged
|
|
|
|
|
Evan Balster
|
 |
« Reply #943 on: June 29, 2010, 10:26:39 AM » |
|
Out of fifteen drawings, some interesting titles... "My donkey under goat tickler" "Pirate loves monkey style" "Pigeon explodes your mum" "Tortoise loves at weekends" "My donkey loves yak" "Aubergine beating backwards"
|
|
|
|
|
Logged
|
|
|
|
|
Kekskiller
Guest
|
 |
« Reply #944 on: June 29, 2010, 10:51:55 AM » |
|
Javadoc yay. Better than Doxygen.
|
|
|
|
|
Logged
|
|
|
|
|