PDA

View Full Version : Help4New game



joci2000
12-10-2004, 09:49 AM
hi all

i need a little help, i have a little problem

the problem is :

it is a car game and if I push key it will calc new cordinates.
but sometimes it calc wrong cordinates or miss it but the algorithm is right.
it is sometimes good & sometimes not. :-?

i try to use usleep (50000) and ksleep. it do it also but less. but what is usleep, sleep, ksleep?
should i use it or what? there is a case section in my code for keys.

i try it to increase the delay but not help just be slower.

so could somebody help me?

it will a logical car game with F1 maps 8)

krisha
12-10-2004, 09:20 PM
sleep ( x ) waits x seconds before continuing
usleep ( x ) waits x microseconds
ksleep ( x ) waits x seconds or until a key is pressed

joci2000
13-10-2004, 06:55 PM
sleep ( x ) waits x seconds before continuing
usleep ( x ) waits x microseconds
ksleep ( x ) waits x seconds or until a key is pressed


ok thx it krisha

& i know what was the problem

the kpd_get_key & kpd_read_key give me wrong number sometimes but i solve this with default number :D

if i want to upload to mados where should i send this game?

joci2000
14-10-2004, 09:02 AM
hi all

hmm here is my mados with 2 menu style & new game Formula1 :lol:

krisha
14-10-2004, 04:12 PM
can you pls precise the problem with getkey ?
which numbers on what phone ?

hey, get an cvs account (by g3gg0) and you can submit your changes :D
if you want to, i will upload formula 1 for you.

joci2000
15-10-2004, 08:38 AM
can you pls precise the problem with getkey ?
which numbers on what phone ?

hey, get an cvs account (by g3gg0) and you can submit your changes :D
if you want to, i will upload formula 1 for you.


hi i have 3330 with old board but i don't know which key is the problem.

it sometimes does &sometimes not.

how could i get cvs account? or where should i send?

NokDoc
15-10-2004, 04:31 PM
Hi,

Here's how I fixed keypress conversion problems in eg hexedit script:

8210,2100:
"3E3E3E3E3E11190102030E170405060F18070809101A0C0A0B" < Nokia
"FFFFFFFF090807FF060504FF030201FFFFFFFFFF" < Mr. Krisha style

3310,3330,3390:
"3E170A3E1A3E180102013E3E0605043E3E0908073E030B190C" < Nokia New
"3E170A3E1A3E183E02013E3E0605043E3E0908073E030B190C" < Nokia Old
"FFFFFF03070809FF040506FF0102FFFFFFFFFFFF" < Mr. Krisha style

Hopefully this info also helps U in some way?

NokDoc

joci2000
16-10-2004, 07:08 PM
Hi,

Here's how I fixed keypress conversion problems in eg hexedit script:

8210,2100:
"3E3E3E3E3E11190102030E170405060F18070809101A0C0A0B" < Nokia
"FFFFFFFF090807FF060504FF030201FFFFFFFFFF" < Mr. Krisha style

3310,3330,3390:
"3E170A3E1A3E180102013E3E0605043E3E0908073E030B190C" < Nokia New
"3E170A3E1A3E183E02013E3E0605043E3E0908073E030B190C" < Nokia Old
"FFFFFF03070809FF040506FF0102FFFFFFFFFFFF" < Mr. Krisha style

Hopefully this info also helps U in some way?

NokDoc


oh yes a little but how could i solve this with the source code?

&how could i get account? to upload games or send where?

krisha
17-10-2004, 02:55 PM
i will look at the key routine again.
maybe also you don't have the latest version from CVS.
i think there it's already fixed.

CVS account you get from g3gg0. he's also here in the board :)

but before commit your changes, first get an actual MADos version from CVS and look what's changed.

p.s.: nice things in this flash and also nice menu ;)

kraze1984
29-10-2004, 09:48 AM
joci2000, how about this racing game design?
;)

joci2000
29-10-2004, 06:08 PM
joci2000, how about this racing game design?
;)


wow that's really cool :-o :smile:

but mine is not only a race prog it needs some logics ;)

kraze1984
01-11-2004, 11:31 AM
wow that's really cool :-o :smile:

but mine is not only a race prog it needs some logics ;)

indeed. i didn't understand how to play in it. The instructions say nothing :(

joci2000
02-11-2004, 10:26 AM
indeed. i didn't understand how to play in it. The instructions say nothing :(

originally it is used to play on checked paper(or something like your mathematics notebook :-D ).

first there is no speed. after you press any number you get some speed at any directions.
after it you add the previous speed to your position and you can add speed slow or stand your speed. and you can turn to your position with 1,3,4,6,7,9

the black box show where you will go if you press the numbers
123
456
789