Oct 27

For counting position of my car and customer i’ve wrote library that helps me to know

  • know where is my car
  • set position of my car
  • write to console where is it
  • if to object are on same position (if distinct is less than 10 -> collision)

Read the rest of this entry »

Oct 27

 

Here is library that works with images in project.

it has only one static method that cutes big image to smaller. In my project i use image cutting for car (4 directions) and for city (grass and road)

My car (it’s small so bigger version on side) City (yellow place is optional, there can be everything where you car cannot go – tree, building…)
mycar mycar map

 

Read the rest of this entry »

Aug 14
Bait :

Hello, so I’ll continue in my tutorial. For lucidity I’ll recap series

  1. Installing and configuring IDE(Eclipse) + installing JDK + Wireless toolkit
  2. Very simple flow diagram
  3. Start wring – I’ve started using NetBeans (very easy installation and setup up)
  4. Declaring interface GraphObject with methods drawObjects and run(int Key)
  5. Declaring skeleton of MyCanvas.java – from here we’ll decide what will be on display
  6. SplashScreen.java – here you can see how all will work (with interface GraphObject)
  7. Making menu texts (Texts.java) + DrawMenu.java (wasn’t final version)
  8. Nothing interesting, some changes on DrawMenu.java + responding questions from Article #7
  9. Finishing MyCanvas.java
  10. full MyCanvas.java code.

Read the rest of this entry »

May 13

Whoa;

So i’m continue-ing with my Semester2 project. Today i’ll write about DrawMenu.run();

Read the rest of this entry »

May 6

Hey FELlas;

do you remember my last article J2ME tiled image?

so now I’ll continue and tell’ ya how to draw your font.

Read the rest of this entry »

Apr 29

Baf Buf.

Before lot of days i’ve said that i’ll show you how to tile big image to parts. so exemplum gratia, we wanna use our own font, and we draw something like this

 

it’s sized 21×81, and there are 27 letters (include space). so thats mena one letter is sized 7×9

Read the rest of this entry »

Apr 29

Do you remember my questions from my last post J2ME tutorial #7 ?

questions were?

  1. what does it mean ? [java] if(this.MenuIndex> 2) this.MenuIndex = 0; [/java]
  2. in DrawMenu class is one logic error find it
  3. Change MenuItem > 2, with MenuItem > texts.length – 1, but you must declare texts like global (write 1 line, and delete 1 line, so very easy)
  4. Change Canvas.UP to -1….

so now i’ll answer to my questions,

Read the rest of this entry »

Apr 10

Hi, SO today we’ll add DrawMenu,

in MyCanvas we have DrawMenu declared, and also in DrawSplashScreen we have “if something clicked after 3 seconds, then go to Menu (DrawMenu)”.

Read the rest of this entry »

Mar 31

in last articel i showed ya how seems like MyCanvas class and there was Unidentified Written Object (UWO) DrawSplashScreen. here i draw my splashscreen and counting the time(private int Time), that splashscreen will be showen at least 3 seconds

Read the rest of this entry »

Mar 31

so in MainCl.java we called initialized class MyCanvas, but we didn;t know what is this.

it’s a main thread, which knows what method will be called, or how MIDLet will work

Read the rest of this entry »

« Previous Entries