Jump to content

  • Log In with Google      Sign In   
  • Create Account


We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.

Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Member Since 15 Jun 2006
Offline Last Active Today, 12:41 AM

#5179443 C++ starter

Posted by Dragonsoulj on 10 September 2014 - 04:39 PM

Sorry I'm getting back to this so late. I noticed a few things missed.


You can use SFML and OpenGL together, with using both the SFML Graphics library and OpenGL. It was designed to handle that. Or you can use the individual modules without the Graphics library: http://sfml-dev.org/tutorials/2.1/window-opengl.php


As for all the sf:: functions, classes, and keywords, I tend to use the reference to look and see what everything does: http://sfml-dev.org/documentation/2.1/annotated.php


For instance, finding out what keys you can detect (and conviently, how to detect them): http://sfml-dev.org/documentation/2.1/classsf_1_1Keyboard.php


If you have any specific questions while learning and using SFML, feel free to start a thread and ask. Several of us use it.

#5178959 C++ starter

Posted by Dragonsoulj on 08 September 2014 - 04:24 PM

For something more than the console, you can look at things like SFML. This gives you windows, graphics, input, and audio handling.

#5178587 Best 2.5D Game Engine for beginners?(obviously little programming)

Posted by Dragonsoulj on 06 September 2014 - 02:27 PM

Just to help clarify things, GaiaBlast3r, you did say MMO, but then mentioned "tunngle lan server". Which will it be? A Massively Multiplayer, or just a Multiplayer?

#5178403 Did I begin learning late?

Posted by Dragonsoulj on 05 September 2014 - 03:25 PM

"The day we stop learning is the day we die." - Michael Scott


It's never too late.

#5176322 [2D]Make a camera follow multiple characters.

Posted by Dragonsoulj on 26 August 2014 - 06:09 PM

I feel the bounding box should fit all the characters with that bit of padding around all sides so they are not on the edge. Fit the largest dimension (width or height) of the bounding box to fill the screen's matching dimension (width or height) -- this is your zoom -- and keep your screen's dimensions, expanding the smaller bounding box dimension to match the screen's ratio (this may not be necessary if you just focus on the center of the bounding box and use a zoom factor).

#5176308 4x space combat with low loses and control of territory

Posted by Dragonsoulj on 26 August 2014 - 04:47 PM

A suggestion: look at Sins of a Solar Empire. Map layouts have star lanes that connect certain planets to others (you have to pass through some planets to get to others). You get ships you can direct individually, so it isn't one big fleet. The more planets/resources you have, the better position you are in. Eventually it is about elimination/surrender. Retreating is always possible and planetary reinforcments let you prevent/delay retreating.

#5135584 Your one stop shop for the cause of all coding horrors

Posted by Dragonsoulj on 01 March 2014 - 01:30 AM

Nice article, i personally hate with passion the "Yoda Conditions".


ex: if(5 == count)


There is a reason for these. They throw errors at compile time if you try assigning improperly (for instance forgetting your second "==").

#5131855 Help with 2d tile terrain

Posted by Dragonsoulj on 16 February 2014 - 05:41 PM

Use your previous water with your desert theme. The water seems too dark/black in your new image. Definitely like the look of the cliffs and such more.

#5126890 Hello

Posted by Dragonsoulj on 28 January 2014 - 02:10 AM

Since you are a CS Major and will be taking programming classes, I am sure, why not see what languages your university uses? It could help you more in the long run. Particularly since you will be learning a language and working on extra projects with it. If you feel the university's language choice does not fall into your domain (or you want to come back here to ask about it), then you can choose a different option.

#5126827 C++ Interface Review

Posted by Dragonsoulj on 27 January 2014 - 05:15 PM

Can you explain why you have the state inside the methods? Are you assuming that each method would be called, sending a referenced state variable, and that method would only act if the state is the correct one?


Considering the getters and setters vanished in the refactored version, I think you would be passing in the desired state (thereby setting it).

#5126442 ifstream loading binary files default path?

Posted by Dragonsoulj on 26 January 2014 - 12:43 AM

When you are using VS to run it, the directory won't default to the .exe one, but outside of VS, running stand-alone, it should default to your .exe.

#5125635 downloading resuming etc

Posted by Dragonsoulj on 22 January 2014 - 08:02 AM

An alternative is for someone else to download your download, split it with 7-zip, and then you can download each part, and reassemble it.

#5125634 connecting two pc's by some cable and programming this

Posted by Dragonsoulj on 22 January 2014 - 07:59 AM

If you don't want to use the crossover cable, you can get a router or a switch and two ethernet cables.

#5124171 I'm having doubt about my map loading method and its performance.

Posted by Dragonsoulj on 16 January 2014 - 11:21 AM

If you really, really, hate typing a namespace, you always have the option to use it like this instead:

using namespace std::vector;


I tend to just use:

using std::vector;

#5124072 Can anyone explain the concept of a game loop?

Posted by Dragonsoulj on 15 January 2014 - 11:52 PM

#include <iostream>
using namespace std;

int main(){
int close = 1;

cout<<"Hey, you want to close? Type 0.";
return 0;

"close=1" to "close==1"


We want the loop to eventually end.



#include <iostream>
using namespace std;

int main(){
int close = 1;

cout<<"Hey, you want to close? Type 0.";
return 0;


Will work better for the idea that 0 exits.