Bomberman in xlib
Moderator: MaxCoderz Staff
ouch...i come back and you guys teared my code apart. i did things for a reason.
its [A](A,B cuz i hv X+(K=34)-(K=25)->A
means that if you guys altered it, if you press down, you go left or something
the if statement is important to check other things (see new code)
i doubt the other way can check faster if your going off screen...
prove me wrong! i wanna see new code!
its [A](A,B cuz i hv X+(K=34)-(K=25)->A
means that if you guys altered it, if you press down, you go left or something
the if statement is important to check other things (see new code)
Code: Select all
........your code......
getkey->K
X+(K=34)-(K=25->A
Y+(K=26)-(K=24->B
if A=/=0 and A =/=9 and B =/= 0 and B=/= 13 and 0=[A](A,B
then
A->X
B->Y
end
.......your code......
prove me wrong! i wanna see new code!
its boolean
if K is 34 (the down key) then the expression becomes one.
25 up
24 left
26 right
so if you press up, the result would be
x-1->a
y->b
the next expression checks to see if your going off screen or into another object
EDIT:
if your confused about the matrix co.'s just think of the co. plane being rotated left
if K is 34 (the down key) then the expression becomes one.
25 up
24 left
26 right
so if you press up, the result would be
x-1->a
y->b
the next expression checks to see if your going off screen or into another object
EDIT:
if your confused about the matrix co.'s just think of the co. plane being rotated left
it is an alternative spelling (french/italian) that I am partial to, just as colour is the same as color...matrix/matrice plr:matixes/matricesDarkerLine wrote:Sir Robin a.k.a. DarkerLine's ULTIMATE 1337 TI-Basic Comparison Timer
Disp "Timing Routine 1
For(I,1,1000
FOO
End
Pause "Routine 1 Ended
Disp "Timing Routine 2
For(I,1,1000
BAR
End
"Routine 2 Ended
Get yourself a stopwatch.
P.S. There's no such thing as a 'matrice'. It's called a matrix.
"Un de supports semi -transparents grâce auquel se forme l'image.Pour les LCD, DLP et D-ILA uniquement, c'est le nombre et la dimension des grilles utilisées."
One of semi supports - transparencies thanks to which is formed the image.Pour the LCD, DLP and D-ILA only, it is the number and the dimension of the grids used.-translated
http://www.google.com/search?hl=en&ie=I ... 3A+matrice
-
- Calc Wizard
- Posts: 526
- Joined: Tue 08 Mar, 2005 1:37 am
- Location: who wants to know?
- Contact:
crzyrbl wrote:ouch...i come back and you guys teared my code apart. i did things for a reason.
its [A](A,B cuz i hv X+(K=34)-(K=25)->A
means that if you guys altered it, if you press down, you go left or something
the if statement is important to check other things (see new code)
i doubt the other way can check faster if your going off screen...Code: Select all
........your code...... getkey->K X+(K=34)-(K=25->A Y+(K=26)-(K=24->B if A=/=0 and A =/=9 and B =/= 0 and B=/= 13 and 0=[A](A,B then A->X B->Y end .......your code......
prove me wrong! i wanna see new code!
Code: Select all
If fPart(A/9)fPart(B/13)not([A](A,B
-
- Calc Wizard
- Posts: 526
- Joined: Tue 08 Mar, 2005 1:37 am
- Location: who wants to know?
- Contact:
Yes, and whether there's a wall in the way as well.
Edit: okay, I'll have compassion on the reader.
some theorem says that x*y*z = 0 iff x=0 or y=0 or z=0.
fPart(A/9)=0 iff 9 divides A, that is, when A = 0 or A=9. (in A's possible range)
fPart(B/13)=0 iff 13 divides B, that is, when B=0 or B=13. (in B's possible range)
not([A](A,B))=0 iff [A](A,B) != 0, that is, if there's something in the way.
the whole thing is only true if none of the above are true.
Edit: okay, I'll have compassion on the reader.
some theorem says that x*y*z = 0 iff x=0 or y=0 or z=0.
fPart(A/9)=0 iff 9 divides A, that is, when A = 0 or A=9. (in A's possible range)
fPart(B/13)=0 iff 13 divides B, that is, when B=0 or B=13. (in B's possible range)
not([A](A,B))=0 iff [A](A,B) != 0, that is, if there's something in the way.
the whole thing is only true if none of the above are true.
-
- Calc Wizard
- Posts: 526
- Joined: Tue 08 Mar, 2005 1:37 am
- Location: who wants to know?
- Contact: