Search found 478 matches

by koolmansam375
Sun 27 Feb, 2005 8:38 pm
Forum: Programming Help
Topic: [General Algorithme] Ball->Paddle Collision Handling
Replies: 18
Views: 9670

ok can someone help explain to me how to use trigonometric functions (sine and cosine) to help move the ball. coelurus reccomended i read this (which i did) but it would help if someone could explain how i could relate it to the ball movement. also they use a formula to convert from polar to Cartesi...
by koolmansam375
Sun 27 Feb, 2005 6:44 pm
Forum: Programming Help
Topic: [TI ASM] GrayScale Pictures With IStudio
Replies: 5
Views: 3676

yea you need to post the code that youre using to display the sprite as well. not only the sprite data.

Also what is IStudio and where can I check it out? Is it just like Calc Graphic Studio? edit:oh its a bitmap -> gs data converter
by koolmansam375
Sun 27 Feb, 2005 6:37 pm
Forum: Announce Your Projects
Topic: Venus v2.4 (Ti83 shell)
Replies: 24
Views: 11280

Mike K wrote:The ti-84 PLUS and 84 PLUS are cross-compatible, not the regular 83.

-Mike
i think you mean "The ti-83 PLUS and 84 PLUS are cross-compatible, not the regular 83.
by koolmansam375
Sat 26 Feb, 2005 7:04 pm
Forum: Programming Help
Topic: [TI ASM] Drawing maps
Replies: 50
Views: 21199

here. a djnz loop

Code: Select all

    ld b,100
loop:
    djnz loop
is eqiuvalent to

Code: Select all

    ld b,100
loop:
    dec b
    jr nz,loop
which in C/++ is this for loop

Code: Select all

for (int b=100;b>0;b--);
[/code]
by koolmansam375
Sat 26 Feb, 2005 6:32 pm
Forum: Programming Help
Topic: [TI ASM] Drawing maps
Replies: 50
Views: 21199

well i have used java before and i totally understand that, but i cant get a for statement to be used. ie it says that unreconized etc. could someone post a site which will explain map rotines or post some sample code? thanks in z80 im tring to do it in are you trying to use an exact copy of what D...
by koolmansam375
Sat 26 Feb, 2005 5:47 pm
Forum: Programming Help
Topic: [TI ASM] Compiling ION programs
Replies: 11
Views: 6249

whoops i meant 100+ errors, and i progrem for 83 plus ion. i have been useing the inc file that came with either devpack or mirage..? and the bat is from asm in 28 days. it works fine if i just program for the no shell and also if i use mirage but not if its ion. i have posted topics about this bef...
by koolmansam375
Sat 26 Feb, 2005 1:47 pm
Forum: Programming Help
Topic: [TI ASM] Compiling ION programs
Replies: 11
Views: 6249

this is one your making right? You need to make sure you have the correct header so ion can detect it. its ret jr nc,start_of_program .db "Description",0 if it uses ion functions (pusprite,fastcopy,largesprite,etc.) otherwise if it doesnt use ion functions its xor a jr nc,start_of_program ...
by koolmansam375
Sat 26 Feb, 2005 1:44 pm
Forum: Programming Help
Topic: [General Algorithme] Ball->Paddle Collision Handling
Replies: 18
Views: 9670

oh i see, i had the sign flipped. I tried it with nc instead of c and it works now. Thanks.

Now i just need to do the ball handling but i *think* I have an idea of how to do that
by koolmansam375
Sat 26 Feb, 2005 12:47 am
Forum: Programming Help
Topic: [General Algorithme] Ball->Paddle Collision Handling
Replies: 18
Views: 9670

If you think about it you'll realise that you got the signs wrong: no_collision = (b.x+b.w <= p.x) || (b.x >= p.x+p.w) || (b.y+b.h <= p.y) || (b.y >= p.y+h), so collision = (b.x+b.w > p.x) && (b.x < p.x+w) && (b.y+b.h > p.y) && (b.y < p.y+h). But I'd use the first formula fo...
by koolmansam375
Fri 25 Feb, 2005 4:19 pm
Forum: Programming Help
Topic: [General Algorithme] Ball->Paddle Collision Handling
Replies: 18
Views: 9670

this is my bounding box collision detection routine but for some reason it doesnt work: ;collision if ((y1+length>=y2) && (y2+length>=y1) && (x1+width>=x2) && (x2+width>=x1)) ld a,(playery) add a,16 ld b,a;y1 + length ld a,(bally);y2 cp b jr c,ballmove; skip if y1+length<y2 l...
by koolmansam375
Wed 23 Feb, 2005 8:08 pm
Forum: Programming Help
Topic: [General Algorithme] Ball->Paddle Collision Handling
Replies: 18
Views: 9670

what is the bounding box formula again?

Code: Select all

if (x1+width > x2 && x1 < x2+width && y1+length > y2 && y1 < y2+length){
...
}
:?:
by koolmansam375
Tue 22 Feb, 2005 10:19 pm
Forum: Programming Help
Topic: [General Algorithme] Ball->Paddle Collision Handling
Replies: 18
Views: 9670

I thought it was quite clear: you detect the actual collision using a bounding box, then you use the movement state (position, velocity) of the paddle and the ball to calculate the actual effect. Dividing the surface into regions is unnecessary. I get it. So I use a bounding box to determine if the...
by koolmansam375
Tue 22 Feb, 2005 7:36 pm
Forum: Programming Help
Topic: [General Algorithme] Ball->Paddle Collision Handling
Replies: 18
Views: 9670

Re: [Pong/ASM] Ball->Paddle Collision Handling

I cant just use bounding boxes because i want the type where the ball angle changes depending on where on the paddle it hit. Using bounding boxes has nothing to do with what you actually do on collision, it just signals the actual fact of collision. I did something similar in Traz: basically subtra...
by koolmansam375
Mon 21 Feb, 2005 8:24 pm
Forum: Programming Help
Topic: [General Algorithme] Ball->Paddle Collision Handling
Replies: 18
Views: 9670

kalan_vod wrote:not sure how clear this would be but maybe check other peoples code and here also
http://joepnet.com/hosted/maxcoderz/php ... .php?t=101
no thats for a tilemap and i dont use (or have a need for) a tilemap
by koolmansam375
Mon 21 Feb, 2005 8:22 pm
Forum: Announce Your Projects
Topic: Pongwars
Replies: 11
Views: 6688

double post but heres some updates: I have the ball movement fixed (thanks to unknown one) and i also fixed the laser shooting and health bar. Now i need to work on the collision detection (which i need help with as shown in the programming help topic ) and later AI and then add whatever else to the...