HELLO,
am developpement the mini game of arcoide on j2ME but i don't know any web site talk about the programming the game on the J2ME please if u know some url of the web talk about the begining developpement the game of the type arcoide tell me
Thanks
17 4348
Did you google "java game development"?
If not you should start there.
thnaks if u know some link about the game call Arcade such as this picture in joint please help me
We will program an applet in which a ball is moving from the left to the right hand side. I know this is nothing BIG but if you want to learn how to program games it is maybe the most important thing to understand how to animate objects!
At the beginning we have to write our basic structure of an applet again but we will add two little things. Our applet has to implement the interface Runnable and the corrosponding method run() to animate a object. The structure of the applet should look like this: -
import java.applet.*;
-
import java.awt.*;
-
-
public class BallApplet extends Applet implements Runnable
-
{
-
public void init() { }
-
-
public void start() { }
-
-
public void stop() { }
-
-
public void destroy() { }
-
-
public void run () { }
-
-
public void paint (Graphics g) { }
-
-
-
}
More information here: http://www.javacooperation.gmxhome.d...wegungEng.html
Original: http://forums.techarena.in/software-...nt/1252647.htm
Please i want exemple some the picture please help
You are not going to find an example. You need to learn the basics.
Try the following link and do a bit of exploring. If you have specific problems that you need help with respond. Otherwise to don't bother posting another remark asking for generalized help. There are other forums for generalized help. http://www.google.com/search?hl=en&s...=f&oq=&aqi=g10
hello ,
i want to move the racket of the top to the right some
That's a racket? It looks like a piece of lawn. Are you trying to bounce steel ball bearings off of grass? I don't think a ball bearing would bounce off of sod like that.
please help me i am very nerve with this
No, you are not asking for help, you are asking for a whole solution. What you want is someone to do the work for you so you can copy it to whatever application you are working on. When you say "I need an example" what you are really saying is "please someone write the code in a way that I direct you to do it so that I can then use that code in my project and take all the credit".
If you really want some help, copy your source code to the forum and highlight where the errors are occurring. Explain what you want it to do, explain what you *see* it doing.
thank you, juste i want to resolve with me this probleme i have a project that some of the game arcade but i want to work the game with two bouton not with 4 bouton
see my code : - protected void keyReleased(int keyCode)
-
{
-
int actionKey = getGameAction(keyCode);
-
if(actionKey == 5)
-
{
-
j2mill_wall _tmp = wall;
-
wall.setDir(1);
-
}
-
if(actionKey == 2)
-
{
-
j2mill_wall _tmp1 = wall;
-
wall.setDir(2);
-
}
-
if(actionKey == 6)
-
{
-
j2mill_wall _tmp2 = wall;
-
wall.setDir(4);
-
}
-
if(actionKey == 1)
-
{
-
j2mill_wall _tmp3 = wall;
-
wall.setDir(8);
-
}
-
}
-
}
-
and the class of direction - public class j2mill_wall
-
{
-
-
private int dir;
-
public static final int DIR_NULL = 0;
-
public static final int DIR_RIGHT = 1;
-
public static final int DIR_LEFT = 2;
-
public static final int DIR_DOWN = 4;
-
public static final int DIR_UP = 8;
-
-
public j2mill_wall()
-
{
-
dir = 0;
-
}
-
-
public void setDir(int direction)
-
{
-
dir ^= direction;
-
}
-
-
public void clearDir()
-
{
-
dir = 0;
-
}
-
-
public boolean getDir(int direction)
-
{
-
int otherdir = 0;
-
if(direction == 1)
-
{
-
otherdir = 2;
-
}
-
if(direction == 2)
-
{
-
otherdir = 1;
-
}
-
if(direction == 8)
-
{
-
otherdir = 4;
-
}
-
if(direction == 4)
-
{
-
otherdir = 8;
-
}
-
return (dir & (direction | otherdir)) == direction;
-
}
-
}
thank you redson
If you only want two buttons then combine your if statements in keyReleased(). Then you can do something like: -
if (actionkey is 2 || actionkey is 5)
-
{
-
if wall.getDir is 1
-
wall.setDir(2)
-
if wall.getDir is 2
-
wall.setDir(1)
-
}
-
You are just flipping between states that is all. Maybe some java guys can give you the correct code.
thank you but i don't resolve my probleme i change the keypressed but the game not work good and i return on neatbeans erreur :Uncaught exception: java.lang.NullPointerException: 0
at j2mill.j2mill_canvas.logic(j2mill_canvas.java:285)
at j2mill.j2mill_canvas.run(j2mill_canvas.java:147)
at java.lang.Thread.run(), bci=11
and my code - protected void keyPressed(int keyCode)
-
{
-
int actionKey = getGameAction(keyCode);
-
if(actionKey == 5 || actionKey == 2)
-
{
-
if (wall.getDir(1));
-
wall.setDir(2);
-
-
if (wall.getDir(2));
-
wall.setDir(1);
-
}
-
-
if(waittime == 0)
-
{
-
waiting = false;
-
}
-
}
-
-
-
protected void keyReleased(int keyCode)
-
{
-
int actionKey = getGameAction(keyCode);
-
if(actionKey == 5)
-
{
-
j2mill_wall _tmp = wall;
-
wall.setDir(1);
-
}
-
if(actionKey == 2)
-
{
-
j2mill_wall _tmp1 = wall;
-
wall.setDir(2);
-
}
-
if(actionKey == 6)
-
{
-
j2mill_wall _tmp2 = wall;
-
wall.setDir(4);
-
}
-
if(actionKey == 1)
-
{
-
j2mill_wall _tmp3 = wall;
-
wall.setDir(8);
-
}
-
}
-
thanks
When is keypressed and keyreleased called? Your keyreleased call is clobbering the data you handled on keypressed. Do you use a debugger? If not you need to start because that will help you with a null pointer exception.
hello am lost mauch the time on this please if you can help me tell me how can resolve my probleme am debbugin and he done this message
Probleme with bar1
[WARN] [rms ] javacall_file_open: _wopen failed for: C:\Users\kamar\javame-sdk\3.0\work\0\appdb\00000002icons#16#bar2_6PNG.tm p
Probleme with bar1
[WARN] [rms ] javacall_file_open: _wopen failed for: C:\Users\kamar\javame-sdk\3.0\work\0\appdb\00000002icons2#16#bar11_6PNG. tmp
Probleme with bar11
[WARN] [rms ] javacall_file_open: _wopen failed for: C:\Users\kamar\javame-sdk\3.0\work\0\appdb\00000002icons2#16#bar22_6PNG. tmp
Probleme with bar22
thank you
I'm not trying to be rude or anything, I'm asking an honest question, because I can tell by your posts that your English skills are not very good. With these warning messages can you read them and understand them?
The warning messages are pretty clear to me, but that is because I am a native English speaker.
The warning is telling you that it cannot find the png file that you included in your project. You need to make sure your call to _wopen has the correct path for the file.
If you are having trouble with the messages that javac is telling you about, you might want to see if there is some kind of translation software to use, or see if javac will output it's messages in French or Tagalog or whatever.
hello ,
can you give for you my project and reslove me juste le probleme the two bouton
that's my probleme so
yes or no
thanks
please any one can help me
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Samar Hossam |
last post by:
Hello,
I am developing an application for PocketPCs and I faced some
problems, when trying to use the Infrared port to send some data to
another device.
I kindly want to ask you for help.
...
|
by: Timinator |
last post by:
Are there any newsgroups that are specific to J2ME development for Palm and
smartphones?
Tim
--
======================================
Redtiminator@binaryREDsage.com
"Get the red out to...
|
by: Tomislav |
last post by:
Hi!
I have 3 questions, so here they are:
1.I would like to make an aplicaton wich can run on GSM mobile phones -
SonyErricson k700 for instance. Is the J2ME what I am looking for?
2. Is...
|
by: dchoubey |
last post by:
hi,
wanna want to know how can i develop j2me two player game by using
gprs in which both players play symultaneosly.i develop a two player
game by using bluetooth in which both player can play at...
|
by: Choubey |
last post by:
hi,
wanna want to know how can i develop j2me two player game by using
gprs in which both players play symultaneosly.i develop a two player
game by using bluetooth in which both player can play at...
|
by: Nik Coughlin |
last post by:
Are there methods for manipulating images in JavaScript that would allow me
to write functions to rotate, skew, mask and resize images (bitmaps)?
The functions need to be fast enough for use in a...
|
by: slchslch |
last post by:
Hi all,
I have search through multiple forum to look for the respective solution for this problem but still i do not find any solution to this problem.
I have Samsung SGH-D520 on hand which...
|
by: saadkhan |
last post by:
I am new to J2ME development environment....I need to know how to detect available WIFI service(s). If someone can provide code then that will be so good for me..!!
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |