Generally getting assets off disk and into memory.

learn more… | top users | synonyms

5
votes
1answer
312 views

Loading content (meshes, textures, sounds) in the background

In my game, I am aiming for a continuous world, that is, a world where you can go anywhere without breaking the immersion through load times and "virtual seams". My world is broken up into regions, ...
4
votes
1answer
368 views

Clever way to do the Sonic 2 Bonus Stage effect saving memory

What would be a good way to save memory to achieve an effect like this one? http://www.youtube.com/watch?v=K89LkvL9JZ0 We're using pre-rendered 3D. I'm asking this because this naive approach of ...
0
votes
2answers
301 views

How to get this wavefront .obj data onto the frustum?

I've finally figured out how to get the data from a .obj file and store the vertex positions x,y,z into a structure called Points with members x y z which are of type float. I want to know how to get ...
2
votes
1answer
395 views

Loading files during run time

I made a content pipeline extension (using this tutorial) in XNA 4.0 game. I altered some aspects, so it serves my need better, but the basic idea still applies. Now I want to go a step further and ...
0
votes
1answer
537 views

Android Loading Screen: How do I use a stack to load elements?

I have some problems with figuring out what value I should put in the function: int value_needed_to_figure_out = X; ProgressBar.incrementProgressBy(value_needed_to_figure_out); I've been ...
2
votes
5answers
2k views

Xna Loading Screens

I'm making a 2D XNA game. I'd like to implement loading screens when stuff has to load for a while. Like when I login to an account, connect to the server, and generate worlds. I'm pretty sure it ...
2
votes
1answer
615 views

Loading SpriteFont through a different class than Game.cs

I am trying to load up a single SpriteFont to print some debug information. In our current game, we load up both Textures and Music through a ResourceManager. They are both loaded with a filestream, ...
2
votes
1answer
577 views

How do I make a progress bar with letters that get “filled in”?

I want to make a progress bar made of text! I have two images: One with the text in gray, the other coloured: As my game is loading, I want the letters to "fill up" with color: They would start ...
1
vote
1answer
3k views

Using NinePatch in libGDX for Loading Bar

I am trying to create images for a loading bar in libGDX. I came across the NinePatch class and I was hoping to use it for this loading bar, since stretching images with a plain Texture or Sprite ...
0
votes
2answers
2k views

As3 Random movieclips from an array to the stage

For a game with orders and clients I was trying to create the following situation: Every half minute, a client should appear at the counter. In this case I have an array with 4 movieclips (4 ...
8
votes
3answers
471 views

Pre game loading time vs. in game loading time

I'm developing a game in which a random maze is included. There are some AI creatures, lurking the maze. And I want them to go in some path according to the mazes shape. Now there are two ...
4
votes
1answer
5k views

Using the AssetManager in LibGDX

I am trying to use the AssetManager class in LibGDX and I understand how it works but I am trying to implement a loading screen. I have followed the AssetManagerTest.java file here, but I am having a ...
3
votes
4answers
1k views

Why does using multithreading during my load screen increase my load times? [closed]

OK, I added a loading screen to my game, and in order for the game able to update and show a loading screen and load stuff in the background I came to the concludsion that I needed to host the loading ...
1
vote
1answer
2k views

How to create a splash (loading) screen in cocos2d for Android?

How to create a splash (loading) screen in cocos2d for Android? I need a loading screen that shows my app name and after that the next scene will show automatically. Thanks
0
votes
2answers
608 views

Load XNA Content Type from File

I'm writing my own level editor and recently got the exporter working so now I'm working on the importer. My save file structure looks essentially like this: [ObjectType] Property=Value ...
8
votes
5answers
7k views

What is the logic behind the 'Loading' scenes in games?

I'm making my first game, it's a tower defense type of game, using Unity game engine and taking Fieldrunners as a reference. I would like to know more about the functionality behind 'Loading' scenes ...
33
votes
2answers
2k views

How does a game without loading times work?

We're talking about an expansive game that is not divided in levels or checkpoints. A 3D adventure, for example.
1
vote
2answers
725 views

Game Loop: Should resources be initialized in the game loop or in the respective classes? (both?)

For example, lets say we have an enemy class in my Android game project. I am initializing the enemy bitmap to be used with certain sprites in my game loops init. I am then calling the respective ...
1
vote
1answer
299 views

Loading tilemaps, entering buildings, chopping big maps

I´ve got some questions regarding the loading of tile maps. I´ve got a world with several buildings in it that guide the user to a new map. This map can be a small room, but also a big area. To change ...
9
votes
1answer
585 views

C++ Model loading API?

I'm looking for the most capable C++ model loading API. So far I've found tons of ply, obj, and other such file format loaders. But the libraries I've found tend to load just one model type, and ...
6
votes
1answer
2k views

Are there any open source Source engine VTX/VVD viewers?

I've been playing with loading and displaying Source Engine models (TF2, specifically) and have had mild success, but there are some aspects of it that are eluding me still. I've been primarily ...
4
votes
3answers
581 views

Zelda LttP (Super Nintendo) room changes?

I'm trying to make a tile-world adventure game on iOS similar to Zelda Link to the Past on SNES, and one issue I've run into is having my camera move beyond walls revealing the rooms on the other ...
3
votes
2answers
608 views

XNA: My bullets lag the game the first time they're fired, but not after

I'm working on a SpaceWar-esque project to get comfortable with XNA. I have a Ship DrawableGameComponent and a Bullet DrawableGameComponent. The player's Ship is created at the start of the game, and ...
-2
votes
1answer
267 views

Problem while loading an image for a texture

I have built a slideshow in slimDX and is scrolling a text at the bottom of the images. But I am running through a problem that when my new image is loaded in by the help of Texture.FromFile() ...
5
votes
2answers
211 views

Switching between levels, re-initialize existing structure or create new one?

This is something I've been wondering for quite a while. When building games that exist out of multiple levels (platformers, shmups etc) what is the prefered method to switch between the levels? ...
5
votes
2answers
119 views

File caching on the PC

Is it a good move to disable windows' file-caching capabilities (via I/O completion ports) for resource loading in a game environment? Most games will do their own resource management and caching ...
6
votes
1answer
376 views

What is the general strategy to pre-load game data(entities/map)

I'm new to games programming and am wondering what tactics games use to pre-load entity and map data. Will a game initialise with the fundamental map data stored in memory?
5
votes
3answers
4k views

When should a bullet texture be loaded in XNA?

I'm making a SpaceWar!-esque game using XNA. I want to limit my ships to 5 active bullets at any time. I have a Bullet DrawableGameComponent and a Ship DrawableGameComponent. My Ship has an array of 5 ...
7
votes
7answers
5k views

Library to load images into textures, Linux, C and OpenGl

I am looking for simple, self-contained C library for Linux to load images from files into OpenGL textures. The licence should be quite liberal: zlib, bsd, mit or something. I have found SOIL, however ...
1
vote
0answers
243 views

Making a game preloader (Flash) [duplicate]

Possible Duplicate: How do you create a single/internal pre-loader for a Flash game written using Flex? Hi guys, Im trying to make a preloader in a Flash game. Thing is, I need some ...
3
votes
3answers
3k views

OpenGL and 3ds model loading: Path of least resistance?

Hey guys, im working on a final class project for a graphics class, and me and a teammate are making a simple 3d tower defense game. We're currently planning on using 3ds models and drawing them ...
0
votes
1answer
274 views

Distinction between constant and changeable game objects in save/load game?

Do you distinguish constant and changeable game objects when you save/load game? If yes, how do you do it? If not to save constant objects (for example, mountains and trees), we optimize memory usage ...
15
votes
4answers
3k views

How can I write a Save/Load system for my game?

I'm trying to figure out a way to write a save/load system for my game in C++. As of right now, I'm doing it all using binary flags. Anyone got a clue on how to do it another way? I don't mind using ...
6
votes
2answers
692 views

How do I load chunks of data from an assest manager during a loading screen?

I'm developing an Android game. Basically I want to pre-load all graphics/sounds when the app is first loaded. But I also would like to show a progress bar as this is happening. Here is a snippet ...
5
votes
2answers
709 views

How do I prevent getting an access denied loading a file in XNA, when I have the application running in the program files directory (in Windows 7)?

I'm creating an app in XNA. I'm trying to load a custom save file. I named the file with my own custom extension. It's an XML file serialized with the DataContractSerializer. I've tried several ...
3
votes
3answers
382 views

Directory paths for resources and assets

If I have a file stucture for my final, released game something like: Main folder Media Images Other assets Sounds Executable List item And a different one for my 'in development' project, ...
18
votes
8answers
3k views

What all should be happening during the “Loading” screen?

Do I just need to be creating instances of all of my graphics into memory that are loaded from file? What is the best way to handle this? Do I just need some sort of assets manager that creates ...