Search Unity

2D RPG - Items, inventories and shops

Discussion in 'Works In Progress - Archive' started by returnString, Jan 22, 2012.

  1. returnString

    returnString

    Joined:
    Jul 10, 2010
    Posts:
    248
    A rather brief demo of some systems I wrote (read: stole from old code and cleaned up) last night.

    So far, there are three main features right now:

    • Consumable items (eg, potions)
    • Inventories
    • Shops

    Press E to interact with the shop and the dispenser, and press Tab to open your inventory.

    http://dl.dropbox.com/u/53949696/Dev/RPG/WebPlayer/WebPlayer.html

     
  2. Warrior1424

    Warrior1424

    Joined:
    Sep 30, 2010
    Posts:
    984
    Me gusta
     
  3. returnString

    returnString

    Joined:
    Jul 10, 2010
    Posts:
    248
    Updated with infinite item stacks for shops (indicated by Supply in the name), useful when there are small items like health potions and whatnot that you want the player to be able to buy lots of. In this case, the shop has an infinite supply of rotten food. Nice, I know.
     
  4. doomprodigy

    doomprodigy

    Joined:
    Dec 12, 2010
    Posts:
    87
    I really like the way you have done this. Any chance of code? I'm interested.
    Very Smooth.
     
  5. returnString

    returnString

    Joined:
    Jul 10, 2010
    Posts:
    248
    I need to decouple a lot of things first, but yes I'll probably stick the code up on GitHub once that's done. :)
     
  6. doomprodigy

    doomprodigy

    Joined:
    Dec 12, 2010
    Posts:
    87
    Ah awesome, I am looking forward to it.