Demos for J2ME SDK Mobile - Printable Version +- dedomil.net - Mobile Games Forum (http://dedomil.net/forum) +-- Forum: Devs & Mods Section (/forumdisplay.php?fid=31) +--- Forum: Showcase (/forumdisplay.php?fid=32) +--- Thread: Demos for J2ME SDK Mobile (/showthread.php?tid=5590) |
RE: Demos for J2ME SDK Mobile - King_Dave - 06-25-2021 12:35 AM (06-24-2021 09:53 PM)JoseskVolpe Wrote:(06-24-2021 09:41 PM)King_Dave Wrote: Can you make the java app support touchscreen? Thanks I cant use the SDK & Text editor RE: Demos for J2ME SDK Mobile - JoseskVolpe - 06-25-2021 12:53 AM (06-25-2021 12:35 AM)King_Dave Wrote: I cant use the SDK & Text editor ¿What are the problems? RE: Demos for J2ME SDK Mobile - java gamer - 06-25-2021 05:02 AM I need Sprites Of A Racing Car RE: Demos for J2ME SDK Mobile - JoseskVolpe - 06-25-2021 05:08 AM (06-25-2021 05:02 AM)java gamer Wrote: I need Sprites Of A Racing Car https://opengameart.org/art-search?keys=racing+car Be aware most of these spritesheets may not be compatible for J2ME games and would need to be converted to a simple low-res spritesheet And check if the artist want to be credited RE: Demos for J2ME SDK Mobile - King_Dave - 06-25-2021 07:59 AM (06-25-2021 12:53 AM)JoseskVolpe Wrote:(06-25-2021 12:35 AM)King_Dave Wrote: I cant use the SDK & Text editor Its not a touchscreen app.. RE: Demos for J2ME SDK Mobile - JoseskVolpe - 06-25-2021 10:55 AM (06-25-2021 07:59 AM)King_Dave Wrote: Its not a touchscreen app.. I'm sure your phone emulates a keypad on-screen, use them RE: Demos for J2ME SDK Mobile - java gamer - 06-25-2021 10:59 AM How To Add A Background Image ? RE: Demos for J2ME SDK Mobile - JoseskVolpe - 06-25-2021 11:12 AM (06-25-2021 10:59 AM)java gamer Wrote: How To Add A Background Image ? Use dedomil.josesk.features.RLoader.loadImage(String source) method to load you Image and store it inside a javax.microedition.lcdui.Image variable Like: Code: Image background = RLoader.loadImage("YourImageFile.png"); And use javax.microedition.lcdui.Graphics.drawImage(Image img, int x, int y, int anchor) method inside paint(Graphics g) method into dedomil.yourgame.Game method, before any other command, to draw your background Like that: Code: g.drawImage(background, 0, 0, 0); IMPORTANT: Load EVERY resources, including Images, before anything, i recommend using the Constructor for that, NEVER load the image just before drawing it in the same mothod Never do that: Code: public void paint(Graphics g){ Do that: Code: Image background = RLoader.loadImage("YourImageFile.png"); Or Code: Image background; |