Forums

OverviewV-Play 2 Support (Qt 5) › How do multiresolution spritesheet work?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8036

    Adderly

    Hey Vplay people,

     

    I’ve been playing around with the multiresolution asset generator, but it is mainly targeted to animations.
    And after the spritesheet is generated there is no other way than the programatic way to know the size of the frames.

    What if i want to have an spritesheet for any king of images besides animations, there is no clear way (if not documented).

     

    What i think is best to deal with this, the spritesheet should have some kind of .json/xml metadata file, to get the specified image in a multiresolution independent way.

    spritesheet{

    name:”image.png”,
    children:[

    {

    “name”:”background”,

    “sd_rect”:[10,10,20,20],

    “hd_rect”:[10,10,25,25],

    “hd2_rect”:[10,10,35,35]
    }

    ]

    }

     

    And then

    ImageButton
    {  
      imageSource: spritesheet.get("background")
    }

     

    I think spritesheet should be that flexible. If there is a way to do it right now, let me know.
    And that implementation could give some flexibility, to the AnimatedSprites too

     

    • This topic was modified 3 years, 11 months ago.
    #8043

    Christian
    V-Play Team

    Hi Adderly,

    there is no need to use sprite sheets in V-Play 2 and Qt 5, because they are generated on the fly at runtime. For single images, just put them in the respective +hd and +hd2 folders and use a MultiResolutionImage. For examples, you can have a look at our demo games.

    Cheers, Chris

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support