Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    45
  • comments
    48
  • views
    52081

Some code for your enjoyment!

Sign in to follow this  
hplus0603

246 views

I worked all week-end (again) for work. This time, some artists wanted to be able to place arbitrary particle systems in arbitrary parts of the world, rather than just associated with "live" objects like vehicles and weapons. Imagine that!
Anyway, now they can. And they can make obstacles (static geometry) with particles coming out of skeleton nodes, if they want. Only five years later than that should have been implemented :-)

Anyway, I'm going to try a new method to get some work on my home project done: the hour between 9:30 and 10:30, before I go to bed, should be project work. Not watching the remaining Maburaho disc. Not surfing the web. Not posting to news groups. Not playing games. Working on the project.

For your enjoyment, I adapted a simple configuration system for use with my project. You can download it here. For Windows, call setText() of your command line onto it, and then start picking config elements out. For UNIX, call setConfig() with each element out of argv[] (except for the first). Have fun!


#include "Config.h"

Config gConfig;


gConfig.setText(commandLineString);

if (gConfig.get("option").get<int>()) {
// option, or option=1, was on the command line
}
if (gConfig.get("value").get("") == "foo") {
// value=foo was on the command line
}


Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!