Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / [STICKY] The Posting Competition

Author
Message
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 30th Aug 2012 12:30
päge

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 30th Aug 2012 17:28
Gah! One went from ohio to new jersey (further away). Maybe order tracking is just trying to annoy me.

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 30th Aug 2012 17:29 Edited at: 30th Aug 2012 17:29
Clearer Typecasting

The C typecasting method looks like this:

factor = (float)i " 2.5; /* typecasts i to floating-point */

The designers of C++ decided that this method looks awkward. The data type in parenthesis is somewhat cumbersome. C++ still respects the C style of typecasts, but C++ offers a much cleaner method of typecasting variables. C++ typecasts look like function calls. The preceding line looks like this in C++:

factor = float(i) * 2.5 // Typecasts i to floatin-poing

float is not a function call. Despite their appearance, all typecasts are operators, having precedence among other operators just like + and && do. Even though typecasts are not functions, they act almost like functions, returning values of whatever data type the cast dictates. Most people like the "look and feel" of C++-style typecasts better then C's.

TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 30th Aug 2012 21:12
You're forgetting what else C++ adds.

dynamic_cast<T>(expr), static_cast<T>(expr), reinterpret_cast<T>(expr), const_cast<T>(expr).

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 30th Aug 2012 21:16
Hmm, I shall do some more studying on that.

I just wrote a tutorial on overloading operators : http://forum.thegamecreators.com/?m=forum_view&t=199831&b=22

I love this book already.

TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Dar13
17
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 31st Aug 2012 00:25
static_cast<T>() is actually the preferred replacement of the C-style typecasting. dynamic_cast incurs a runtime performance hit, and the others are for special casts(casting away const-ness, and casting to a derived class from a base class[iirc]).

Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 31st Aug 2012 14:43
Dropped by the farmers' market and saw an interesting assortment of pies, including, squirrel, pidgeon and kangaroo. I've eaten kangaroo before and it's awesome, can't say I like the idea of eating a squirrel pie, though a part of me is wishing I bought some, just to say I've eaten squirrel.

Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 31st Aug 2012 23:46
Yay! It's "The Posting Competition" now, not "The posting competition," woo!

Aertic
17
Years of Service
User Offline
Joined: 2nd Jul 2007
Location: United Kingdom
Posted: 1st Sep 2012 00:03
I Think I Like This Change

















TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 1st Sep 2012 00:06
*gasp* It's Morcilla! Or something like that. I'm watching you.

TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Aertic
17
Years of Service
User Offline
Joined: 2nd Jul 2007
Location: United Kingdom
Posted: 1st Sep 2012 00:07
When does this competition end?
Fallout3fan
16
Years of Service
User Offline
Joined: 9th May 2009
Location:
Posted: 1st Sep 2012 00:10
Mr. Forum President The Silly Willy Congress has decided that we will declare war on The Evil Penguin Tribe of Antarctica what do you think we should do now?

_!!!!_
,0~U -Well I do say, its been quite a fancy forum for
__-____TheZachadoodle.________________________________
Aertic
17
Years of Service
User Offline
Joined: 2nd Jul 2007
Location: United Kingdom
Posted: 1st Sep 2012 00:16
Send the eagles north.
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 1st Sep 2012 00:39
Quote: "Send the eagles north."

NOOO! I already payed for Eagles tickets. Will I get a refund?

Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 1st Sep 2012 01:01
Quote: "Mr. Forum President The Silly Willy Congress has decided that we will declare war on The Evil Penguin Tribe of Antarctica what do you think we should do now?"


Rest assured, The Evil Penguin Tribe of Antarctica is not in fact evil, they are mostly misunderstood. An old forum member by the name of Grandma had acquired his own secret penguin army (as some may recall) and this tribe you speak of are under his command. His army is at peace with TGC Forums are do not pose a threat. If they do, then simple, I bomb Norway...assuming he's still not in Japan, I might have to bomb Norway AND Japan just to be safe.

If the penguins are issuing threats, then send an army of killer whales to keep them at bay. Maybe sealions too, just to be safe. They will not make a move. If Grandma wishes to declare war and these aren't rogue penguins, then we will know. If he does, I shall retaliate by posting embarrassing things on his Timeline.

swissolo
15
Years of Service
User Offline
Joined: 9th Jan 2010
Location:
Posted: 1st Sep 2012 01:27
Quote: "If they do, then simple, I bomb Norway...assuming he's still not in Japan, I might have to bomb Norway AND Japan just to be safe."

What about Dark Coder?

swis
Joined: Tue Dec 16th 2008
Interstellar
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 1st Sep 2012 02:42
Fair point, I mean it would be collateral damage. I don't think it's an acceptable risk. Threatening Norway should suffice, I mean, that's where he keeps all his guns.

Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 1st Sep 2012 07:34
Quote: "When does this competition end?"

The first post has information on that if you're actually interested.

Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 1st Sep 2012 15:57
POINTS

TheCömet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 2nd Sep 2012 02:06
My Makefile is performing very slowly at one specific stage, and make doesn't have any (useful) profiling tools built in. Yay.

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 2nd Sep 2012 11:59
CMake isn't detecting Boost!

TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 2nd Sep 2012 12:00
MAKE it.

Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 2nd Sep 2012 12:03
Neuro Fuzzy, you just got message #32,323. That's awesome.

3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 2nd Sep 2012 17:31
you will be surprised how many phone that are windows 8 phones. Next week Nokia is selling the phone real cheap with the ATT&T plan, but I don't think people want to give up boost where you have no commitment to the pay. Another thing about Nokia is that it is selling at 2.80 per share on the New York Stock Exchange. A very good price when you consider that Walmart will make self space for the new phone.

Developer of Space Chips, pianobasic, zipzapzoom, and vet pinball apps. Developed the tiled map engine seen on the showcase. Veteran for the military.
Yodaman Jer
User Banned
Posted: 2nd Sep 2012 19:29
I think WP8 sounds like a very promising new platform. I was impressed with WP7 but WP8 looks like that'll blow that old junk out of the water. Unity is also going to support it in version 4, so that's really cool as well.

I just MS can actually get WP8 into a lot more peoples' hands, as they did a really shoddy job with WP7. Advertise, Microsoft! Frikkin' advertise your products so that people want them!

"The ships hung in the air in much the same way that bricks don't."
~ Douglas Adams
Fallout3fan
16
Years of Service
User Offline
Joined: 9th May 2009
Location:
Posted: 2nd Sep 2012 22:00
Quote: "If the penguins are issuing threats, then send an army of killer whales to keep them at bay. Maybe sealions too, just to be safe. They will not make a move. If Grandma wishes to declare war and these aren't rogue penguins, then we will know. If he does, I shall retaliate by posting embarrassing things on his Timeline."


I see... -ponders- What if they send in the flying pandas?

_!!!!_
,0~U -Well I do say, its been quite a fancy forum for
__-____TheZachadoodle.________________________________
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 3rd Sep 2012 00:13
Pandas don't fly, silly.

TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 3rd Sep 2012 00:25
I wouldn't be worried, they're an endangered species.


Also, thought I'd say "what the hey" and try Internet Explorer 9 and I am surprised, it's not bloated and it's actually quite speedy. For comparison, Comet's music thread, which is spammed with YouTube videos will cause Firefox to stop responding and I have to wait before I can navigate. IE9 loads the page and I can navigate straight away and no lag. I can't believe I would say anything positive about IE.

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 3rd Sep 2012 00:39
Thanks, now I actually have to try IE9 because of that!

TheComet

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 3rd Sep 2012 00:43
I like it because of the dubstep commercial.


WUBWUBWUBWUBWUBWUB

Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 3rd Sep 2012 01:50 Edited at: 3rd Sep 2012 01:51
I remade a few of the DarkProject emoticons. Here they are.



























Some are new.

Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 3rd Sep 2012 02:22


Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 3rd Sep 2012 02:54
Indicium
17
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 3rd Sep 2012 03:03
TGC really need a smiley update!


They see me coding, they hating. http://indi-indicium.blogspot.co.uk/
Fallout3fan
16
Years of Service
User Offline
Joined: 9th May 2009
Location:
Posted: 3rd Sep 2012 03:11
Quote: "I wouldn't be worried, they're an endangered species."


But... These are a special type of flying pandas!



OH MY GOSH THEY'RE COMING IN LARGE ARMIES!



_!!!!_
,0~U -Well I do say, its been quite a fancy forum for
__-____TheZachadoodle.________________________________
Yodaman Jer
User Banned
Posted: 3rd Sep 2012 04:20


Yup, that's how easy it is to calculate falling damage and round it to the nearest integer in Unity!

"Falling" is a boolean that is set to true whenever the player is off of the ground. "Fall" is a variable that should be pretty obvious what it contains.

After the player has finished falling and if the fall was higher than, say, 8 feet, the following line executes -



- which determines the height of the fall, then subtracts only a small percentage of that value to the player's health, thus resulting in damage, which is different depending on how far the player has fallen.

A few issues come up with the balancing it all out, and I'm sure there's better ways to do this, but this was the easiest I could find and think of. One problem is that the damage seems to have set values; for example, if I fall for two feet, instead of 8 damage I get 4, but if I fall for four feet then I get 8 damage, and if I fall for eight feet then I get 16 damage... this isn't really a problem, as it is random numbers in-between, but more often than not it seems to be exact doubles.

"The ships hung in the air in much the same way that bricks don't."
~ Douglas Adams
Dar13
17
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 3rd Sep 2012 05:07
Behold my awesome Lua function that makes a character pace between two points! I'm finally starting to script out some of the actual AI that'll be present in the game, and I'm very excited about it.


Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 3rd Sep 2012 16:01
Quote: "Thanks, now I actually have to try IE9 because of that!"


It's actually a pretty useable browser now, I was pretty surprised. In fact, I think I'll give in and make it my main browser, it's not lagging where FF does.


Quote: "I like it because of the dubstep commercial."


I didn't try it because of the dubstep, but I have been bombarded with the commercials say it's fast, it's smoked the competition yadadada and I was sat thinking, "yeah right, IE is a poor excuse of a browser". Heck, I even laughed at the fact that IE is so bad that MS have to advertise it, even though it comes as standard. So I took the commercial's claims as a challenge and well, I was wrong about 2 things, 1) that IE9 was gonna suck and 2) that commercials never work on me. Well played Microsoft.

Indicium
17
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 3rd Sep 2012 16:45
It's still a pain to support IE7 and IE8, they could've at least done a good job on those!


They see me coding, they hating. http://indi-indicium.blogspot.co.uk/
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 3rd Sep 2012 17:25
Oh aye, I wish they had. I had to use IE7 at my old job, it was a nightmare. :S I was almost a phone call away from phoning IT to tell them to install Firefox, but I didn't fancy keep bugging them as I had to continuously phone them about problems to do with my computer anyway (and they didn't get the "I tried turning on and off again" joke ). To add, I was running on a really low spec Windows XP machine, which didn't help (think it had 128mb ram, maybe 256mb - certainly felt like 128mb ram).

Indicium
17
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 3rd Sep 2012 17:29
I bet it was. It's good to see they've started to comply with the standards with IE9 and IE10. I mean, not supporting border-radius? Why would you do that?


They see me coding, they hating. http://indi-indicium.blogspot.co.uk/
Aertic
17
Years of Service
User Offline
Joined: 2nd Jul 2007
Location: United Kingdom
Posted: 3rd Sep 2012 22:16
Does HTML5 work in IE9?
Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 3rd Sep 2012 22:24
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 3rd Sep 2012 22:53
Okay, but does HTML work in ie9?

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 3rd Sep 2012 22:56
Neuro, No.

"if you don't understand recursion than you probably don't understand recursion." ~Jerico2day
Aertic
17
Years of Service
User Offline
Joined: 2nd Jul 2007
Location: United Kingdom
Posted: 3rd Sep 2012 22:59
Does PHP work in IE9?
Indicium
17
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 3rd Sep 2012 23:17
Quote: "Does PHP work in IE9? "





They see me coding, they hating. http://indi-indicium.blogspot.co.uk/
Happy Cheesecake
15
Years of Service
User Offline
Joined: 16th Jun 2009
Location: My non-vice-presidential refrigerator.
Posted: 3rd Sep 2012 23:54
Do charcoal grills work on IE9?
Randomness 128
18
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 4th Sep 2012 00:25
Does IE9 work on IE9?

Login to post a reply

Server time is: 2025-06-08 22:39:55
Your offset time is: 2025-06-08 22:39:55