Release it for free and become the Hero of TF2 eSport. Seriously, support eSport bro.
Anyone know if there are some short game programming competitions or challenges going on at the moment?
Just looking for something to do for a week or so... Can't think of much.
Finally, working collision solving between rectangles! :dance:
[img]http://i.imgur.com/vdSe0.png[/img]
Thanks to Chris220 for helping me out with this!
[QUOTE=Dlaor-guy;30966123]Finally, working collision solving between rectangles! :dance:
[img]http://i.imgur.com/vdSe0.png[/img]
Thanks to Chris220 for helping me out with this![/QUOTE]
Those rectangles look awesome!
[QUOTE=geel9;30960083]Elaborate on this MITM idea.[/QUOTE]
Clients connect directly to each other for the game, unless one of them reports its behind strict NAT
In that case, there's a trick you can do with TCP where both clients connect to the server and the server then passes the handshake from one to the other to complete the conenction. I can't remember what this is called though, but its how Skype and WLM, etc. work behind routers/firewalls.
[QUOTE=CarlBooth;30966577]I can't remember what this is called though, but its how Skype and WLM, etc. work behind routers/firewalls.[/QUOTE]
TCP punching?
Is this any better than before?
[img]http://gyazo.com/8a86e33d7dbe90b0a89e403f3f12b0ce.png[/img]
If not, any suggestions? :smile:
Why aren't you using the native system theme?
Or if you are, why is your theme like that :v:
Looks good to me.
I'm running XP, and I hate the XP theme, so I downloaded some dumb Windows 7 theme :)
Here it is with the default
[img]http://gyazo.com/265eb0f71d23a19cce6efac1f19a82ac.png[/img]
Thanks, by the way! :D
Is the diagonal background you or the theme?
[editline]7th July 2011[/editline]
also Windows Classic
Shame it looks like ass on Vista/7
[QUOTE=CarlBooth;30967399]Is the diagonal background you or the theme?[/QUOTE]
This was my question
The diagonal background is the application's backgroundImage
I guess I phrased it kinda awkwardly.
[editline]7th July 2011[/editline]
jegus automerge.
Also get rid of the diagonal background.
[editline]7th July 2011[/editline]
Whenever someting new gets implemented facepunch works worse. This automerge bug is horrible.
Which part of the background - the part I stole from FP or the white part?
[QUOTE=Quark:;30967496]Which part of the background - the part I stole from FP or the white part?[/QUOTE]
The Stripes.
It's cool that you're trying to put you're own look into the application, but most people enjoy things looking cohesive with the rest of their operating system. So keeping everything in the normal Win7 or WinClassic theme is usually best for a multiple-user experience.
All of it
UI Guidelines exist for a reason!
What looks nice to you doesn't necessarily look nice to everyone - UI guidelines are a compromise of everyone's asthetics
So basically like this
[img]http://gyazo.com/9f286ef68ff28faefc71413913c40080.png[/img]
[editline]666[/editline]
Okay, I guess I'll quick change the look of the app to match it. Thanks guys! :)
[editline]7th July 2011[/editline]
New looks
[img]http://gyazo.com/ca76596148a0d85f95b7779650044a2d.png[/img]
[img]http://gyazo.com/c4f3af3c1deca72a01f30738e0795179.png[/img]
[img]http://gyazo.com/d3219581e09a19c85267a0c254deaa84.png[/img]
[QUOTE=Dlaor-guy;30966123]Finally, working collision solving between rectangles! :dance:
[img]http://i.imgur.com/vdSe0.png[/img]
Thanks to Chris220 for helping me out with this![/QUOTE]
Could you make this big enough for a desktop background? (1920 x 1080)
@Quark: Personally I much preferred the other version, maybe have it as an option to skin it or use the windows default theme, that way everyone's happy :P
Just have it default to the windows theme and you should be good to go.
I could add an 'Enable Quarky Theme' but that'd be dumb :v:
fucking snip, jesus chriust
[img]http://img801.imageshack.us/img801/1305/unledia.png[/img]
Well that was much harder than expected, C++ and SFML.
Im not even going to attemp the graph
(like this)
[url]http://www.youtube.com/watch?v=Nl9VQEP_Qpc[/url]
BTW to those of you that werent in the steam programming chat, polycode has loads of memory leaks, hopefully they will fix this but just thought i would warn you
[QUOTE=TheCloak;30968115]Could you make this big enough for a desktop background? (1920 x 1080)[/QUOTE]
Unfortunately I'm still changing how it looks and adding gravity and stuff like that... so now it doesn't look like the picture at all anymore.
[URL="http://i.imgur.com/vUrKM.png"](here's how it looks now, btw)[/URL]
Sorry to post my shit here again, but what's wrong with this?
[cpp]
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int magic;
int guess;
while(magic > 1000 and magic < 50)
{
magic = rand();
}
cout << "Enter a guess from 50 to 1000... \n\n";
cin >> magic;
while(guess =! magic)
{
cout << "Wrong. Try again: \n\n";
cin << magic;
if(guess > magic)
cout << "That guess was too high.\n";
else
cout << "That guess was too low.\n";
}
cout << "Correct!";
return 0;
}
[/cpp]
The magic number is stored in [i]magic[/i], but you also store the guess of the user in that variable. So guess is never assigned a value and it'll never be equal to [i]magic[/i].
Additionally, your way of choosing a random number between 50 and 100 is horrific. This is the right way to get a pseudo random number like that:
[cpp]magic = rand() % 950 + 50;[/cpp]
[QUOTE=~ZOMG;30969207]Sorry to post my shit here again, but what's wrong with this?
-snip-[/QUOTE]
You probably want to do something like:
[code]
magic = 50 + (rand() % 950);
[/code]
to avoid the while loop, and you're setting the magic number to what the user says, it should be:
[code]
cin >> guess;
[/code]
in both places
[editline]7th July 2011[/editline]
no overv :<
while(guess =! magic)
{
cout << "Wrong. Try again: \n\n";
[B] cin << magic;[/B]
if(guess > magic)
cout << "That guess was too high.\n";
else
cout << "That guess was too low.\n";
}
Up first the << went the other way, could that be it? v:v:v
It works! Fantastic, thanks, all three of you :v:
I also had the second loop set out stupidly so it didn't work properly. Here's the revised code, in the unlikely event that anyone wants it.
[cpp]
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int magic;
int guess;
magic = rand() % 950 + 50;
cout << "Enter a guess from 50 to 1000... \n\n";
cin >> guess;
while(guess != magic)
{
cout << "Wrong. ";
if(guess > magic)
cout << "That guess was too high.\n\n";
else
cout << "That guess was too low.\n\n";
cin >> guess;
}
cout << "Correct!";
return 0;
}
[/cpp]
[editline]7th July 2011[/editline]
[QUOTE=Overv;30969285]The magic number is stored in [i]magic[/i], but you also store the guess of the user in that variable. So guess is never assigned a value and it'll never be equal to [i]magic[/i].[/QUOTE]
Also, this is beyond retarded.
[QUOTE=Chris220;30968306]@Quark: Personally I much preferred the other version, maybe have it as an option to skin it or use the windows default theme, that way everyone's happy :P
Just have it default to the windows theme and you should be good to go.[/QUOTE]
Just added an option to enable my theme! Was actually a good idea, thanks! :)
I got shadows to somewhat work [img]http://www.facepunch.com/fp/ratings/heart.png[/img]
[IMG]http://i51.tinypic.com/m937g6.jpg[/IMG]
Now I know it looks kinda bad and beginner'ish, but then again that's what I am with graphics and any sort of "Gameplay" at least. In any case I'm actually proud of getting it to work like that at least.
Sorry, you need to Log In to post a reply to this thread.