Racecar II; The need to race Beta Download

A forum where you can announce your awesome project(s).

Moderator: MaxCoderz Staff

ninja_master
Regular Member
Posts: 76
Joined: Sun 13 Nov, 2005 2:42 am
Location: A cold cold land filled with snow
Contact:

Post by ninja_master »

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!
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.
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

Could you run it through this, and I see a few things to fix up.
katmaster
Sir Posts-A-Lot
Posts: 252
Joined: Tue 09 Aug, 2005 9:34 pm
Location: south of the north pole
Contact:

Post by katmaster »

Yeah, I see a few RAM leaks. Don't use goto inside of loops. Looks coolz, though!!! Keep up the good work.
cheese=yum
Image
User avatar
DJ_O
Calc King
Posts: 2324
Joined: Mon 20 Dec, 2004 6:47 pm
Location: Quebec (Canada)
Contact:

Post by DJ_O »

any progress?
Image Image Image Now active at https://discord.gg/cuZcfcF (CodeWalrus server)
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

Code was posted, optimize/help with errors!
User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

Plz2 run it through sourcecoder2. :)
Image Image Image
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

Me wrote:Could you run it through this, and I see a few things to fix up.
Yeah well if he visits anymore he might be able to, now that sc2 works![/quote]
User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

Aye, do you think he abandoned the project or something?
Image Image Image
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

His last xanga entry was December 28th, so maybe he has been busy...
User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

That's possible, school and all that.
Image Image Image
ninja_master
Regular Member
Posts: 76
Joined: Sun 13 Nov, 2005 2:42 am
Location: A cold cold land filled with snow
Contact:

Post by ninja_master »

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%
Wright Studios.org the place for calculator graphics.
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

Wow, it's moving along fast! I hope you don't have any problems! Good luck and I can't wait!
ninja_master
Regular Member
Posts: 76
Joined: Sun 13 Nov, 2005 2:42 am
Location: A cold cold land filled with snow
Contact:

Post by ninja_master »

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.

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.
User avatar
crzyrbl
Calc Wizard
Posts: 518
Joined: Wed 06 Jul, 2005 4:56 pm
Location: 3rd rock....

Post by crzyrbl »

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
into

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 
you may be able to optimize it more if you change some other parts of your prgm.
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.

Image
ninja_master
Regular Member
Posts: 76
Joined: Sun 13 Nov, 2005 2:42 am
Location: A cold cold land filled with snow
Contact:

Post by ninja_master »

G-2(J<40)-4(J>=40)(J<80)-6(J>=80->G
I can't believe I forgot about that. I used it so many other times in my game.
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.
Post Reply