![]() |
im trying to make a new game but the code i have so far does not work i plz help
Code:
package com.mime.game; |
I need help and quick if you dont mind
|
there are more files and code if you need them. so just ask if you do
|
This isn't the correct forum. And three posts in two minutes is too many. Moving to Java forum.
What is the error you are having? You mentioned you are new at this but you have a GUI and threading in this. Are you familiar with the basics of java? |
i am fimiliar with the basics yes and im using eclipse. the problem is is that im at least trying to make somthing in the window i have made but the problem is is nothing appiers at all...
in case you need the other code Code:
package com.mime.game.graphics; |
even more code...
Code:
package com.mime.game.graphics; |
Okay, so lets look at what you are doing here.
In the main, you issue a game.start() which creates a new thread of this and issues a start command on the thread. The main thread is now returned to the main as the game thread issues a run. In this run, it's job is to loop while !running, but perform no actions. Since the game is running, this immediately stops this thread's run. This thread is now terminated. Complete control is now just the main thread, which is sitting idle on the main. The application is complete awaiting input for the gui. So if you are looking to make this do something, you'll need to write what it needs to do in the run method. You'll also likely need to write the entire paint method for the canvas. |
oh you mean like this:
Code:
package com.mime.game; |
| All times are GMT +1. The time now is 07:10 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.