Ahh All I had to do is load the textures outside of the gameloop.
@cookedbird, Yes I did
Type: Posts; User: Poppit
Ahh All I had to do is load the textures outside of the gameloop.
@cookedbird, Yes I did
I'm sorry, I confused you. this is used for java, which I thought you were programming in. You can get rid of it.
Haha good job.
Try and put your state into a switch statement and see if that solves it
switch(state){
case 1:
drawMenu() // Whatever you called it
break;
case 2:
drawTriangle() // Draw the triangle...
I tried to recreate your problem and couldn't. Could you post your whole loop please?
Is your state system being updated properly?
For example, during the loop are you using something like getState(), or checkState()?
No problem, hope you can figure it out. PM if you need any more help or once its done post it on the forums or send it to me.
Well you need a class to keep track of the players score, so it would probably be something like this
public class Score{
/**
* Holds the players score
*/
int score;
/**
Just tell it to add the score if the ball is within the hitbox of the brick.
if(ball.getHitBox() == brick.getHitBox()){
brick.break();
score.add(100)
}
Something like...
Hello,
I'm making a tile based game, and the Textures for the Tiles are 16x16. Whenever I try to load the Texture so it can be rendered,
I get this error:
java.io.IOException: Attempt to...