Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (763)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (852)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Formular for generating amount of XP a killed enemy provides  (Read 1862 times)
0 Members and 1 Guest are viewing this topic.
Offline ral0r2
« Posted 2017-08-30 09:00:57 »

Hey guys,

I'm looking for a formular which determines the amount of experience points (XP) a killed enemy provides for a player to gain a level up if enough points are earned. I know that this is depending on a lot of various factors so if you maybe could give me your thoughts on the topic that would help. I dont want to set the XP which a killed enemy gives manually. So the enemies in my game have different attributes. Which are the following:

  • Health
  • MaxHealth
  • Mana
  • MaxMana
  • Damage
  • AttackSpeed
  • Level
  • MovementSpeed
  • Strength
  • Agility
  • Intelligence

I was thinking about something like xpToGive = enemy.MaxHealth / 2 or something (of course this is way too simple and would cause a bad XP distribution). But I think it would be cool to generate the amount of XP automatically by the stats of an enemy. As I already said I know it's hard for you to judge because you don't know how the single attributes affect gameplay and the difficulty of killing an enemy, but maybe your reflections on this topic can give me a hint how to implement this or maybe you tell me the whole idea is crap unless I have 10000 different enemies in my game and its simply not worth implementing this.

Thanks!
Offline princec

« JGO Spiffy Duke »


Medals: 1041
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2017-08-30 09:15:22 »

Well put it this way: if you need a crazy formula to work it out then your players aren't really going to fathom it either, so my advice is keep it reaaaallly simple and just base it on about 3 attributes and ignore the rest.

Also remember that XP is a bit like currency, in that it sort of suffers inflation... the rewards need to keep creeping up and up but, in line with the amounts needed to gain levels. And they should go up in steps, rather than linearly.

And finally if someone's bashing things that are clearly too easy, you need to scale the rewards down massively towards a single 1XP reward. Eg. by the time something is 10 levels below you, it should be worth 1XP no matter what.

Cas Smiley

Offline ral0r2
« Reply #2 - Posted 2017-08-30 10:17:39 »

Well put it this way: if you need a crazy formula to work it out then your players aren't really going to fathom it either, so my advice is keep it reaaaallly simple and just base it on about 3 attributes and ignore the rest.

Also remember that XP is a bit like currency, in that it sort of suffers inflation... the rewards need to keep creeping up and up but, in line with the amounts needed to gain levels. And they should go up in steps, rather than linearly.

And finally if someone's bashing things that are clearly too easy, you need to scale the rewards down massively towards a single 1XP reward. Eg. by the time something is 10 levels below you, it should be worth 1XP no matter what.

Cas Smiley

This are some really, really good points. Especially the thing with killing enemies which are too easy, thanks for
Pages: [1]
  ignore  |  Print  
 
 

 
EgonOlsen (525 views)
2018-06-10 19:43:48

EgonOlsen (629 views)
2018-06-10 19:43:44

EgonOlsen (426 views)
2018-06-10 19:43:20

DesertCoockie (772 views)
2018-05-13 18:23:11

nelsongames (1018 views)
2018-04-24 18:15:36

nelsongames (983 views)
2018-04-24 18:14:32

ivj94 (1547 views)
2018-03-24 14:47:39

ivj94 (559 views)
2018-03-24 14:46:31

ivj94 (1329 views)
2018-03-24 14:43:53

Solater (562 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!