python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Getting Error "C2059 syntax error: 'constant'" and Im unable to figure out what the problem is
I'm a beginner trying to make Pong using SFML and Visual Studio 2022. I'm unsure of what this error means and when I look it up the answers are unhelpful to me because I am either too new to programmi...
AzureDem
Votes: 0
Answers: 1
How can I change my code for it to be presented on the screen?
def victory_screen():
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
quit_game()
screen.fill(WHITE)
largeText = pygame.font.Font(None,50)
s...
Jayason THAVATHEVATHASAN
Votes: 0
Answers: 1
errors while making game
anyone knows what these errors means?
import turtle
sc = turtle.Screen()
sc.setup(width=1000, height=1000)
sc.title("pong")
sc.bgcolor("black")
sc.tracer(0)
def paddle_a...
Heno
Votes: 0
Answers: 1
Parallel environments in Pong keep ending up in the same state despite random actions being taken
Hi I am trying to use the SubprocVecEnv to run 8 parallel Pong environment instances. I tried testing the state transitions using random actions but after 15 steps (with random left or right actions),...
Swami
Votes: 0
Answers: 1