Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Doodle jump UML help  (Read 2215 times)

0 Members and 1 Guest are viewing this topic.


  • Newbie
  • *
  • Posts: 3
    • View Profile
Doodle jump UML help
« on: May 24, 2018, 02:26:21 am »
I am making a Doodle Jump game in c++ using sfml,
I started building the umlaut and decided to go with a STRATEGY pattern. I don't really know if this is the right choice.
I basically got to a point where I don't know how to continue,
please if someone could take a look at my UML and tell me what they think it will be greatly appreciated.



  • SFML Team
  • Hero Member
  • *****
  • Posts: 10692
    • View Profile
    • development blog
    • Email
Re: Doodle jump UML help
« Reply #1 on: May 24, 2018, 08:19:14 am »
It's great that you're trying to apply some stuff probably learned in university. Personally, I wouldn't spend too much time just "planning" your game and instead try and actually implement it.

In practice strict UML is rarely used and diagrams are often just used to explain things to other people or to get a general overview.

So you got different platforms, as such I suggest you go ahead and implement an abstract base class and a normal and break platform deriving from it. For a start forget about the moving platform and get these two platforms to work. Work as in, they get randomly disributed and rendered to the screen, you can jump on them and one breaks and the other doesn't and you have a player rendered.

It's already quite a bit of work and you'll quickly realize that your UML is missing a bunch of other classes.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
Dev Blog: https://duerrenberger.dev/blog/


  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Doodle jump UML help
« Reply #2 on: May 24, 2018, 09:00:33 am »
thanks for the quick reply @ eXpl0it3r
I am doing this with a friend of mine, and from my experience with OOP (which  isn't that great) is that if the plan is not good then I will get stuck, I situations where I need to get to a function or variable or object that I can't get to, because the hierarchy wasn't build correctly, thats why I wanted to build an almost perfect plan where I won't get to this situation.
Are you saying that I should not use the STRATEGY pattern?
also I don't understand how I am supposed to move the doodle, is he moving upwards? or is the screen and all other objects moving downwards?


  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: Doodle jump UML help
« Reply #3 on: May 24, 2018, 10:09:11 am »