Search found 27 matches

by jaybee
Sat Apr 02, 2011 3:14 pm
Forum: Programming Discussion
Topic: [SOLVED] SDL problem no errors are being returned.
Replies: 6
Views: 1380

Re: SDL problem no errors are being returned.

void Target::handle_events() { int x = 0,y = 0; if (event.type == SDL_MOUSEMOTION) { x = event.motion.x; y = event.motion.y; if (event.type == SDL_MOUSEBUTTONDOWN) { x = event.motion.x; y = event.motion.y; if( ( x > box.x ) && ( x < box.x + box.w ) && ( y > box.y ) && ( y < ...
by jaybee
Sat Apr 02, 2011 12:26 am
Forum: Game Development
Topic: New Dev Laptop (Feedback requested)
Replies: 5
Views: 5159

Re: New Dev Laptop (Feedback requested)

It's a little hard to give feedback if we don't know how bad they shafted you. What happened? Yours broke and they're offering you a slower one in return? What were the specs on your old one?
by jaybee
Fri Apr 01, 2011 10:08 pm
Forum: Programming Discussion
Topic: [SOLVED] SDL problem no errors are being returned.
Replies: 6
Views: 1380

Re: SDL problem no errors are being returned.

//game loop while (quit == false) { Target myTarget(170,120,320,240); if(SDL_PollEvent(&event)) { myTarget.handle_events(); if( event.type == SDL_QUIT ) { //Quit the program quit = true; } } myTarget.show(); if (SDL_Flip( screen ) == -1) { return 3; } } //cleanup cleanup(); return 0; } [/code] ...
by jaybee
Fri Apr 01, 2011 12:36 pm
Forum: Game Development
Topic: Space Shooter WIP (C++/OpenGL/SDL)
Replies: 2
Views: 1081

Re: Space Shooter WIP (C++/OpenGL/SDL)

Nice SHMUP man. I think the player looks pretty good. I'm working on a SHMUP as well but I'm not quite ready for opengl. Maybe you could upload a video when you get a chance. :mrgreen:
by jaybee
Thu Mar 31, 2011 2:00 pm
Forum: Programming Discussion
Topic: [SOLVED] My code is broken
Replies: 3
Views: 729

Re: My code is broken

Ohhhh right thank you. Not sure how I missed that one. I've been kinda rewriting my code from the inside out and my brain is basically jello at this point. But hey I'm learning a lot in the process. Anyways thank you I really appreciate it.
by jaybee
Thu Mar 31, 2011 1:29 pm
Forum: Programming Discussion
Topic: [SOLVED] My code is broken
Replies: 3
Views: 729

[SOLVED] My code is broken

Hey guys. So after a brief hiatus I've started working on my shoot em up once again. Once I started digging around in the code I realized I was going to have to restructure things quite a bit. What I'm working on right now is a ship manager class that will take care of drawing the player and enemy s...
by jaybee
Mon Jan 24, 2011 12:03 am
Forum: Programming Discussion
Topic: [SOLVED] Spawn entities along bezier curve
Replies: 9
Views: 1084

Re: Adventures in n00b development

You got it ;] x and y are both bound by that equation. So if for example you wanted to spawn 25 enemies along said path. The time interval is 1/25, if you want 30 enemies then the time interval is 1/30. Enemy 0 starts at P0. Enemy 1 follows at time = 1/25. Enemy 2 follows at time = 2/25, Enemy 3 fo...
by jaybee
Sun Jan 23, 2011 11:00 pm
Forum: Programming Discussion
Topic: [SOLVED] Spawn entities along bezier curve
Replies: 9
Views: 1084

Re: Adventures in n00b development

Yes, as GroundUpEngine said all of those parameters should be given a default value in the Enemy constructor so that you only need to specify them when you'd like something other than the default. Also, some of those parameters even seem redundant. 1. You can get the image width and height from the...
by jaybee
Sun Jan 23, 2011 5:19 pm
Forum: Programming Discussion
Topic: [SOLVED] Spawn entities along bezier curve
Replies: 9
Views: 1084

Re: Adventures in n00b development

Thanks for the quick reply. Really helpful info. My first idea was similar to what you had put groundupengine, but I'm not sure how I would go about placing them in particular formations within a for loop like that. Most likely some basic math would do the trick. Again, I know these are relatively s...
by jaybee
Sun Jan 23, 2011 1:40 pm
Forum: Programming Discussion
Topic: [SOLVED] Spawn entities along bezier curve
Replies: 9
Views: 1084

[SOLVED] Spawn entities along bezier curve

So over the past couple of months I've been trying to get my feet wet by writing a little shmup in C++/SDL. Things have been going pretty well up until this point and I've been able to implement a scrolling background, a player ship with a specified number of lives, explosion animations for enemies ...
by jaybee
Fri Jan 14, 2011 9:18 pm
Forum: General/Off-Topic
Topic: Official "Hello, World! (I'm new!)" thread
Replies: 821
Views: 626488

Re: Official "Hello, World! (I'm new!)" thread

You know, I'm not going to lie... as far as I can see, this forum is awesome. Most forums I read its just 100% flaming. But this forum seems like a nice community. I really appreciate the help the regulars here give the newbies. Just one helpful post after another after another. I hope I can help pe...
by jaybee
Fri Jan 14, 2011 7:07 pm
Forum: General/Off-Topic
Topic: Official "Hello, World! (I'm new!)" thread
Replies: 821
Views: 626488

Re: Official "Hello, World! (I'm new!)" thread

Hey everyone! I'm jb. I'm not exactly new to programming but in my high school years it always took a back seat to playing music. This time I'm gonna do it I swear! Well anyways, I'm currently coding a shmup in C++ with SDL. The code is most likely complete shit but I'm trying. I spent my days in hi...