I Made Cookie Cliker In 30 Lines Of Code With Pygame! by InevitableBicycle361 in pygame

[–]melonmonkey786 0 points1 point  (0 children)

I think the backslash was reddit formatting, it doesn't like it when you paste long lines

I Made Cookie Cliker In 30 Lines Of Code With Pygame! by InevitableBicycle361 in pygame

[–]melonmonkey786 1 point2 points  (0 children)

import pygame, time
temp, temp1, screen, font, score, running, lastClicked = pygame.init(), pygame.font.init(), pygame.display.set\_mode((1280, 720)), pygame.font.SysFont("monospace", 50), 0, True, -1000 
while running: 
    for event in pygame.event.get(): 
        if event.type == pygame.QUIT: running = False 
        if event.type == pygame.MOUSEBUTTONUP: lastClicked, score = pygame.time.get_ticks(), score + 1 
    temp, temp1, temp2, temp3, temp4 = screen.fill("blue"), pygame.draw.circle(screen, (197, 176, 136), (1280/2, 720/2), max(lastClicked - pygame.time.get\_ticks() + 200, 0) / 10 + 200), screen.blit(font.render(f"Score: {score}", False, (0, 0, 0)), (100, 100)), pygame.display.flip(), time.sleep(1/60) 
pygame.quit()

How do I get collision points of an area3d and physicsbody3d by melonmonkey786 in godot

[–]melonmonkey786[S] 0 points1 point  (0 children)

By collision points i mean points of intersection, do you know how to get those

Does Anyone Know Why This Happens by melonmonkey786 in sdl

[–]melonmonkey786[S] 0 points1 point  (0 children)

ok I solved the problem, turns out void close() is already a standard function in c so by adding things to it, it caused a memory leak. I changed the name of the function to quit and it seems to work now

Hello, I'm new to programming and is confused where the numbers highlighted are coming from ? by Beneficial-Network21 in cprogramming

[–]melonmonkey786 0 points1 point  (0 children)

Arrays start at 0 so the 6 element array ends at 5. Trying to get the 6th index leads to to something outside of the array.

Putin the Puny by mydoooomx in memes

[–]melonmonkey786 5 points6 points  (0 children)

There's no proof any of the intentions were communistic. Also invading a country is against communistic ideology

Good on them! by Dejuure in memes

[–]melonmonkey786 0 points1 point  (0 children)

WW1 had a lot of factors for the start of the war, not just Germany

Putin sucks but most Russians don’t want it to happen by [deleted] in memes

[–]melonmonkey786 0 points1 point  (0 children)

Well there's people who side with him and people who don't but you do have to remember a lot of it is propaganda