Search found 71 matches
- Mon Feb 20, 2012 8:56 pm
- Forum: Game Development
- Topic: Garbe Engine/Editor C++/SDL
- Replies: 21
- Views: 7861
Re: Garbe Engine/Editor C++/SDL
My God... it's all in one file. How do you get anything done?! If I have more than like, 1000 lines in a file I have a heart attack. You're sitting here, so unorganized, doing fine somehow. I want to know your secret. Btw, since you say you learned from the almighty LazyFoo, check out this article,...
- Mon Feb 20, 2012 8:32 pm
- Forum: Game Development
- Topic: Garbe Engine/Editor C++/SDL
- Replies: 21
- Views: 7861
Re: Garbe Engine/Editor C++/SDL
My God... it's all in one file. How do you get anything done?! If I have more than like, 1000 lines in a file I have a heart attack. You're sitting here, so unorganized, doing fine somehow. I want to know your secret. Btw, since you say you learned from the almighty LazyFoo, check out this article, ...
- Sat Sep 17, 2011 12:31 pm
- Forum: Game Development
- Topic: First Complete Game: Obstacle Rd.
- Replies: 5
- Views: 2352
First Complete Game: Obstacle Rd.
It's a horrible game I must admit. It's my first complete one, though. First time using C# and XNA, which was actually a lot easier than C++ and SDL (although I prefer C++ and SDL). Check it out and lemme know how bad it is
http://www.mediafire.com/?hbamcapi6xpsio2
Controls:
Jump = Space
http://www.mediafire.com/?hbamcapi6xpsio2
Controls:
Jump = Space
- Sun Aug 07, 2011 9:30 pm
- Forum: Programming Discussion
- Topic: C++ Question with classes [SOLVED]
- Replies: 10
- Views: 1657
Re: C++ Question with classes
A reference is almost a complete copy of a variable, No.... just....... no..... A reference is a just that, a reference. If you make changes to a reference inside an object, when your return from the function the object you passed a reference of has still been modified. It's because your only ever ...
- Sat Aug 06, 2011 11:32 pm
- Forum: Programming Discussion
- Topic: C++ Question with classes [SOLVED]
- Replies: 10
- Views: 1657
Re: C++ Question with classes
All this is, is a function who has an argument that is a reference :) A reference is almost a complete copy of a variable, but it has the exact same memory address. It's sort of like taking a variable and momentarily moving it somewhere else, only to move it back once it's done what it needs to do. ...
- Sat Aug 06, 2011 10:41 pm
- Forum: Programming Discussion
- Topic: C++ Question with classes [SOLVED]
- Replies: 10
- Views: 1657
Re: C++ Question with classes
Well for starters, what you're doing is a mistake I made at first, too :P Variables have something called "scope" applied to them. Scope is kind of like a sniper scope. Different parts of your code can only see things that are in their scope. The main function in main.cpp has the variable ...
- Tue May 03, 2011 8:28 pm
- Forum: Game Development
- Topic: Shmup challange!
- Replies: 2
- Views: 1360
Re: Shmup challange!
That's definitely the sexiest thing I've seen in a long time considering it only took you a week. I hope you continue along with the project, because it looks like it has some real potential. What are you using there, SFML? Also, is that original art? If it is, wow man, a week of work with some awes...
- Mon May 02, 2011 4:32 pm
- Forum: Programming Discussion
- Topic: OpenGL 2D Camera System
- Replies: 6
- Views: 1697
Re: OpenGL 2D Camera System
The code you've provided is correct, as you haven't provided code for translating to the CAMERA's position or rotating about the CAMERA's orientation. Well yeah probably :/ Here's the code for that though, if it helps: Camera::CurrentCamera()->Pos().TranslateTo(); I take the center of the Camera's ...
- Mon May 02, 2011 3:10 pm
- Forum: Programming Discussion
- Topic: OpenGL 2D Camera System
- Replies: 6
- Views: 1697
Re: OpenGL 2D Camera System
Sure. Here's the drawing code for any 2D Texture: // Begin to draw the quad using the given texture glPushMatrix(); glTranslatef(rect.CenterY(), rect.CenterX(), 0.0f); texture.Bind(); Rect tRect (0.0f, 0.0f, 1.0f, 1.0f); if (texture.isPadded()){ tRect = texture.Pad().ToTexCoords((float)texture.Width...
- Mon May 02, 2011 2:57 pm
- Forum: Programming Discussion
- Topic: OpenGL 2D Camera System
- Replies: 6
- Views: 1697
Re: OpenGL 2D Camera System
No, just some sort of way to move the scene around without messing with the rotations. As of now, everything renders fine, but once I apply some sort of rotation with the camera active, it just messes it up. I use a call to glTranslatef() giving the camera coordinates (which are on the negative x an...
- Sun May 01, 2011 9:03 pm
- Forum: Programming Discussion
- Topic: OpenGL 2D Camera System
- Replies: 6
- Views: 1697
OpenGL 2D Camera System
Does anybody know of a decent OpenGL 2D Camera System? I've tried some before, and all of them mess up with rotation of objects if the camera moves in a certain way. :/
- Sun May 01, 2011 4:41 pm
- Forum: Game Development
- Topic: C++ SDL TileMap System ERRORS! HELP! :P
- Replies: 18
- Views: 5498
Re: C++ SDL TileMap System ERRORS! HELP! :P
You may want to update the code you posted so we have something to work on. Exactly this^ Can you include Main.cpp too? Main.cpp is the file being compiled it is irrelevant to these errors. I've updated it. This statement in the tileFile function is the problem: sprite->file=("Tiles\\"+id...
- Sun Apr 24, 2011 10:01 pm
- Forum: General Gaming
- Topic: Post every time you beat a game.
- Replies: 629
- Views: 893889
Re: Post every time you beat a game.
Assassin's Creed II... holy mother of god. That took wayyyyyyy too long. At the same time, it was a lot of fun just doing a bunch of stuff. Medieval Grand Theft Auto IV
- Sat Apr 23, 2011 2:27 pm
- Forum: Programming Discussion
- Topic: ToLua++
- Replies: 7
- Views: 1194
- Sat Apr 23, 2011 1:48 pm
- Forum: Programming Discussion
- Topic: ToLua++
- Replies: 7
- Views: 1194
Re: ToLua++
There are a few different parts of the project, there's tolua++.exe which generates your binding code from cleaned headers, then there's the tolua++.lib library which you include with your project. You'll need to compile both (but I think it's the same project). Honestly I've long forgotten how to ...