Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

So... anyone know how to change a list inside a formatter in python?

TerrorbuildLuna
TerrorbuildLuna
screen = "Score: " + str(score) + ''' %s █ %s █ %s █ %s █ %s █ %s █ %s █ %s █ %s █ %s █ ████████████████████████████████''' % (Bpos[1],Bpos[0],Bpos[0],Bpos[0],Bpos[0],Bpos[0],Bpos[0],Bpos[0],Bpos[0],Ppos) print(screen)

I am trying to make a blocks game with python, but I have no idea how to change the Bpos so that it appears to be moving down! Bpos is the block position, Bpos[1] is a "W", Bpos[0] is a space. Ppos is the player position. I used spaces on either side of the screen to make it appear to be movable.

2 years ago

Voters

Comments

TopNew
1
1
TerrorbuildLuna
TerrorbuildLuna

@Coder100
yup, it doesn't work here on repl.it, but it works on VS code

2 years ago
Load more