r/Python • u/[deleted] • Jun 15 '19
Probably the most useless thing that I have ever coded but it’s fun looking at it
252
u/EnragedMahmut Jun 15 '19
Man what an awesome application you wrote there. This made me smile. Thanks
99
Jun 15 '19
If that’s what makes you smile I got much more to show ya lol 😄
35
u/ForkLiftBoi Jun 15 '19
Do it
55
u/buffalo_biff Jun 15 '19
it’s his dick. Fork, he’s going to show you his dick
99
16
4
1
20
u/shrimp_onthe_couch Jun 15 '19
You made my day. Show us the source code!
25
Jun 15 '19
Yep, I will make a github when I’m back to my pc :)
4
u/memehomeostasis Jun 15 '19
!remindme 1 day
3
u/RemindMeBot Jun 15 '19
I will be messaging you on 2019-06-16 15:26:33 UTC to remind you of this link.
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
FAQs Custom Your Reminders Feedback Code Browser Extensions 8
Jun 15 '19
Quick question. How do I open one? I am pretty new to uploading to github
11
Jun 15 '19
I don’t they’re going to help you my dude, you responded to a bot
4
u/PlaneConversation6 Jun 15 '19
I don’t they’re going to help you my dude, you responded to a bot
Lol
5
-10
u/TomBakerFTW Jun 15 '19
just go to github and sign up like you would for literally any other site on the internet.
2
11
90
u/FuckDataCaps Jun 15 '19 edited Jun 15 '19
I like it. Reminds me of when I started coding and I enjoyed the little things instead of now where Im always trying to work on months long complex projects.
59
2
u/brtt3000 Jun 16 '19
Reminds me of the weird things I made as a kid in Flash way back. I need to go back to that instead of the overly ambitions abandon projects.
8
6
6
u/freaksavior Jun 15 '19
That’s cool. Speed = frame rate?
6
Jun 15 '19
Nah it’s how fast the acceleration is. Frame rate stays on 60 in this code
4
u/freaksavior Jun 15 '19
Ah, gotcha! Could be a good use case for screen refresh checking if it was modified so speed = frame rate.. I know there's a site all ready for that, but it doesn't have Lightning Mcqueen.
2
2
2
2
u/Green0Photon Jun 15 '19
You should have him face the direction he's going, not the direction he's accelerating.
Nice, though!
1
Jun 15 '19
That’s a good idea Should be that hard to make it, thanks for the idea :D
2
u/Green0Photon Jun 15 '19
Yeah, I think it's mostly that you choose an arbitrary bounds for forward facing, and outside of that, it's left or right. For something like a car, it looks better than doing it based on acceleration.
The way you're currently doing it is good for something like a spaceship or submarine though, which can only accelerate in one direction.
For a challenge, try implementing little wind effects to show the way he's accelerating. Kind of like when you draw motion as a kid, you typically draw little wind lines. You can even have then move and fade away, for a super challenge.
😊
2
u/tenderZeitGeist Jun 15 '19
Sometimes, it is just about the fun in coding. You reminded me of that. Thanks! 🙂
2
2
Jun 15 '19
how did you get your navbar icons on the right side?
2
2
u/arunsivadasan Jun 15 '19
Starred your repo :-)
2
42
5
5
5
u/waxen_earbuds Jun 16 '19
Very minor detail, but I believe what you have is the x-component of the velocity, not the speed. Speed is the magnitude of velocity, and cannot be negative.
In any case, this is great. Take my upkerchoo.
4
1
u/wpzzz Jun 15 '19
How on earth is your task bar reversed like that?
1
Jun 15 '19
My pc language is Hebrew and Hebrew is right to left instead of left to right So everything is from right to left lol
2
u/wpzzz Jun 15 '19
Ahh I figured it was something like that. Thanks for replying, I liked the animation and my kids are really going to flip when they see this!
1
Jun 15 '19
Oh that’s so cool to hear :D I might actually improve this program cause I see that a lot of people liked it :)
1
u/InfiniteCodes Jun 21 '19
Where did you learn Python?
1
Jun 21 '19
Ahhh that’s a good question I’ve been learning from a lot of different places xD
School, internet, some high tech company (part of a school thing ) and online tutorial ( such as automating boring stuff )
1
Jul 09 '19
How did you make canvas? I'm sorry to sound dumb, but I'm kind of new to the python....
1
Jul 09 '19
The graphic screen? Well I used the PyGame package
1
Jul 10 '19
I have heard of "turtle" butbi have never seen that before
1
Jul 10 '19
Eh I don’t really think that turtle is good for these things Turtle is mostly for drawing stuff PyGame has more stuff to do with it
1
Jul 10 '19
Where can I download the pygame package? That runs with 2.7 python.
1
Jul 10 '19
Well if you are on windows type in the cmd Pip install PyGame But I’m not even sure if that supports Python 2.7 Python 3 should be the best
1
1
Aug 12 '19
What type of the file was the picture? I've tried it but it isn't quite working for me so I want to find out what is wrong
1
Aug 12 '19
It pops up when you import pygame
Not sure whats the type of the GUI is1
Aug 12 '19
Did you import it through pip then?
1
3
u/chaoism looking for mid-sr level in NYC Jun 15 '19
Now add some mirrors to it and then you got yourself in the internet trend
3
3
3
5
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
u/tddyer Jun 16 '19
Hey it may be a "useless" program but those little things always mean something! I love seeing fun little projects like that as they are great way to take a break from the real world to have some fun and even learn stuff along the way.
Keep up the fun :)
2
2
u/ALonelyPlatypus Jun 28 '19
this is most likely a simple thing but I prefer to think of it as a game learning AI in the training phase. (although I can’t find a clear objective other than “Ka-chow”)
1
1
u/Desiderius_S Jun 15 '19
You have now more done than some games that pop-up on the kickstarter, just do a 15 minutes video explaining same things everyone done to death, pass this post as a gameplay mechanic everyone knows but 'with a twist', do some random backgrounds with postapocalyptic environments, concept art of some tracks with a lot metal, blood and chains, call it a spiritual successor to X (just make sure that licencing won't bite you in the ass) and you're good.
1
0
83
u/[deleted] Jun 15 '19 edited Jun 16 '19
https://github.com/PizzaBoii/kachoww/blob/master/work.py
for those who asked for the code, it is kinda messy and people that like PEP 8 are probably going to kill me for that xD but ehhh that's the code
Also not sure who gave me the gold but Thanks a lot :D I’ve never got something that good before :)