Python Forum
I have an idea and don't know where to start...
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I have an idea and don't know where to start...
#1
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.
Reply
#2
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)
99 percent of computer problems exists between chair and keyboard.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  class has no idea what i am talking about, and i have no idea how to give it the info TheNumericDolfin 3 2,716 Aug-16-2018, 05:39 AM
Last Post: TheNumericDolfin

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020