• What are you working on? v19
    6,590 replies, posted
[QUOTE=~ZOMG;30872513]If I posted the current thing I'm working on (just some basic shit from a book), could you please tell me if I've messed anything up that would stop it from compiling?[/QUOTE] I can try, though there are better people at C++ than me. But yea post it and im sure someone will be able to check it
Great, thanks. [cpp] #include <iostream> using namespace std; int main() { int num; cout << "Enter a number from 1 to 3...\n\n"; cin >> num; switch(num) { case 1: cout << "Your number is one.\n"; break; case 2: cout << "Your number is two.\n"; break; case 3: cout << "Your number is three.\n"; break; default: cout << "Your number must be one - three.\n" } return 0; } [/cpp]
You missed the ; on line 23 (after Geeze.\n")
Oh wow, that fixed it. I expected it to be something much bigger. Thanks GranPC! :love:
[QUOTE=NovembrDobby;30871765]Hmm yes, all good, but some are in already and feature creep has been a problem for some time now. I'd rather get the game out ASAP and continually add stuff post-release (apparently valve had no problem with Arcadia doing this), otherwise I'll be stuck forever trying to improve it.[/QUOTE] Varied gameplay is the key, at this moment your game doesn't look enough interesting. Take for instance World of Goo, it's not like after making his core gameplay mechanics that he said to himself "Meh, I'll just go ahead and add new stuff after the release". He added a hell lot of features, even a complete new type of gameplay ( those digital levels ). That's how his game got so popular, cause people got more than what they expected to get ! Now look, you already got your core gameplay mechanic ready, why would it be so hard to add new stuff? Imagine having one and only level where you have to 'race' against some bot opponents to get certain shapes, that [b]one[/b] level would already make everything more interesting. Add one level where you have to capture a 'boss shape' as quickly as possible shape while avoiding all others, add another level where you have to free several friendly bots from a prison built out of shapes, once they're out they all start helping you and clear the whole level. There's a hell lot of stuff you can add and you don't even need any of my new gameplay element ideas to make those levels. Currently what you have is just random levels with random shapes and random movement & placement, it doesn't really feel right, it doesn't feel 'alive', it looks dull and people will get bored. There aren't any memorable levels. Aim high, don't make another average game, make something great and awesome. Away I go now !
Is anyone interested in more mandelbrot pictures, or shall i stop spamming you all with them? :v:
Make them Mandelbrot wallpapers! They're awesome!
Unsnip, what what I fucked up in this piece pf code? [cpp] #include <iostream> #include <cstdlib> int main() { int magc; int guess; magic = rand(); cout << "Enter a guess: "; cin >> guess; if(magic == guess) cout << "Correct!"; else cout << "Wrong!"; return 0; } [/cpp]
Line 6. [editline]3rd July 2011[/editline] What's your IDE? Most would complain and give you a general idea of what's wrong.
Codelite.
Codelite does have an error-output, as well as raw compiler output. Look for a tab that says 'Errors' , like in [url=http://codelite.org/images/codelite2.0.png]this picture[/url] near the bottom left.
[QUOTE=Icedshot;30872861]Is anyone interested in more mandelbrot pictures, or shall i stop spamming you all with them? :v:[/QUOTE] Make a game where manelbrots battle for supremacy. Post pictures of that.
[img]http://filesmelt.com/dl/screenshot20.png[/img] [url]http://filesmelt.com/dl/productivity1.exe[/url] figured someone might find it useful like i do right click to exit, double click to edit bad processes feel free to muck around in reflector or whatever i don't care, it's only a couple of lines of code disclaimer: no warranty of any sort, if your computer blows up then it's your own fault [editline]3rd July 2011[/editline] should work on any windows OS but let me know if it doesn't
[QUOTE=icantread49;30873756][img]http://filesmelt.com/dl/screenshot20.png[/img] [url]http://filesmelt.com/dl/productivity1.exe[/url] figured someone might find it useful like i do right click to exit, double click to edit bad processes feel free to muck around in reflector or whatever i don't care, it's only a couple of lines of code disclaimer: no warranty of any sort, if your computer blows up then it's your own fault [editline]3rd July 2011[/editline] should work on any windows OS but let me know if it doesn't[/QUOTE] I made a program like this once. I used to run it whenever I started programming so if I launched chrome/firefox/IE it would close and give me a message box "GET BACK TO WORK SLACKER"
well i gotta get back to work now, im about to cli
Now with graphics [quote][img]http://dl.dropbox.com/u/313489/Untitled-2011-07-03_14.22.15.png[/img][/quote] [url]http://dl.dropbox.com/u/313489/solitaire.love[/url]
[QUOTE=Ortzinator;30871861] It's an invalid move. What else should happen?[/QUOTE] Maybe just don't select empty places? Didn't see your code, but i don't think, that a little check would make problem.
[QUOTE=voodooattack;30873754]Make a game where manelbrots battle for supremacy. Post pictures of that.[/QUOTE] The only thing i have is these 4 2048x1536 wallpapers :smith: [url]http://dl.dropbox.com/u/9317774/Mandelbrot.rar[/url]
I THINK my bullet-time now works as it should: - slows down sprite velocity, - slows down animations (textures based and skeletal), - works with sprites "life time", - slows down SOUND :dance: If you played Facewound then you know how it all looks :wink:
[QUOTE=Wyzard;30869957]It's TCP; packet boundaries are meaningless and not really under application control anyway. The OS might happen to put those last few characters in a separate packet based on the way Firefox makes its write() calls, but that could change with a different OS or configuration. And it'd be just as valid to put, say, the first four of those characters in one packet and the latter four in a different packet. You can't rely on receiving everything you need in a single read().[/QUOTE] I learnt more from this post than I learnt from hours of digging around the internet, thanks
Just realised that mandelbrot set generation is an embarrassingly parallel problem Should easily be able to get it to run much faster!
[QUOTE=AntonioR;30874708]I THINK my bullet-time now works as it should: - slows down sprite velocity, - slows down animations (textures based and skeletal), - works with sprites "life time", - slows down SOUND :dance: If you played Facewound then you know how it all looks :wink:[/QUOTE] Couldn't you just have manipulated the DeltaFrameTime and do everything in 1 go? Also personally i am working on Gif Encoding, as in Pressing a button on my keyboard will automatically record the opengl application and dump the recording as a animated .gif file when its done. wrote all the header's and GCT myself because i can't find any libary that supports animated gif, plus i want 256color support and not 214 like most libs do.
[QUOTE=kono_kun;30874273]Maybe just don't select empty places? Didn't see your code, but i don't think, that a little check would make problem.[/QUOTE] Ok, that's fixed now. I still don't know what your gif was trying to illustrate though. [url]http://dl.dropbox.com/u/313489/solitaire.love[/url] Anyone think it's not shuffling well enough?
Anyone know of a tutorial on how to set-up SFML and G++ on OS X/Linux? I'm compiling my files using the terminal and I don't want to go off to an IDE to start using SFML.
[QUOTE=ColdFusionV2;30875377]Couldn't you just have manipulated the DeltaFrameTime and do everything in 1 go? [/QUOTE] I don't touch the framerate, if that is what you mean ... Everything is updated using a global game_speed variable so I can manipulate the "speed" of everything.
How do you guys do first person camera systems? Up until this point I've always just had a pitch and yaw variable and calculated a view normal with some 2D trig. I feel there's no need to get into quaternions and the like if I don't need roll.
Quaternions can be used to avoid gimbal lock but if you only have two axes of rotation that can't even happen, can it? [editline]3rd July 2011[/editline] Can't barrel roll though :saddowns:
Moving objects with Euler angles makes me cry.
[QUOTE=Quark:;30873900]I made a program like this once. I used to run it whenever I started programming so if I launched chrome/firefox/IE it would close and give me a message box "GET BACK TO WORK SLACKER"[/QUOTE]Aha, found it! :D [img]http://gyazo.com/a196cab3355cdc70cbff06e218630989.png[/img] You get an open dialog that lets you add .exe's to a list, and if you open any of the programs (or if they're already open) it closes it and tells you "NO! BAD NOW! GET BACK TO WORK YOU SLACKER!" You have options to stop it too, and remove items from the list and clear it too. You can customize the message box too.
Steam.exe
Sorry, you need to Log In to post a reply to this thread.