mccoyst / min-game

Automatically exported from code.google.com/p/min-game
MIT License
2 stars 1 forks source link

Reduce animal copy/paste #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Cows and gulls are pretty much the same code with some minor differences.  
Maybe there should be an Animal type so that all animals can share most of 
their code.  In fact, I wonder if there should be an animal package which could 
be included by some hypothetical animalgen program that places animals in the 
world.

Original issue reported on code.google.com by burns.ethan@gmail.com on 22 Nov 2012 at 2:18

GoogleCodeExporter commented 9 years ago

Original comment by burns.ethan@gmail.com on 22 Nov 2012 at 2:19

GoogleCodeExporter commented 9 years ago

Original comment by burns.ethan@gmail.com on 22 Nov 2012 at 2:19

GoogleCodeExporter commented 9 years ago
Sounds fine to me. I bet almost every parameter (e.g. terrain scaling) could go 
into the JSON files. I'm sure there will be special cases in the future, but 
this is probably good enough for most things.

Original comment by Mcco...@gmail.com on 22 Nov 2012 at 11:31

GoogleCodeExporter commented 9 years ago

Original comment by Mcco...@gmail.com on 25 Nov 2012 at 12:27

GoogleCodeExporter commented 9 years ago
Calling this GEFN (good enough for now)

Original comment by Mcco...@gmail.com on 25 Nov 2012 at 1:56

GoogleCodeExporter commented 9 years ago
Agreed

Original comment by burns.ethan@gmail.com on 25 Nov 2012 at 1:57