Search found 228 matches

by Maevik
Fri Mar 20, 2009 2:01 pm
Forum: Game Development
Topic: Visual C++ Express and Distribution
Replies: 53
Views: 7117

Visual C++ Express and Distribution

So I finished my first game, a pong clone, and was going to post it here and hopefully get some feedback. However, I built it with Visuall C++ Express and am not having much luck figuring how exactly I need to go about compiling into something that I can distribute. I've found limited info on how to...
by Maevik
Fri Mar 20, 2009 1:57 pm
Forum: Game Development
Topic: SDL or Allegro?
Replies: 33
Views: 5415

Re: SDL or Allegro?

I just built my first game ( Pong clone, no segfault w00t! ) in SDL. It is actually the first API i've worked with so far so I have very limited perspective, but I found it really easy to work with. I did a little work with Allegro ( tried some tiling, blitting and display options ) and watched Lusi...
by Maevik
Thu Mar 19, 2009 12:51 am
Forum: Programming Discussion
Topic: C++ isdigit command
Replies: 38
Views: 3415

Re: C++ isdigit command

MarauderIIC wrote: Maevik, !cin is shorthand for cin.fail() (or !cin.good(), perhaps)
Good to know, thx.
by Maevik
Tue Mar 17, 2009 7:12 pm
Forum: Programming Discussion
Topic: Programming Production
Replies: 17
Views: 1971

Re: Programming Production

LusikkaMage wrote:
/pessimism with a vengeance.
fixt
by Maevik
Mon Mar 09, 2009 2:13 pm
Forum: Programming Discussion
Topic: Do you remember when it just clicked into place?
Replies: 23
Views: 2025

Re: Do you remember when it just clicked into place?

I'm still waiting on this moment myself, I would like to know though:

What were you working on when it clicked? What concepts were you finding dificult before that came into focus?
by Maevik
Sat Mar 07, 2009 3:14 pm
Forum: Programming Discussion
Topic: C++ isdigit command
Replies: 38
Views: 3415

Re: C++ isdigit command

MarauderIIC wrote:Maevik, thanks but already posted :) http://elysianshadows.com/phpBB3/viewto ... 402#p35402
Ahh, ok. I didn't realize !cin worked the same way. If you use this method, do you still need cin.clear() and cin.ignore() ?
by Maevik
Sat Mar 07, 2009 3:10 pm
Forum: Programming Discussion
Topic: C++ isdigit command
Replies: 38
Views: 3415

Re: C++ isdigit command

Another good way to make sure you're getting a number is to use if( cin.fail() ) with a flag loop and a "Try again retard" message that prompts them again. int main() { double a = double(); bool again = true; while ( again ) { cout << "For the quadratic equation, please enter to value...
by Maevik
Sat Mar 07, 2009 2:56 pm
Forum: Programming Discussion
Topic: Which library should I use?
Replies: 6
Views: 622

Re: Which library should I use?

I highly recommend SDL for a well documented, beginner input/media library. Its very straight forward and has a strong set of community tutorials (google lazyfoo). http://www.libsdl.org I can't say it's the best because it's all I've used so far, but I'm learning it as my first library and using la...
by Maevik
Fri Mar 06, 2009 2:17 pm
Forum: Game Development
Topic: Bop N' Pop! 360 Edition
Replies: 119
Views: 24339

Re: Bop N' Pop! 360 Edition

That's awesome! Congrats man.
by Maevik
Thu Mar 05, 2009 4:16 pm
Forum: Programming Discussion
Topic: Loading Images in SDL and Scope
Replies: 5
Views: 474

Re: Loading Images in SDL and Scope

Thanks guys, all of this was really helpful.

I think I'm gonna have screen be a global for a few programs, then start putting that into an object also.
by Maevik
Wed Mar 04, 2009 11:02 pm
Forum: Programming Discussion
Topic: Loading Images in SDL and Scope
Replies: 5
Views: 474

Loading Images in SDL and Scope

So I'm working my way through Lazy Foo's SDL tutorial and I found something in the code that suprised me. Hopefully someone can clear this up for me. In his tutorials he usually creates global variables for images, which is fine, but since I am still learning I'd like to stick to OO design as much a...
by Maevik
Wed Mar 04, 2009 12:07 am
Forum: Programming Discussion
Topic: Passing/Returning arrays to/from functions (N00b question)
Replies: 26
Views: 1980

Re: Passing/Returning arrays to/from functions (N00b question)

This is helpful. I need to book up on string stuff I guess.
by Maevik
Tue Mar 03, 2009 5:21 pm
Forum: Programming Discussion
Topic: Passing/Returning arrays to/from functions (N00b question)
Replies: 26
Views: 1980

Re: Passing/Returning arrays to/from functions (N00b question)

I R Lost

Anyone mind running this through in nub_cake terms?
by Maevik
Tue Mar 03, 2009 1:41 am
Forum: Programming Discussion
Topic: Passing/Returning arrays to/from functions (N00b question)
Replies: 26
Views: 1980

Re: Passing/Returning arrays to/from functions (N00b question)

Ok, I remember reading on arrays being pointers now that you bring it up. Does this mean that arrays essentially cannot be passed between functions? At least not without adding them to the heap?
by Maevik
Tue Mar 03, 2009 1:10 am
Forum: Programming Discussion
Topic: Passing/Returning arrays to/from functions (N00b question)
Replies: 26
Views: 1980

Re: Passing/Returning arrays to/from functions (N00b question)

EDIT: Sorry, about the pointers. Trying this with pointers gives me an error for the value being passed, not returned... Exact error: Error 1 error C2664: 'ljustify' : cannot convert parameter 1 from 'char (*)[20]' to 'char *[]' Exact Code: #include <iostream> using namespace std; void ljustify(char...