Search found 1492 matches

by LuX
January 12th, 2016, 7:42 am
Forum: Everything
Topic: Programming paradigms
Replies: 13
Views: 853

Re: Programming paradigms

Ah, yes, I didn't give much though to it.
by LuX
January 11th, 2016, 8:52 pm
Forum: Everything
Topic: Programming paradigms
Replies: 13
Views: 853

Re: Programming paradigms

If I understood right, I don't think the phrase "composition over inheritance" means choosing "composition" instead of "inheritance". Instead it means just what is says: composing something through inheritance. Say you're working on a game that has a player, turret and mine: A player is a visual ent...
by LuX
October 4th, 2015, 9:57 pm
Forum: Everything
Topic: Direct2D 1.1 and later
Replies: 6
Views: 1077

Re: Direct2D 1.1 and later

I agree, I tried to make a game in D2D a long time a go, but ended scrapping it when I came to shaders. Implementing them is way harder than it needs to be. Plus there's nothing D2D can do that D3D can't, but D3D requires a bit more code, so there's that. Once you manage to make a 2D framework using...
by LuX
August 13th, 2015, 6:52 am
Forum: Everything
Topic: Long time no see
Replies: 7
Views: 754

Long time no see

Just finished moving to another city, and hopefully get my shit together soon so I can get back to programming games. Next week I'm beginning in a programming/information technology university. I see a lot has changed here, grats to albinopapa for becoming a moderator. My programming skills are a bi...
by LuX
December 23rd, 2014, 8:28 am
Forum: Everything
Topic: a 20-line random walk [heap corrupted]
Replies: 20
Views: 1425

Re: a 20-line random walk

Ah, I meant the very first word... template < typename V > inline V RND( V Min, V Max ) { return static_cast< V >( static_cast< double >( rand( ) ) / static_cast< double >( RAND_MAX ) * ( static_cast< double >( Max ) - static_cast< double >( Min ) + 1.0 ) + static_cast< double >( Min ) ); } You shou...
by LuX
December 22nd, 2014, 11:01 pm
Forum: Everything
Topic: a 20-line random walk [heap corrupted]
Replies: 20
Views: 1425

Re: a 20-line random walk

Good question. Unfortunately I don't remember where I got it from, but I didn't make it. I remember it being something about certain numbers appearing more frequently than others when using rand(), and the RND function is supposed to equalize all numbers. And interestingly enough, when I use "int a ...
by LuX
December 22nd, 2014, 1:36 pm
Forum: Everything
Topic: a 20-line random walk [heap corrupted]
Replies: 20
Views: 1425

Re: a 20-line random walk

Well, to begin with, random number generation using rand isn't truly random, which is why you might experience these oddities. after running this code for a while, the average distance started to get closer and closer to 0, ultimately it hovers ±2 around 0. TEMPLATE_INLINE V RND( V Min, V Max ) { re...
by LuX
December 5th, 2014, 10:36 pm
Forum: Everything
Topic: any other "aspies" on this forum?
Replies: 8
Views: 980

Re: any other "aspies" on this forum?

Well, I'm certainly no expert, but what you just described sounds a lot like my sister, and she definitely doesn't have autism. In fact my mother used to work with disabled and mentally challenged people, so she knows a lot of families with kids with "aspies", and I've met a lot of them, like we use...
by LuX
December 5th, 2014, 10:15 pm
Forum: Everything
Topic: Is Chili still doing these tutorials?
Replies: 19
Views: 2084

Re: Is Chili still doing these tutorials?

Maybe then we can finally get the laser shooting tits he dis-promised.
by LuX
December 4th, 2014, 1:10 pm
Forum: Everything
Topic: Is Chili still doing these tutorials?
Replies: 19
Views: 2084

Re: Is Chili still doing these tutorials?

Good to hear from ya chili. Please accept this token of my gratitude.