I try write simple game and got many troubles:
1 ProgerssBar? I try use LoadingGameState but it's always on left-down position, and not method for set it up
2 Particles? i want draw on texture some text and then it go away (up) but when i'm draw it texture size not quad it's not big problem (create quad texture, centered text and centered particle)
3 Alpha. I create curcor on terrain and setup alpha texture all look good if look from up, but in down position cursor disapear (if another model on upper position)
necromancer15 said:
I try write simple game :) and got many troubles:
1 ProgerssBar? I try use LoadingGameState but it's always on left-down position, and not method for set it up
Not sure what you mean? The LoadingGameState isn't working properly in your game?
yes it's placed in left-down coner on screen. here is code:
GameStateManager state = GameStateManager.create();
private void doUpdate() {
timer.update();
tpf = timer.getTimePerFrame();
org.lwjgl.opengl.Display.update();
readBufferedMouse();
readBufferedKeyboard();
state.update(this.tpf);
rootNode.updateGeometricState(this.tpf, true);
}
private void doRender() {
renderer.clearBuffers();
renderer.draw(rootNode);
desk.display();
state.render(tpf);
renderer.displayBackBuffer();
try {
org.lwjgl.opengl.Display.swapBuffers();
} catch (LWJGLException e) {
e.printStackTrace();
}
}
and place where loader created:
private void startTurn() {
LoadingGameState progressBar = new LoadingGameState(40);
state.attachChild(progressBar);
progressBar.setActive(true);
}
Loader can be implements using Fenggui
btw may be some inproved you can do? i'm mean
some type we need rectangle on screen with 2d screen coord with texture (as particle but not depend on camera position)
if you asK: Why i not use AWT in my game? Hmmm give me example with transparent windows
so now what i needed its particle with random texture(text) not critical but…
if i be lucky i post first screens of game after 15 december
now i work with turn base system looks hard
realtime more simply but more calculation and traffic harder