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)
For counting position of my car and customer i’ve wrote library that helps me to know
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…) |
| Bait : |
Hello, so I’ll continue in my tutorial. For lucidity I’ll recap series
Whoa;
So i’m continue-ing with my Semester2 project. Today i’ll write about DrawMenu.run();
Hey FELlas;
do you remember my last article J2ME tiled image?
so now I’ll continue and tell’ ya how to draw your font.
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
Do you remember my questions from my last post J2ME tutorial #7 ?
questions were?
so now i’ll answer to my questions,
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)”.
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
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