0 AI USED, ALL CTRL + C + V THE HOME WAY (jk most of it written by hand, you can see that by my coding skills XD), All resources in GitHub :))
It is a py program that uses openCV in order to detect game objects, as ball, player and hitting time :DD
As well custom dll since i'm tad insane XD
q - quit
5 - Compact mode
6 - Vision enabled
7 - Bot following
8 - Bot hitting
9 - Simple ai
0 - Reset border
'-' - Funny
(for more detailed read githubs read me since markupp :DD)
Made for #hackberry
No followers yet
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
Found out that py autogui uses 0.3 SECONDS to process input ;-; + screenshot 0.07 secs
(it adds up as rest of code is like 0.0 or 0.005 so it's HUGE) so decided to add C and make it take screenshots and make inputs :DD
(hopefully it's faster XD)
[load img uses pygui screenshot]
[jump, movement uses pygui inputs]
Made him hit and then he beat lvl 3 bot 0-o
Also if you care you can click demo for yt video (12 min of my bot kicking ass, untill not)
Added jumps, they are held depending on how high the ball is
As well have timer when to do double jump if needed
(It looks unresponsive since i have 4years old laptop, and have made some optimizations ;-;)
Added timers and what not :DD
Also bit changed internals on movement again (so i can add jump and other stuff later kek)
So i just got to know that this can be submited to som... SO here are the features i already made in 13hrs :DD
Ball:
- Tracks ball
- Detects if it is red ball
- Detects if it is blue ball
- Detects if there is no ball
- Calculates trajectory based on previous location
- Calculates bounces using stage
- Gets balls position
Stage:
- [r] - to reset stage
- automatically sets stage width and height based on balls position
- used in balls calculation
Hit:
- Detects when the ball is being hit, reads from boombox at bottom
- Freezes updates on ball
Player:
- Detect players position
- Moves player towards balls position (left, right for now)
Also q to quit and i made custom vector 2d with all the tribometry (god help my stupidity for deciding to make it myself XD)