Gideros Mobile Game Development by Desconocido

Gideros Mobile Game Development by Desconocido

Author:Desconocido
Format: epub


Using texture packs inside project

So now when we have our textures packed, how do we use them in our Gideros project? First we need to create the texturepacks directory in Gideros Studio and add both the files (LevelScene.png and LevelScene.txt) to this folder.

Then let's load them using the TexturePack class and save it as self.g, an instance property of our scene instance. We can do that by creating an instance of the TexturePack class and providing path to file with information about texture and path to file, which is a texture pack itself. We also provide the third parameter as true, to indicate that we want to smooth our textures when scaling. Add the following code line to the LevelScene:init() method:

self.g = TexturePack.new("texturepacks/LevelScene.txt", "texturepacks/LevelScene.png", true)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Whisky: Malt Whiskies of Scotland (Collins Little Books) by dominic roskrow(55888)
What's Done in Darkness by Kayla Perrin(26506)
Shot Through the Heart: DI Grace Fisher 2 by Isabelle Grey(18992)
The Fifty Shades Trilogy & Grey by E L James(18939)
Shot Through the Heart by Mercy Celeste(18871)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 10 by Isuna Hasekura and Jyuu Ayakura(16964)
Python GUI Applications using PyQt5 : The hands-on guide to build apps with Python by Verdugo Leire(16854)
Peren F. Statistics for Business and Economics...Essential Formulas 3ed 2025 by Unknown(16787)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 03 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16679)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 01 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16304)
The Subtle Art of Not Giving a F*ck by Mark Manson(14242)
The 3rd Cycle of the Betrayed Series Collection: Extremely Controversial Historical Thrillers (Betrayed Series Boxed set) by McCray Carolyn(14057)
Stepbrother Stories 2 - 21 Taboo Story Collection (Brother Sister Stepbrother Stepsister Taboo Pseudo Incest Family Virgin Creampie Pregnant Forced Pregnancy Breeding) by Roxi Harding(13393)
Scorched Earth by Nick Kyme(12702)
Drei Generationen auf dem Jakobsweg by Stein Pia(10906)
Suna by Ziefle Pia(10838)
Scythe by Neal Shusterman(10254)
International Relations from the Global South; Worlds of Difference; First Edition by Arlene B. Tickner & Karen Smith(9467)
Successful Proposal Strategies for Small Businesses: Using Knowledge Management ot Win Govenment, Private Sector, and International Contracts 3rd Edition by Robert Frey(9304)
This is Going to Hurt by Adam Kay(9078)