Jump to content
  • Advertisement
  • entries
    732
  • comments
    1562
  • views
    494371

Amazing progress.

Sign in to follow this  
Ravuya

73 views

I finished my final (kind of hard [crying]) and then came home and worked on Glow. You can now make a definitions file that instantiates NPCs from a unique-definition file.

For example, you can create a new type of NPC, let's say HamSandwichVendor, and make a file named HamSandwichVendor in data/npcs/, which explains his default health, alliances and stats.

Then go, in your level definition file:
data/npcs/HamSandwichVendor 100 100


To spawn him at 10.0, 10.0. And it even works from the console. [grin] Properly designed code is the booyah. I also added in a hack to take additional arguments, should you need to create a very special type of NPC that processes some additional arguments.
Sign in to follow this  


2 Comments


Recommended Comments

I know.

Join me on my compound at dusk and we shall ascend to the Mothership.

Share this comment


Link to comment

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!