Jump to content
  • Advertisement
Sign in to follow this  
hypno_

Enemy generation with Perlin

This topic is 3545 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was wondering if anyone could give me a few pointers for a project: Tile-based game, map generation is done via Perlin. Now I would like to use Perlin to place the enemies on the map (decision whether there is an enemy in this cell, as well as creation of the enemy himself). Enemies consist of - Amount of action points (turn-based) - Hitpoints and carry/wear those items: - Weapon(s), Grenade(s) - Ammunition - Armor All items have a method which returns the "value" of it, i.e. a weapon with a high range and/or more damage has a higher value than one with a shorter range and/or less damage. Now I would like to use Perlin to create enemies using their location (x,y) on the map as parameter, whereas the power of these enemies should depend on the distance between player starting location (home) and the enemy's location as well, i.e. the further the player moves away from "home", the stronger the generated enemies are. Any hints on how to create those enemies? Weak ones far from home are not necessarily bad, quite the opposite - but strong ones right on the start are a no-go. I thought about limiting the value of items, hitpoints and action points according to the distance from home and leave to actual value determination to randomness, but that seems a little.. well, too random to me. :) Did anyone come up with something a little more sophisticated already maybe?

Share this post


Link to post
Share on other sites
Advertisement
I'd say, limit the number of points per enemies to a certain range (for example, 10-100 points). Base both upper and lower bound on the distance from the start (10 + d, 100 + d), but lower the effect of the distance on the lower bound (10 + 0.5 * d, 100 + d), so there's still a fair chance of meeting weaker enemies far away.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!