Share your repls and programming experiences

← Back to all posts
Python with Turtle: Tron!
SeamusDonahue (70)

Welcome to Tron LightBike Racing!

player1:wasd
player2:arrow keys

I know it's poorly optimized I'm still trying to figure out how to optimize it, I know why it's slow, I just can't seem to fix it: It's slow because every time you move it adds a wall to a list it needs to iterate through every time to do collisions, I can't seem to make a fix that works, if someone could help with that it would be appreciated!

Also, share any feedback you have!!!!
have fun!

edit: forgot to say, when you start it nothing will appear, look at the log it will say enter to start and count down from 3 before the game starts.

Commentshotnewtop
brogen (42)

Could you make some AI?

SeamusDonahue (70)

I'm not big brain enough, I'm not sure how an ai would work or how to implement it especially without cause somehow more lag. @brogen

brogen (42)

@SeamusDonahue

Me neither lol I would just have the other bike do nothing!

SeamusDonahue (70)

I might work on an ai / single-mode after figuring out optimization @brogen

brogen (42)

@SeamusDonahue

ok
I just thought about that.

DynamicSquid (4399)

I don't see anything...

SeamusDonahue (70)

look at the log, it waits for you to hit enter to start! @DynamicSquid

Leroy01010 (390)

it looks like it has a limit to how far you can move.!.

SeamusDonahue (70)

No its just lag, as I've said I'm still trying to figure out how to optimize it. @Leroy01010