Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

891264 Posts in 33534 Topics- by 24775 Members - Latest Member: PestoForce

June 19, 2013, 10:45:45 AM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)The happy programmer room
Pages: 1 ... 61 62 [63] 64 65 ... 231
Print
Author Topic: The happy programmer room  (Read 268737 times)
psy_wombats
Level 0
**


psywombats
View Profile WWW Email
« Reply #930 on: June 23, 2010, 06:50:02 AM »

8 doesn't have much context. You want a:
Code:
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:
Code:
theNumberSeven = 7; // Don't change or the code will break!
Logged

WombatRPGs - Game Discussion and Design
Gnarf
Level 10
*****



View Profile WWW
« Reply #931 on: June 23, 2010, 07:58:26 AM »

Code:
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
Level 0
**


psywombats
View Profile WWW Email
« 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

WombatRPGs - Game Discussion and Design
Skomakar'n
Level 10
*****


Vąutah


View Profile WWW Email
« 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

mak gam
Geisha Novia: Out now!
Bottoms Up!: Devlog

Royal Railway on Twitter.

Adam Emil
st33d
Guest
« Reply #935 on: June 25, 2010, 07:45:19 AM »

That reminds me of a little thing I made many years ago in Flash 8:

http://www.robotacid.com/flash/harold.html
Logged
Skomakar'n
Level 10
*****


Vąutah


View Profile WWW Email
« Reply #936 on: June 25, 2010, 08:05:12 AM »

That reminds me of a little thing I made many years ago in Flash 8:

http://www.robotacid.com/flash/harold.html



<3
Logged

mak gam
Geisha Novia: Out now!
Bottoms Up!: Devlog

Royal Railway on Twitter.

Adam Emil
Mipe
Level 10
*****


Migrating to imagination.


View Profile
« 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
Level 0
**


psywombats
View Profile WWW Email
« Reply #938 on: June 25, 2010, 09:09:22 AM »

That reminds me of a little thing I made many years ago in Flash 8:

http://www.robotacid.com/flash/harold.html

This is pretty great, especially when you git a big bug-eyed robot face placed close to the foreground.
Logged

WombatRPGs - Game Discussion and Design
Average Software
Level 10
*****

Fleeing all W'rkncacnter


View Profile WWW Email
« 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

Franchise - The restaurant wars begin!

What would John Carmack do?
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:

Code:
// 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
Level 10
*****


Vąutah


View Profile WWW Email
« 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

mak gam
Geisha Novia: Out now!
Bottoms Up!: Devlog

Royal Railway on Twitter.

Adam Emil
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
Level 10
*****


dreaming close to metal


View Profile WWW Email
« Reply #943 on: June 29, 2010, 10:26:39 AM »

That reminds me of a little thing I made many years ago in Flash 8:

http://www.robotacid.com/flash/harold.html

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

Infinite Blank, SoundSelf, Cave Story+, Wreath
voice, accordion, mandolin, oboe (?!)
Game audio programming consultant.
<plaid/audio> 0.2: opensource audio framework
Kekskiller
Guest
« Reply #944 on: June 29, 2010, 10:51:55 AM »

Javadoc yay. Better than Doxygen.
Logged
Pages: 1 ... 61 62 [63] 64 65 ... 231
Print
Jump to:  

Theme orange-lt created by panic