New site about J2ME game programming and optimization

Hello!
I just wanted to tell you about a new J2ME development site
SupremeJ2ME found at
http://supremej2me.bambalam.se
It has a lot of useful guides and tips about mobile J2ME game development and optimization, a forum and information about the best J2ME tools.
Check it out!
cheers,
Cranky

J2ME Polish have licensing costs associated with it:
http://www.j2mepolish.org/licenses.html
As for Canvas VS GameCanvas:
GameCanvas is MIDP 2.0 and up, so depending which devices your app supports you might want to stick with Canvas. GameCanvas eases graphics flushing, but double buffering can be implemented on Canvas like so:
Image offscreen = isDoubleBuffered () ? null :
           Image.createImage (getWidth (), getHeight ());See http://www.developer.com/java/j2me/article.php/10934_1561591_8
section: Avoiding Flickering

Similar Messages

  • J2Me game programming plz help

    Helo everyone,
    I am working in j2me game programming plz if
    any one know how make image as small as possible
    in our game program.?
    I am using *.png format of image which is working well
    in game but my game size is very big so plz help me to get
    out of this problem
    Thank u
    Aman Gautam

    I solved the same problem by using indexed color images instead of true color.
    So, for example, if you have a colorful background you can convert it to a 256 color image.
    Depending on your specific image and the devices you'll see it on you may or may not notice the difference, but the file size is generally smaller.
    Then you can push further for smaller elements, like, say, a moving object like a pointer or a starship, you can reduce it to 60 or 30 colors, or even less.
    Another technique is to use tiles to build up the background instead of big images. With MIDP2.0 there's the TiledLayer, but you can implement the same with some code also on MIDP1.0 if backward compatibility is of concern.

  • J2ME game programming

    Helo everyone,
    I am working in j2me game programming plz if
    any one know how make image as small as possible
    in our game program.?
    I am using *.png format of image which is working well
    in game but my game size is very big so plz help me to get
    out of this problem
    Thank u
    Aman Gautam

    hi,
    if you want to do any kind of game programming in J2ME, i suppose you would require to use the Canvas class, well there are a few good resources.. try out
    www.billday.com
    www.javamobiles.com..
    that ought to get u started.
    cheerz
    ynkrish

  • Just published a new site to an FTP server and I got a 404 error message saying the site doesn't exist. When I retype the name of the site, I get a page from my hosting service saying this is the future home of [my site]. Any ideas?

    Just published a new site to an FTP server and I got a 404 error message saying the site doesn't exist. When I retype the name of the site, I get a page from my hosting service saying this is the future home of [my site]. Any ideas?

    Hi roddy,
    thanks for responding. I read your link, looked at my settings and they were all correct. I tried to do a republish and got this message: The requested URL /childrenandcaring/index.html was not found on this server.
    When I type the address in the address bar, I go to the site and the page says: This is the new site childrenandcaring.com
    Any other ideas?
    Suzanne

  • Create a new site collection in different farm and connect to different content database from decommissioned farm

    I wish to bring down a SharePoint farm1 and create a new site collection in an existing farm2 and connect the new site collection in farm2 to the content db in farm1.
    Is this possible and how should I do it?

    it is possible to copy/move a content database from one farm to another... so long as the NEW farm is at least as up-to-date (version/service packs/updates/hotfixes/etc) as the OLD farm.
    you can move a site collection into its own content database.
    hopefully that answers your question.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Is there any site about Apple`s softwares and interface projects?

    I `d like to know if anyone as links to any site about Apple projects, research etc. For the next development of applications, OSX, etc?
    Something like Mozilla labs that shows projects and ideas..
    Many thanks.

    Mozilla is open source and transparent. Apple is closed source and proprietary. However, you can gather a lot of information by joining Apple Developers Connection (http://developer.apple.com/). Some levels will provide access to pre-release software and hardware. Fees do apply.
    There are some other options however. Safari is based on WebKit and you can follow that project here (http://webkit.org/). In addition, Apple has opened up a lot of projects that can be traced here (http://developer.apple.com/opensource/index.html), and finally there is also MAc OS Forge which contains some additional projects (http://www.macosforge.org/). Also, many of Apple's technologies are integrated from Open Source projects (LDAP, Kerberos, Bind, etc). Following development from the project providers also gives good insight into the direction that Apple is going
    Hope this helps.
    Message was edited by: Strontium90

  • [SOLVED]Questions about a shell program and about shell: files, regexp

    Hello, I'm writing this little program in shell:
    #!/bin/bash
    # Synopsis:
    # Read from an inputfile each line, which has the following format:
    # lllnn nnnnnnnnnnnnllll STRING lnnnlll n nnnn nnnnnnnnn nnnnnnnnnnnnnnnnnnnn ll ll
    # where:
    # n is a <positive int>
    # l is a <char> (no special chars)
    # the last set of ll ll could be:
    # - NV
    # - PV
    # Ex:
    # AVO01 000060229651AVON FOOD OF ARKHAM C A S060GER 0 1110 000000022 00031433680006534689 NV PV
    # The program should check, for each line of the file, the following:
    # I) If the nn of character lllnn (beggining the line) is numeric,
    # this is, <int>
    # II) If the character ll ll is NV (just one set of ll) then
    # copy that line in an outputfile, and add one to a counter.
    # III) If the character ll ll is NP (just one set of ll) then
    # copy that line in an outputfile, and add one to a counter.
    # NOTICE: could be just one ll. Ex: [...] NV [...]
    # [...] PV [...]
    # or both Ex: [...] NV PV [...]
    # Execution (after generating the executable):
    # ./ inputfile outputfileNOM outputfilePGP
    # Check the number of arguments that could be passed.
    if [[ ${#@} != 3 ]]; then
    echo "Error...must be: myShellprogram <inputfile> <outputfileNOM> <outputfilePGP>\n"
    exit
    fi
    #Inputfile: is in position 1 on the ARGS
    inputfile=$1
    #OutputfileNOM: is in position 2 on the ARGS
    outputfileNOM=$2
    #OutputfilePGP: is in position 3 on the ARGS
    outputfilePGP=$3
    #Main variables. Change if needed.
    # Flags the could appear in the <inputfile>
    # ATTENTION!!!: notice that there is a white space
    # before the characters, this is important when using
    # the regular expression in the conditional:
    # if [[ $line =~ $NOM ]]; then [...]
    # If the white space is NOT there it would match things like:
    # ABCNV ... which is wrong!!
    NOM=" NV"
    PGP=" PV"
    #Counters of ocurrences
    countNOM=0;
    countPGP=0;
    #Check if the files exists and have the write/read permissions
    if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]; then
    #Read all the lines of the file.
    while read -r line
    do
    code=${line:3:2} #Store the code (the nnn) of the "llnnn" char set of the inputfile
    #Check if the code is numeric
    if [[ $code =~ ^[0-9]+$ ]] ; then
    #Check if the actual line has the NOM flag
    if [[ $line =~ $NOM ]]; then
    echo "$line" >> "$outputfileNOM"
    (( ++countNOM ))
    fi
    #Check if the actual line has the PGP flag
    if [[ $line =~ $PGP ]]; then
    echo "$line" >> "$outputfilePGP"
    (( ++countPGP ))
    fi
    else
    echo "$code is not numeric"
    exit
    fi
    done < "$inputfile"
    echo "COUN NON $countNOM"
    echo "COUN PGP $countPGP"
    else
    echo "FILE: $inputfile does not exist or does not have read permissions"
    echo "FILE: $outputfileNOM does not exist or does not have write permissions"
    echo "FILE: $outputfilePGP does not exist or does not have write permissions"
    fi
    I have some questions:
    I) When I do:
    if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]; then
    else
    echo "FILE: $inputfile does not exist or does not have read permissions"
    echo "FILE: $outputfileNOM does not exist or does not have write permissions"
    echo "FILE: $outputfilePGP does not exist or does not have write permissions"
    fi
    I would like to print the things on the else, accordingly, this is, print the right message. Ex: if "$outputfileNOM" did not have the write permission, just print that error. BUT, I don't want to put a lot of if/else, Ex:
    if [[ -r $inputfile ]]; then
    if [[-w $outputfileNOM ]] then
    else
    For the READ permission, and the other for the WRITE
    Is there a way to do it, without using a nesting approach, and that maintains the readability. 
    II) About the:
    if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]
    is OK if I use the flag "-x" instead of -r or -w. I don;t have a clear definition of what is the meaning of:
    -x FILE
    FILE exists and execute (or search) permission is granted
    III) Notice the ATTENTION label in my code. I notice that there are some possibilities, for ex: having white spaces before, after or before or after. I'm believing in the consistency of the input files, but if they change, it will explode. What could I do in this case? Is there an elegant way to manage it? (exceptions?)
    Thank you very much!
    EDIT: corrected what rockin turtle wrote bellow about the format. Thank you.
    Last edited by gromlok (2011-10-09 18:39:03)

    I) Regarding your if statement, you could do something like this:
    estr='FILE: %s does not exist or does not have %s permissions.\n'
    [ -r $inputfile ] || ( printf "$estr" "$inputfile" "read" && exit 1 )
    [ -w $outputfileNOM ] || ( printf "$estr" "$outputfileNOM" "write" && exit 1 )
    [ -w $outputfilePGP ] || ( printf "$estr" "$outputfilePGP" "write" && exit 1 )
    II)The -r/-w/-x mean that the file has the read/write/execute bit set. Do a
    $ man chmod
    for details.
    III) You should be able to do
    if [[ "$line" =~ .*\<NV\> ]]; then
    echo "..."
    (( countNOM++ ))
    fi
    but that didn't work for me when I tried it.  I don't know if this is a bug in bash, or (more likely) something that I am doing wrong.
    Regardless, I would write your script like this:
    #!/bin/bash
    file=$(egrep '^[A-Z]..[0-9]{2}' "$1")
    grep '\<NV\>' <<< "$file" > "$2"
    grep '\<PV\>' <<< "$file" > "$3"
    echo 'Count NON:' $(wc -l < "$2")
    echo 'Count PGP:' $(wc -l < "$3")
    Note: In reading your script, your comments imply that each line of the input file starts with 'llnnn' but the example line you gave starts with 'lllnn'.  That is, there are 3 letters (AVO) followed by 2 numbers (01). The above script assumes that lines start with 'lllnn'

  • How to enable JIT debugging on my Windows 7 (64 bit) computer? I keep getting different Errors popping up on my computer about debugging different programs and that JIT debugging must be enabled!

    How do I enable JIT debugging on my Windows 7 (64 bit) computer? I keep getting different Errors popping up on my computer and the latest one says when I attempted to watch a DVD video with VLC media player but this isn't the first error this week saying
    that JIT debugging must be enabled and I don't know how to do that : ( "Microsoft Visual C++  Runtime Library"  Assertion Failed! Program C:\Program Files (x86) VideoLAN\VLC\vlc.exe  File: vm.c
    Line: 1765
    Expression: pgcit != NULL
    For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.
    (Press Retry to debug the application- JIT must be enabled)

    Hi Rhondavas77,
    To enable/disable Just-In-Time debugging
    On the Tools menu, click Options.
    In the Options dialog box, select the Debugging folder.
    In the Debugging folder, select the Just-In-Time page.
    In the Enable Just-In-Time debugging of these types of code box, select or clear the relevant program types:
    Managed, Native, or Script.
    To disable Just-In-Time debugging, once it has been enabled, you must be running with Administrator privileges. Enabling Just-In-Time debugging sets a registry key, and Administrator privileges are required to change that key.
    Click OK.
    More information is here.
    http://msdn.microsoft.com/en-us/library/k8kf6y2a(v=vs.85).aspx
    Best Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Got the new battery from the exchange program and.....

    It doesn't seem to be any better than the "defective" battery that it was to replace. I mean, I can sit here and watch the indicator literally inch it's way down. Did I forget to rub the magic pixie dust onto the battery before I installed it?
    What's up with this?
    ~B

    Hi all,
    I got my MBP last week. For the first six days it was running like something off a shovel and as sleek as the next mans. On day six I calibrated the battery according to the correct procedure (off a PDF from Apple).
    Now ever since I did this, it has being doing these similar problems to what other have described here. It could be sitting comfortably, for example, at 53% and then BOOM, the screen is black and its died on me. I can't believe its a week old and I am having such fundamental problems as this. Not even two weeks old. How can this be resolved...in fact, CAN IT BE RESOLVED???

  • A question about j2me game

    I want to make a programme with this function:
    a small dot in the middle, if I click one button "draw",it will draw the line, if I click the "move", it will move without the line
    but now , what I can do is the dot just can move , I don't know how it can draw the line...
    Can anyone help me?
    Ps: here is the code
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class main extends MIDlet implements CommandListener
         Display display;
         MyCanvas myCanvas;
         public main(){
              display = Display.getDisplay(this);
              myCanvas = new MyCanvas();
         public void startApp(){
              myCanvas = new MyCanvas();
              display.setCurrent(myCanvas);
              myCanvas.start();
              myCanvas.setCommandListener(this);
         public void pauseApp(){}
         public void destroyApp(boolean unconditional){}
         public void commandAction(Command c, Displayable d){
              if (c == myCanvas.exitCmd)
                   destroyApp(true);
                   notifyDestroyed();
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import com.nokia.mid.ui.*;
    import java.util.Random;
    class MyCanvas extends Canvas implements Runnable
         int gameAction;
         Command exitCmd;
         int status = release;
         int k;
         int getKeyCode;
         final static int press = 1;
         final static int release = 2;
         private CommandListener listener;
         int Width = getWidth();
         int Height = getHeight();
         public int x = getWidth()/2;
         public int y = 0;
         public int x_auto;
         public int y_auto;
         int ok;
         int r;
         Random rnd = new Random();
         Image image;
         public MyCanvas(){
              exitCmd = new Command("Exit",Command.EXIT,1);
              addCommand(exitCmd);
              ok = Math.abs(rnd.nextInt()) % 10;
              r = Math.abs(rnd.nextInt()) % 6;
         public void paint(Graphics g){
              g.setColor(0xff8080);
              g.drawRect(2,2,Width-4,Height-4);
              g.setColor(0x000000);
              g.fillArc(x,y+4,2,2,0,360);
              g.fillArc(x+x_auto,Height-4+y_auto,3,3,0,360);
         public void keyPressed(int keyCode){
              getKeyCode = keyCode;
              status=press;
         public void keyReleased(int keyCode){
              status=release;
         public void run(){
              while (true)
                   try{
                        Thread.sleep(30);
                        if (getKeyCode == -1 && status == press && y > 2)
                             y--;
                        if (getKeyCode == -2 && status == press && y < Height - 4)
                             y++;
                        if (getKeyCode == -3 && status == press && x >2)
                             x--;
                        if (getKeyCode == -4 && status == press && x < Width - 4)
                             x++;
                        repaint();
                   }catch(Exception ex){}
         public void start(){
              Thread runner = new Thread(this);
              runner.start();
         public void setCommandListener(CommandListener l) {
              super.setCommandListener(l);
              listener = l;

    Try making the main loop change x_auto and y_auto rather than x and y. At the moment x_auto and y_auto are never initialised, so they're always 0.

  • I just now heard about the replacement program, and it won't let me finish with the request for replacement. what can I do?

    I have entered the product #, signed in, then checked my address info, after that, clicked continue. it said,
    we're sorry, the transaction cannot be completed at this time. Please try again later or contact us.
    contacting them seems to be even more difficult because it seems like its giving me the run around. my ipod was a gift. I have no idea when it was bought. i dont even remember if i registered it... what can I do. I am very frustrated with this because i have ran into this same window the last 3 days! do i just keep trying??

    I'm not exactly sure what the issue is.  Have you waited up to 24 hrs as suggested in the link I provided?
    If "Waiting for Activation" still appears after you perform these steps, turn FaceTime and iMessage off and on in Settings > Messages and Settings > FaceTime. You may need to wait up to 24 hours to complete activation. Most attempts will take less than an hour, but some attempts may take up to 24 hours. If your issue isn't resolved after 24 hours, please contact Apple for assistance. If you've recently performed a remote wipe on your iPhone, wait 24 hours from the time you performed the remote wipe, and then turn iMessage off then back on.
    iOS: Troubleshooting FaceTime and iMessage activation

  • New to game programming

    I'm new to game programming, and I am interested in making rpg/mmpog, and I want to know, what are some classes I will need to know well? Does anyone have code I can pick at to help me learn?

    I too am new to JAVA, and am trying my hand at a VERY simple RPG. My suggestions, as I've found out over the past few weeks in class.
    1 - Get a good book, not all teachers (assuming you're taking a class) are very good, and I've found "Java 2 Complete" By Sybex excellant.
    2 - Go slow. Work through the book, learning those sections you think you'll need. I.E. as I found I wanted a GUI, I went through every example of the AWT package, and learned them as I typed.
    3 - Stay simple, I am creating my own classes for this (Rooms, Monsters, Players, Items are the only four) and use the array and TextArea classes a lot also.
    //Room class
       public class Rooms
          private int exits;
          private String name;
          private int flagN = 1;
          private int falgE = 2;
          private int flagS = 4;
          private int flagW = 8;
          private int flagMonster = 16;
          private int flagItem = 32;
          public Rooms()
             name = "Room One";
             exits = 1;
          public Rooms(String nameIn, byte exitsIn)
             name = nameIn;
             exits = exitsIn;
          public byte getExits()
             return exits;
          public void setExits(byte newexit)
             exits = newexit;
          public String getName()
             return name;
          public void setName(String newName)
             name = newName;
       }In this class, I set up a Room(s) with the name of 'name' and a byte of 'exits' which is how I'm marking the exits and items in a room. I'm not too far along, but I hope some or all of this helps!

  • I have a new Macbook pro, about 2 months old, and at times running video, the fans starts and does not stop. how do you get it to stop.

    I have a new Macbookbook, about 2 months old, and at times running video, the fans starts and does not stop. how do you get it to stop. Also i am thinking once the video is done  the fan should be slowing down and getting quiet on its own.

    Your fan(s) will run at high speed (i.e., loudly) while video is playing, and you can't get around that.
    If your fans are not slowing down within 2-4 minutes after CPU- and/or GPU-intensive usage ends, and the application that was showing the video is still running, Quit that application. (In fact, if you're accustomed to Windows, you may not realize that simply closing a Mac application's window does not quit the application. You still need to use the Quit command in the application-name menu. There will always be a bright dot beside or below the application icon in your Dock for each application that is open.) Quit the ones you aren't using, and see whether that allows the fans to slow down without restarting the machine. If that doesn't do the trick, reset the SMC:
    http://support.apple.com/kb/HT3964?viewlocale=en_US&locale=en_US

  • HT204053 I have a big problem in my account in Game Center .. I have been an account before in the game center and i change it to another one ...when i play any game its change by itself to the last account not still to the new one and i lost my update in

    I have a big problem in my account in Game Center ..
    I have been an account before in the game center and i change it to another one ...
    when i play any game its change by itself to the last account not still to the new one and i lost my update in my game
    How can i keep the new account in my game center and didn't change again ?
    My new account is :[email protected] ............Thats i wanna to keep it
    The old one is :michael-adel [email protected]
    Thank you

    I have a big problem in my account in Game Center ..
    I have been an account before in the game center and i change it to another one ...
    when i play any game its change by itself to the last account not still to the new one and i lost my update in my game
    How can i keep the new account in my game center and didn't change again ?
    My new account is :[email protected]. ............Thats i wanna to keep it
    The old one is :michael-adel [email protected]
    Thank you

  • Trying to create and save a new site for the Bayside Beat tutorial but am having trouble

    trying to create a new site as explained by David Powers in this tutorial but I am already getting hung up.
    It tells me to go to site and then to New Site. I do that and type in Bayside Beat on the first line. (as soon as I do that you notice a red X on the right side of Bayside Beat.)
    I'm told to Browse for my folder which is on my desktop and click ok. When I press SAVE another window pops up.
    This time it tells me another site is named Getting Started and I'm asked to enter a different name.
    Question, where is this other site that is named Getting Started? What name do I call it now!?
    So I rename the site name San Francisco and press SAVE and another window pops up.
    This time it tells me I may have further problems still...What am I suppose to do?

    Do you mean, are the contents still in the original folder  or was it transferred to a new folder?
    Does it make a difference if it’s in the original folder?
    Ralph Fujiwara
    Graphic Designer
    5 Revere Drive, Suite 206 | Northbrook, IL 60062
    Direct: 847.849.2968 | EFax: 847.897.0768
    [email protected]

Maybe you are looking for

  • SAP -MM

    Hi, I am not able to post CVD, some error "all part 1 entries for this excise has been cancelled". I have checked with supply chain mgmt people, they have done all the GR correctly and Part 1 also done. In our organisation CVD posting is done "J1EX_P

  • Upgration from 6.5 to XI 3.1 doesn't show up data in report

    Hi Expert, I have a report which was in BO 6.5 version  and this is upgraded to XI 3.1. When i refresh the report after upgration, the report going into structure mode instead result mode. When i try to convert that into result mode, the system is ha

  • Remove everything from a Canvas3D

    Is there a way to remove everything from a Canvas3D? I am having real problems because if my application ( which only needs to use Java3D a few times ) has two Canvas3D objects in memory at once it starts making a mess of the screen around the applic

  • How do I get Flash Player to download?

    I have been trying for almost 24 hours (various times) to get this to download. Each time I click download, it only goes to 25% and then completely stops. I let it sit overnight to give it some time to download and it still didn't budge. I have a Mac

  • Anyone know the best resoluton for images in DPS folios?

    Do I recall hearing somewhere that they are automatically sized appropriately so as to avoid contributing to unnecessarily large folios? Thanks in advance.