Jump to content

  • Log In with Google      Sign In   
  • Create Account


Dragonsoulj

Member Since 15 Jun 2006
Offline Last Active Today, 11:03 AM
-----

#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;

while(close==1){
cout<<"Hey, you want to close? Type 0.";
cin>>close;
}
return 0;
}

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

 

We want the loop to eventually end.

 

Although:

#include <iostream>
using namespace std;

int main(){
int close = 1;

while(close!=0){
cout<<"Hey, you want to close? Type 0.";
cin>>close;
}
return 0;
}

 

Will work better for the idea that 0 exits.




#5123789 Need help with a new game(first game)

Posted by Dragonsoulj on 14 January 2014 - 11:48 PM

I will throw in my two cents.

 

If you want a text-based RPG with a combat system, go for it. Do break up your tasks, into pieces, however. Your combat system can stand alone while you work on it, and then the rest of the RPG features can be added.

 

This advice does come with the assumption that you are doing a choice style RPG and combat system (like FF and Pokemon where you just choose what action and the result is calculated).

  • Show List of Options
  • Get User Input
  • Process Input
  • Repeat Until Finished

This can be used for both parts of the game.

 

Perhaps try for this for a list of "major" goals:

  • Character Creator -- Handles creating "stats" and other character information
  • Inventory/Story System -- Gives players the option to buy and sell items, equip weapons, handling any monetary transactions (and saying when they can't buy something)
  • Combat System -- Takes Characters (and Monsters which are Characters), uses their stats, and handles combat/use of items and weapons (Your battle finish can give experience/up stats)
  • Story interaction/Encounters -- This is where the rest of the game takes shape, where you add dialogue, perhaps towns/areas, and can do random and planned encounters like surprise enemies and boss fights.

 

Each goal should be a "complete" portion of your game. You should be able to use everything up to the point you have reached. The Character Creator and the Inventory/Store System can be done in either order. Perhaps you may prefer to have the player select or purchase a starting inventory, so you do that system before the Character Creator.




#5118516 "mygame.exe is not commonly downloaded"...

Posted by Dragonsoulj on 21 December 2013 - 02:40 AM

Th

Just send it to a compressed zip file and upload it.


Thanks but I'm looking for the 'correct' way of sharing a .exe

 

 

Considering transmitting .exe files through email usually fails if you just attach them, and smaller downloads are better for servers and user bandwidth, I don't see the harm in transmitting through the internet this way.




#5118508 "mygame.exe is not commonly downloaded"...

Posted by Dragonsoulj on 21 December 2013 - 01:10 AM

Just send it to a compressed zip file and upload it.




#5118303 A diffrent type of rts.

Posted by Dragonsoulj on 19 December 2013 - 10:27 PM

This may be a relevant game: http://en.wikipedia.org/wiki/Impossible_Creatures




#5115757 Creating an Open World game

Posted by Dragonsoulj on 09 December 2013 - 05:33 PM


dev journal

 

It's a journal where you record your progress for others to read. GameDev has something you could use.




#5115523 Name for unusual narrative mode?

Posted by Dragonsoulj on 08 December 2013 - 08:29 PM

Portal seems to fit this description. I'm interested to know what this would be considered.






PARTNERS