am i bad at math or am i bad at javascript
function control_loop() {
if (controller.dx() > 0) {
if (x_vel > 40) {
x_vel = 40
} else {
x_vel += 10
}
} else if (!(controller.dx() < 0)) {
if (x_vel < 0 && x_vel != 0) {
x_vel -= 10
}
}
if (controller.dx() < 0) {
if (x_vel < -40) {
x_vel = -40
} else {
x_vel -= 10
}
} else if (!(controller.dx() > 0)) {
if (x_vel < 0 && x_vel != 0) {
x_vel -= 10
}
}
}
for context, this code just checks if you have an arrow key pressed and then it’ll change the x velocity to move the player, but the left movement isn’t working (player’s velocity won’t reset like normal)
TIL that i can set a sprite’s velocity in makecode arcade right after i spent 3 hours implementing a physics engine from nothing!
wasteof.money has something twitter doesn’t have — a ceo who isn’t tryharding to be relevant
finishing school work is so satisfying…
i always found my multimedia class projects so boring but they’re actually very fun!
this feels scummy
Let’s be real, the best years were 2013 to 2018
Not saying 2019 to 2024 suck, but they’re just… different
nintendo said if i want to get the location of my switch i have to get the police involved? ok, bet
i would love if scratch implemented scripting with javascript or c++ (or python)
it would attract a lot more people to the platform including me, and it would help people get a basic understanding of text-based langs
edit: if anyone wants to actually try this out, try ApuC
help me steal the moon
help me deliver the rarefraction cell to looks to the moon
Nobody has hated you or even had beef with you for the past 4 months.
i'm literally the yaseen of wasteof.money - many people hate me and make up lies about me because i post incoherent shitposts, but i have a cult (affectionate) that agree with everything i do
random thought
why are literally all security cameras fucking dogshit
it looks like they put up a potato running android 6 and called it a “security” camera
i seriously hate my school
“oh well we can’t do anything about it because we can’t accuse random students even if we have video evidence!”
if they gave me a single frame where their face or even their outfit was visible i could literally crack the case in an hour or two.
i’m gonna disable the switch and hope the person turns themselves in from fear. why did i ever choose to go to a school full of criminals…
i seriously hate my school
“oh well we can’t do anything about it because we can’t accuse random students even if we have video evidence!”
if they gave me a single frame where their face or even their outfit was visible i could literally crack the case in an hour or two.
i’m gonna disable the switch and hope the person turns themselves in from fear. why did i ever choose to go to a school full of criminals…
i know, three posts in a day is pretty wacky BUT
would it make sense for my blog project to have a ratelimit of 3 new blog posts per 5 minutes, 250 views per hour (it doesn’t make a db query for everytime someone reloads the page, the posts are cached and the list is refreshed everytime a new post is made so the db doesn’t feel stressed), and a 50 requests per minute for the api (the api makes a new db query for each request)
i might upload a new youtube video about it sometime soon but i’m grounded so y’all will have to wait a few weeks lol…
some interesting features about the blog:
100% flask, python, pymongo
FIRST time i’ve used fetchapi (to make an admin panel)
probably my biggest project that functions properly
my first time using tailwind css
my first time making json configuration files (you can customize fonts, theme color, admin accounts, etc.)
first version on github was made in 4 hours (didn’t have much, no admin panel or CSS)
latest version made in about 12 hours of work (2 seperate days of work)