TechnoBladePlayz-U030JABEJ92

TechnoBladePlayz-U030JABEJ92

0-day streak
If You wanna be a good coder, follow my tips...
https://cloud-nnf9b9d9l-hack-club-bot.vercel.app/0hacked.png
When bored :ultrafastparrot:
https://cloud-dow4uhtrb-hack-club-bot.vercel.app/0day_101.png
Day 5
https://cloud-l5tz9xgyn-hack-club-bot.vercel.app/01.pnghttps://cloud-nyxjzvu73-hack-club-bot.vercel.app/03.pnghttps://cloud-jlkssnt1c-hack-club-bot.vercel.app/02.pnghttps://cloud-cxhkljgjs-hack-club-bot.vercel.app/04.png
Day 4 (you can see it in #code also)
https://cloud-irgjgtd77-hack-club-bot.vercel.app/0day_4.png
Day 3 of sending mail by pycharm (I don't use the direct way)
https://cloud-2y1u2mcyu-hack-club-bot.vercel.app/03.pnghttps://cloud-51eszgl21-hack-club-bot.vercel.app/01.pnghttps://cloud-25jim4zuo-hack-club-bot.vercel.app/02.png
Day 2 of VS Code import pygame import time import math from utils import scaleimage, blitrotatecenter GRASS = scaleimage(pygame.image.load("images/grass.jpg"), 2.5) TRACK = scaleimage(pygame.image.load("images/track.png"), 0.9) def newfunc(): TRACKBORDER = scaleimage(pygame.image.load("images/track-border.png"), 0.9) newfunc() REDCAR = scaleimage(pygame.image.load("images/red-car.png"), 0.55) GREENCAR = scaleimage(pygame.image.load("images/green-car.png"), 0.55) WIDTH, HEIGHT = TRACK.getwidth(), TRACK.getheight() WIN = pygame.display.setmode((WIDTH, HEIGHT)) pygame.display.setcaption("Racing Game For None!") FPS = 60 class AbstractCar: def init(self, maxvel, rotationvel): self.img = self.IMG self.maxvel = maxvel self.vel = 0 self.rotationvel = rotationvel self.angle = 0 self.x, self.y = self.STARTPOS self.acceleration = 0.1 def rotate(self, left=False, right=False): if left: self.angle += self.rotationvel elif right: self.angle -= self.rotationvel def draw(self, win): blitrotatecenter(win, self.img, (self.x, self.y), self.angle) def moveforward(self): self.vel = min(self.vel + self.acceleration, self.maxvel) self.move() def move(self): radians = math.radians(self.angle) vertical = math.cos(radians) self.vel horizontal = math.sin(radians) self.vel self.y -= vertical self.x -= horizontal def reducespeed(self): self.vel = max(self.vel - self.acceleration / 2, 0) self.move() class PlayerCar(AbstractCar): IMG = REDCAR STARTPOS = (180, 200) def draw(win, images, playercar): for img, pos in images: win.blit(img, pos) playercar.draw(win) pygame.display.update() run = True clock = pygame.time.Clock() images = [(GRASS, (0, 0)), (TRACK, (0, 0))] playercar = PlayerCar(4, 4) while run: clock.tick(FPS) draw(WIN, images, playercar) for event in pygame.event.get(): if event.type == pygame.QUIT: run = False break keys = pygame.key.getpressed() moved = False if keys[pygame.Ka]: playercar.rotate(left=True) if keys[pygame.Kd]: playercar.rotate(right=True) if keys[pygame.Kw]: moved = True playercar.moveforward() if not moved: playercar.reduce_speed() pygame.quit()
https://cloud-jhk1c9986-hack-club-bot.vercel.app/0background-black.pnghttps://cloud-2d4rgeud8-hack-club-bot.vercel.app/0pixel_ship_green_small.pnghttps://cloud-l7qkls810-hack-club-bot.vercel.app/0pixel_ship_blue_small.pnghttps://cloud-pcxrlhvxq-hack-club-bot.vercel.app/0pixel_laser_green.pnghttps://cloud-g26j5vs5d-hack-club-bot.vercel.app/0pixel_ship_yellow.pnghttps://cloud-1sc5nklcr-hack-club-bot.vercel.app/0pixel_laser_red.pnghttps://cloud-ny8el12wr-hack-club-bot.vercel.app/0pixel_ship_red_small.pnghttps://cloud-j7wkr33rr-hack-club-bot.vercel.app/0pixel_laser_yellow.pnghttps://cloud-bbbtxdaf6-hack-club-bot.vercel.app/0pixel_laser_blue.png
Day 1 of creating a racing game(100 lines) import pygameimport timeimport mathfrom utils import scaleimage, blitrotatecenter GRASS = scaleimage(pygame.image.load("imgs/grass.jpg"), 2.5)TRACK = scaleimage(pygame.image.load("imgs/track.png"), 0.9) TRACKBORDER = scaleimage(pygame.image.load("imgs/track-border.png"), 0.9) REDCAR = scaleimage(pygame.image.load("imgs/red-car.png"), 0.55)GREENCAR = scaleimage(pygame.image.load("imgs/green-car.png"), 0.55) WIDTH, HEIGHT = TRACK.getwidth(), TRACK.getheight()WIN = pygame.display.setmode((WIDTH, HEIGHT))pygame.display.setcaption("Racing Game!") FPS = 60 class AbstractCar: def init(self, maxvel, rotationvel): self.img = self.IMG self.maxvel = maxvel self.vel = 0 self.rotationvel = rotationvel self.angle = 0 self.x, self.y = self.STARTPOS self.acceleration = 0.1 def rotate(self, left=False, right=False): if left: self.angle += self.rotationvel elif right: self.angle -= self.rotationvel def draw(self, win): blitrotatecenter(win, self.img, (self.x, self.y), self.angle) def moveforward(self): self.vel = min(self.vel + self.acceleration, self.maxvel) self.move() def move(self): radians = math.radians(self.angle) vertical = math.cos(radians) self.vel horizontal = math.sin(radians) self.vel self.y -= vertical self.x -= horizontal def reducespeed(self): self.vel = max(self.vel - self.acceleration / 2, 0) self.move() class PlayerCar(AbstractCar): IMG = REDCAR STARTPOS = (180, 200) def draw(win, images, playercar): for img, pos in images: win.blit(img, pos) playercar.draw(win) pygame.display.update() run = Trueclock = pygame.time.Clock()images = [(GRASS, (0, 0)), (TRACK, (0, 0))]playercar = PlayerCar(4, 4) while run: clock.tick(FPS) draw(WIN, images, playercar) for event in pygame.event.get(): if event.type == pygame.QUIT: run = False break keys = pygame.key.getpressed() moved = False if keys[pygame.Ka]: playercar.rotate(left=True) if keys[pygame.Kd]: playercar.rotate(right=True) if keys[pygame.Kw]: moved = True playercar.moveforward() if not moved: playercar.reduce_speed() pygame.quit()
https://cloud-9mku44jqo-hack-club-bot.vercel.app/0image.pnghttps://cloud-mfqai11i1-hack-club-bot.vercel.app/0image.pnghttps://cloud-fmyesfrgy-hack-club-bot.vercel.app/0image.pnghttps://cloud-l5f8ypxfg-hack-club-bot.vercel.app/0image.pnghttps://cloud-7omwgms8j-hack-club-bot.vercel.app/0image.pnghttps://cloud-qmytkcglm-hack-club-bot.vercel.app/0image.pnghttps://cloud-dcq615anu-hack-club-bot.vercel.app/0image.png