Results 1 to 3 of 3

Thread: Art Generation?

  1. #1
    exonaut is offline Member
    Join Date
    Mar 2013
    Location
    USA
    Posts
    28
    Rep Power
    0

    Default Art Generation?

    I've been really interested in attempting to make a program that generates sprites for games like the one here: Evolving random sprite generator | Ludum Dare I'm not sure what algorithms to learn or even how to begin as I've looked at the source of that tool and really don't understand it. Has anyone done anything like this before or any ideas/articles/tutorials?

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default Re: Art Generation?

    Step one: Figure out what kind of sprites you want to make. Should they be completely random shapes? Symmetrical? Should they have sections? Something else?

    Step two: Parameterize as much as you can. What I mean by that is, don't hard-code the shape, the symmetry, the sections, the colors, etc. Put every possible "attribute" of a sprite into a variable.

    Step three: Generate sprites by passing random numbers into those parameters. Figure out valid ranges for each parameter.

    Step four: Create another program that takes a "parent" sprite and creates a bunch of "child" sprites by slightly changing the parameters of the parent sprite instead of creating completely random values.

    Step five: Hook it all together.

    There are a million ways to do each step, and the scope of this project can range from "pretty trivial" to "doctorate research", so it's easy to get lost. Start with the basics and work your way up, and if you get stuck, post an MCVE that shows us the exact step you're stuck on.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    exonaut is offline Member
    Join Date
    Mar 2013
    Location
    USA
    Posts
    28
    Rep Power
    0

    Default Re: Art Generation?

    Quote Originally Posted by KevinWorkman View Post
    Step one: Figure out what kind of sprites you want to make. Should they be completely random shapes? Symmetrical? Should they have sections? Something else?

    Step two: Parameterize as much as you can. What I mean by that is, don't hard-code the shape, the symmetry, the sections, the colors, etc. Put every possible "attribute" of a sprite into a variable.

    Step three: Generate sprites by passing random numbers into those parameters. Figure out valid ranges for each parameter.

    Step four: Create another program that takes a "parent" sprite and creates a bunch of "child" sprites by slightly changing the parameters of the parent sprite instead of creating completely random values.

    Step five: Hook it all together.

    There are a million ways to do each step, and the scope of this project can range from "pretty trivial" to "doctorate research", so it's easy to get lost. Start with the basics and work your way up, and if you get stuck, post an MCVE that shows us the exact step you're stuck on.
    Thanks this answer REALLY helped me! I'll be sure to post the program as I progress along and ask for tips/help if I need it.

Similar Threads

  1. World Generation?
    By Alerhau in forum New To Java
    Replies: 11
    Last Post: 08-14-2011, 05:50 PM
  2. Validate XML against XSD during generation
    By mandarkatdare in forum XML
    Replies: 0
    Last Post: 05-29-2010, 11:57 AM
  3. War file generation
    By rummy in forum New To Java
    Replies: 1
    Last Post: 02-08-2010, 01:57 PM
  4. Report generation
    By anilkumar_vist in forum Advanced Java
    Replies: 1
    Last Post: 12-14-2009, 01:26 PM
  5. String generation
    By codingisfun22 in forum Advanced Java
    Replies: 3
    Last Post: 12-03-2007, 06:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •