हिंदी वेबसाइट
FREE SHIPPING on all orders above ₹500

Libgdx Texture Packer ((exclusive)) ●

raw-assets/player/ ├── idle/ │ ├── frame1.png │ └── frame2.png └── run/ ├── run01.png └── run02.png You can access atlas.findRegion("idle/frame1") or atlas.findRegions("run") .

// (input directory, output directory, atlas file name) TexturePacker.process(settings, "raw-assets/player", "android/assets/", "player"); libgdx texture packer

Run this main method every time you change your assets. Once you have player.atlas and player.png in your assets folder, load and use them: raw-assets/player/ ├── idle/ │ ├── frame1

Add the dependency to your core/build.gradle : atlas file name) TexturePacker.process(settings

// 1. Load the atlas TextureAtlas atlas = new TextureAtlas(Gdx.files.internal("player.atlas")); // 2. Get a single region (a sprite from the atlas) TextureRegion playerStand = atlas.findRegion("player_idle_01");

3.00 / 5   👉 2 Ratings
         

Please enter your comment here

Related Movies

Cast: Eileen Daly, Christopher Adamson, Jonathan Coote, Kevin Howarth, David Warbeck, Heidi James, Isabel Brook, Louisa Moore, Grahame Wood, Jennifer Guy
Read More...

₹ 99

  Sold Out  

  

Cast: Wendy Anderson, Scott Bairstow, Ian Black, Brian Dueck, Mike Fleischhaker, Brian Hlushko, Shannon Jardine, Chris Jericho, Neil Krause, Joseph Lawrence, Terrance Leigh,
Read More...

₹ 69

  Sold Out  

  

Cast: Denzel Washington, John Travolta, John Turturro, Luis Guzman, Michael Rispoli, James Gandolfini
Read More...

₹ 99

  Sold Out  

  

Cast: Yigal Naor, Said Faraj, Faycal Attougui, Aymen Hamdouchi, Matt Damon, Nicoye Banks, Jerry Della Salla, Sean Huze, Michael J. Dwyer
Read More...

₹ 99

  Sold Out  

  

Cast: Mark Wahlberg, Taylor Kitsch, Emile Hirsch, Ben Foster, Yousuf Azami, Ali Suliman, Eric Bana, Alexander Ludwig, Rich Ting, Dan Bilzerian, Jerry Ferrara
Read More...

₹ 149

  Sold Out  

  

Cast: Heidi Fleiss Damian, Delgado Phoebe, Falconer Sean Galuszka, Chase Hoyt, Matthew Christopher, Brittney Boardman, Joshua Pearlson, Mia Riverton, Layton Matthews, Dazza Del
Read More...

₹ 99

  Sold Out  

  

Cast: Nikki Deloach, Cengiz Bozkurt, Demet Akbag, Neil Hopkins, Courtney Vye, Sebnem Donmez, Ertan Saban, Guven Kirac, Charles Winkler, Selma Ergec, Keegan Connor
Read More...

₹ 199

  Sold Out  

  

Cast: Corey Sevier, Tyler Johnston, Kailin See, Kim Poirier, Dina Meyer, Tobin Bell, Reamonn Joshee, Ryan Ash, Brad Goddard, Michelle Molineux, Lindsay Maxwell,
Read More...

₹ 99

  Sold Out  

  

Cast: James McAvoy, Laurence Belcher, Michael Fassbender, Bill Milner, Kevin Bacon, Rose Byrne, Jennifer Lawrence, Beth Goddard, Morgan Lily, Oliver Platt, Alex Gonzalez,
Read More...

₹ 499

  Sold Out  

  

Cast: Mickey Rourke, Robert De Niro, Lisa Bonet, Charlotte Rampling, Stocker Fontelieu, Brownie McGhee, Michael Higgins, Elizabeth Whitcraft, Eliott Keener, Charles Gordone, Dann
Read More...

₹ 31

  Sold Out  

  

Cast: Russel Crowe, Joaquin Phoenix, Connie Nielsen, Oliver Reed, Derek Jacobi, Djimon Hounsou, Richard Harris
Read More...

₹ 99

  Sold Out  

  

Cast: Brendan Fraser, Rachel Weisz, John Hannah, Arnold Vosloo, Jonathan Hyde, Kevin J. O. Connor
Read More...

₹ 99

  Sold Out  

  

FaceBook Twitter Pinterest Share to Tumblr

raw-assets/player/ ├── idle/ │ ├── frame1.png │ └── frame2.png └── run/ ├── run01.png └── run02.png You can access atlas.findRegion("idle/frame1") or atlas.findRegions("run") .

// (input directory, output directory, atlas file name) TexturePacker.process(settings, "raw-assets/player", "android/assets/", "player");

Run this main method every time you change your assets. Once you have player.atlas and player.png in your assets folder, load and use them:

Add the dependency to your core/build.gradle :

// 1. Load the atlas TextureAtlas atlas = new TextureAtlas(Gdx.files.internal("player.atlas")); // 2. Get a single region (a sprite from the atlas) TextureRegion playerStand = atlas.findRegion("player_idle_01");