Racecar II; The need to race Beta Download
Moderator: MaxCoderz Staff
-
- Regular Member
- Posts: 76
- Joined: Sun 13 Nov, 2005 2:42 am
- Location: A cold cold land filled with snow
- Contact:
sorry I havn't posted in a w hile but with school starting up I was busy getting back into the schedule of school. I still have the racing part of my program (thanks to subprograms) and am looking to get it optimizied to go as fast as it can. Super Power!
edit - got it optimized!
edit - got it optimized!
Last edited by ninja_master on Sun 05 Mar, 2006 1:39 am, edited 1 time in total.
Wright Studios.org the place for calculator graphics.
Could you run it through this, and I see a few things to fix up.
- KermMartian
- Calc Wizard
- Posts: 549
- Joined: Tue 05 Jul, 2005 11:28 pm
- Contact:
Yeah well if he visits anymore he might be able to, now that sc2 works![/quote]Me wrote:Could you run it through this, and I see a few things to fix up.
- KermMartian
- Calc Wizard
- Posts: 549
- Joined: Tue 05 Jul, 2005 11:28 pm
- Contact:
- KermMartian
- Calc Wizard
- Posts: 549
- Joined: Tue 05 Jul, 2005 11:28 pm
- Contact:
-
- Regular Member
- Posts: 76
- Joined: Sun 13 Nov, 2005 2:42 am
- Location: A cold cold land filled with snow
- Contact:
sorry i havn't posted in a while, but i have been backed up with my business. I have been working on it quite a lot since the crash, it is almost all done. The thing that i was waiting on was the new xlib. I just want to say thanks to tr1p1ea for this awesome library. here's an update on what i have been doing.
Cars: 95%
Garage: Done
Graphics: Done
Core: 90%
Racing: 80%
Upgrades: 65%
Save/Load: 100%
Total: 90%
Cars: 95%
Garage: Done
Graphics: Done
Core: 90%
Racing: 80%
Upgrades: 65%
Save/Load: 100%
Total: 90%
Wright Studios.org the place for calculator graphics.
-
- Regular Member
- Posts: 76
- Joined: Sun 13 Nov, 2005 2:42 am
- Location: A cold cold land filled with snow
- Contact:
hey guys help me out with this one. on the racing part of the game, I'm trying to make the lines in the middle move more pixels to the left the faster you are going. I did figure it out, but it makes the game run a lot slower. if you can help here is the code. This is with the help of Xlib.
G=pixel that the line is drawn at.
J=speed of the car.
G=pixel that the line is drawn at.
J=speed of the car.
Code: Select all
:real(1,G-12,24,11,8,14,0,24,0,1,0
:real(1,G+12,24,11,8,14,0,24,0,1,0
:If J=0
:Then
:Else
:If J<40
:Then
:G-2->G
:If G <= -4
:8->G
:Else
:If J<80
:Then
:G-4->G
:If G<=-4
:8->G
:Else
:G-6->G
:If G<-6
:6->G
:End:End:End
Wright Studios.org the place for calculator graphics.
Code: Select all
:real(1,G-12,24,11,8,14,0,24,0,1,0
:real(1,G+12,24,11,8,14,0,24,0,1,0
:If J=0
:Then
:Else
:If J<40
:Then
:G-2->G
:If G <= -4
:8->G
:Else
:If J<80
:Then
:G-4->G
:If G<=-4
:8->G
:Else
:G-6->G
:If G<-6
:6->G
:End:End:End
Code: Select all
:real(1,G-12,24,11,8,14,0,24,0,1,0
:real(1,G+12,24,11,8,14,0,24,0,1,0
:G-2(J<40)-4(J>=40)(J<80)-6(J>=80->G
:If G<=-4 and J<80
:8->G
:If G<-6 and J>=80
:6->G
-
- Regular Member
- Posts: 76
- Joined: Sun 13 Nov, 2005 2:42 am
- Location: A cold cold land filled with snow
- Contact:
I can't believe I forgot about that. I used it so many other times in my game.G-2(J<40)-4(J>=40)(J<80)-6(J>=80->G
Last edited by ninja_master on Tue 14 Mar, 2006 9:21 pm, edited 1 time in total.
Wright Studios.org the place for calculator graphics.