Python Forum

Full Version: I have an idea and don't know where to start...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So, my girlfriend is coming out of hospital soon and we both got into coding during lockdown. I want to suprise her by coding a game in pygame. I've already started but don't know how to proceed, especially since theres no guide/help to get me started with the main mechanic.
So, the idea is that a sprite that looks like me automatically leaves a trail behind itself that spells her name.
This is my code that i have already. I would just like to get a tip how to start.
This is what programming is all about. Figure out how to program your code. More you program without copying. The more you will learn.

I would use a surface for her name. Then use a rect to color out here name. As you move sprite. You shrink and move the rect.
# Sprite moves.
if cover_rect.w > 0:
    cover_rect.x += sprite_x_movement
    cover_rect.w -= sprite_x_movement

# Draw
screen.fill(clear_color)
screen.blit(hername_surface, position)
if cover_rect.w > 0:
    screen.fill(clear_color, cover_rect)