Questions tagged [asset-management]

94 questions
0
votes
1 answer

Unable to draw loading screen in libGDX

I'm currently trying to implement a loading screen for a game. private enum STATE { LOADING, START_MENU, PLAYING, PAUSE, GAME_OVER } private STATE state = STATE.LOADING; These are the game states, so it starts with LOADING, so it can run the…
Seth Falco
  • 313
  • 6
  • 22
0
votes
1 answer

LibGDX static AssetManager

I am having some trouble figuring out the proper use of libGDX's AssetManager class. From what I understand, you are never supposed to create a static instance of an AssetManager. The alternative that people suggested was to pass around the…
Matthew Tory
  • 1,306
  • 2
  • 16
  • 30
0
votes
3 answers

Making Asset Manager singleton

I am currently using the book "Learning LibGdx Game Developement, Second Edition" as a reference book while programming and I stumbled over their implementation of an Asset Managing class. They implement it using a singleton pattern, something I…
The_Blog
  • 155
  • 1
  • 12
0
votes
2 answers

Computing quarterly total returns from daily data

I have an Excel file in which I am trying to create a daily report for the returns of an investment fund. The data I am aggregating in the spreadsheet is daily, but I need to be able to compute quarter-to-date returns. Therefore, I need a way for…
0
votes
0 answers

libGDX does assetmanager dispose loaded textures?

I'm trying to read through his tutorial. However I never saw how the textures were disposed. Does the assetmanager dispose the loaded texture by the dispose() call?
user4959397
0
votes
1 answer

Libgdx - Why is one AssetManager running and another not

I have set up two static instances of AssetManager One for 2d assets and one for 3d assets. The 3d one works fine, however, the 2d one doesn't. It seems that it is not calling manager.update(). As shown on the wiki, the update function is called…
Fish
  • 1,689
  • 1
  • 18
  • 28
0
votes
2 answers

Generic map objects

I am trying to create an Asset Manager (Much like the one that is provided in the Libgdx library) for SFML in C++. But I am running into the age old problem of templates being one of the worst parts of C++. I am trying to have a map object hold…
BigBerger
  • 1,765
  • 4
  • 23
  • 43
0
votes
0 answers

Js canvas manipulation with asset manager

I want to create a basic image js manipulation problem. Well not that basic. My requirements are Image loaded after clicked by user User can edit this image(contrast invert filter rotation) User can use a dialog that displays some other smaller…
Apostolos
  • 7,763
  • 17
  • 80
  • 150
0
votes
2 answers

libgdx AssetManager.finishLoading() not working

I've tried to implement the AssetManager into my project. Now i can't figure out what i'm doing wrong with the AssetManager. I've googled, and tried different things. But it seems that no one else have ever experienced this kind of problem with the…
GavriYashar
  • 345
  • 1
  • 3
  • 10
0
votes
1 answer

Libgdx AssetManager works in eclipse but not on a runnable jar

The code looks something like this: if (Gdx.app.getType() == ApplicationType.Android) path = "data/images/"; if (Gdx.app.getType() == ApplicationType.Desktop) path = "./bin/data/images"; (if i use "data/images/" for Desktop, i get a…
0
votes
2 answers

nullPointer Exception on Asset manager

I have this function in my class Activity : private Bitmap getBitmapFromAsset(String strName) { AssetManager assetManager =this.getAssets(); InputStream istr = null; try { istr = assetManager.open(strName); } catch…
STNHZ
  • 23
  • 1
  • 5
0
votes
0 answers

LIBGDX: Where is AssetManager.isLoaded(AssetDescriptor)? Why there is none?

I know I can use AssetManager.isLoaded(AssetDescriptor.filename, AssetDescriptor.type). But, why there is no AssetManager.isLoaded(AssetDescriptor)method?
coffeenet
  • 553
  • 1
  • 7
  • 17
0
votes
1 answer

I look for an explanation of libgdx's asset manager

I would like to create an asset-manager. I know the asset-manager from "libgdx" but I don't wanna use libgdx because I am just programming for studying purposes. So I wanna understand my entire program and write everything from scratch. Now I need…
Peter Panne
  • 475
  • 1
  • 5
  • 15
0
votes
1 answer

Android, reading in multiline text file groups the text together, need assistance

I have a working filereader for a text file in my Raw Dir. The user should see the text file in the same format as I have formatted it in word but when the application is played, the text file is tightly grouped together with no paragraphs. This is…
user3173525
0
votes
1 answer

Advice on what I should be in making an application that reads multiple .txt files

This is not a coding problem question, I just need general advice. I am making an application that populates a listfragment with multiple text files. What I want is for the user to select the intended article they wish to read and said article will…
user3173525