Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: "Matt Guyot" Newsgroups: scea.yaroze.programming.2d_graphics Subject: in need of assistance... Date: 23 Jul 1997 02:07:04 GMT Organization: SCEA Net Yaroze News Lines: 233 Message-ID: <01bc970d$ea6221c0$12c562cf@mattguyo> NNTP-Posting-Host: jax-fl-001.atlantic.net X-Newsreader: Microsoft Internet News 4.70.1161 ok... im an ultra-newbie at this stuff so please bear with me.... here is the source for the program i am working on... it is just a modified version of one of ira raineys demos... all i have done is change the outcomes of pressing the buttons... the d-pad rotates and the square accelerates... i have three concerns as of right now... 1) i have coded a couple of lines in there in an attempt to set a maximum velocity in both the x and y directions... this does not work... 2) it appears that while the sprite can face any direction (something like 80, 90 or 120 headings) it can only have a velocity along eight of these (N, NW, W, SW, S, SE, E, NE) i wrote the little trig thing in there to avoid just that... i dont know why it is only giving these eight directions... 3) i have no idea why it slows down when you accelerate and turn at the same time.. this doesnt seem likely to be stressing the limits of what the machine can do (even with my naturally un-streamlined code)... but there is an obvious slowdown... if one of the gurus of 2d gaming could offer some aid, i would greatly appreciate it.... thx matt begin 600 main.c M+R\@02!B87-I8R X(&)I="!S<')I=&4@=FEE=V5R#0HO+R!W:71H('-C86QI M;F<@86YD(')O=&%T:6]N#0HO+PT*+R\@27)A(%)A:6YE>2 U+S8O.3<-"B\O M#0HO+R!I7,@6]U M71E2 ]('1I M;5]D871A+G!Y.PD)"0D)"0DO+R!Y('!O#L)"0D)"0D)+R\@>"!P;W,@:6X@9G)A;64@8G5F9F5R#0H)" ]("A30U)%14Y?5TE$5$@O,BD["0D)"2\O('-P"P@=&EM M7V1A=&$N<'DI.PT*"51E#L)"0D)"2\O($-,550@>"!A>&ES('!O2 ]('1I;5]D871A+F-Y.PD)"0D)+R\@0TQ5 M5"!Y(&%X:7,@<&]S:71I;VX-"@E497-T4W!R:71E+G(@/2 Q,C@["0D)"0D) M"0DO+R!296=U;&%R(&)R:6=H=&YE2 ]('1I;5]D871A+G!H M+S(["0D)"0DO+R!9(%!O2!AF4-"@E497-T4W!R M:71E+G)O=&%T92 ](# ["0D)"0D)"2\O(%-E="!R;W1A=&EO;B!T;R!C96YT MPT*"0EV96Q?>"L]*#(J*'-I;B@H5&5S=%-P2L]*#(J*&-O#L-"@EI9B H M5&5S=%-P2T]=F5L7WD[#0H):68@*%1E2 \(#4I#0H) M"51E2 ](#(S-3L-"@D-"@EI9B H5&5S=%-P2T]=F5L M7WD[#0H):68@*%1E2 ^(#(S-2D-"@D)5&5S=%-P!PZ'+]_M" > M&'8' 4`_VX['+,@"@!W( ,`/!P? M&%L%BL$##D:&@0)'2H````````````````` M`````````````#<;" 0:#!$B#0<.*@``*C