• Advertisement
Sign in to follow this  

Trouble conceptualizing power-ups

This topic is 1934 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've built a basic pong game, but I'd like to add powerups that will increase or decrease paddle size or ball speed, or do other stuff. However, I'm having trouble coming up with how to implement them in a object-oriented way. Should I make a Powerup class? How do I make different instances have different effects?[font=courier new,courier,monospace][font=arial,helvetica,sans-serif] Should I create a separate class for each type of Powerup?[/font][/font]

Share this post


Link to post
Share on other sites
Advertisement
Have the powerups tied to an entity system, the powerup would be a subtype of entity for game elements like the ball or paddle.

Google entity system for C#, to find out how to make one.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement