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

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

0 Members and 1 Guest are viewing this topic.

jcoder42

  • Newbie
  • *
  • Posts: 3
    • View Profile
Doodle jump UML help
« on: May 24, 2018, 02:26:21 am »
Hi,
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.



https://www.draw.io/?lightbox=1&highlight=0000ff&edit=_blank&layers=1&nav=1&title=Doodle%20Jump%20Uml.xml#R7VvRcto4FP0aHpOxLduYx0LS7UOym2l2ZrdPO8IWRo2wWCEC9OtXsiWMkUhNIkxnx51MB1%2FJlnXP1Tn3CjEAk8X2NwaX80eaITIIvGw7AHeDILiJgPhfGnaVIUriypAznFUmvzY84x9IGT1lXeMMrRodOaWE42XTmNKiQClv2CBjdNPsNqOkOeoS5sgwPKeQmNa%2FcMbnlTUJhrX9C8L5XI%2Fsx6OqZQrTl5zRdaHGGwRgVv6rmhdQP0tNdDWHGd0cmMD9AEwYpbz6tNhOEJGu1W6r7vt8onX%2F3gwVvM0NMfLSJA29aTQcet4I3AD1Yq%2BQrJGeQ%2FmmfKe9Iye4NEdSg78ixtHWBhOc6ifUUxURhOgCcbYT%2FfRdXhjdRtWtKoCCUagtmxqQQL%2Ft%2FACMMFFGqIIg3w9QO0J8UL6w%2ByUxvPDH9LuMtGNfrDZ4QWAhrsYzWvBn1eKLa0hwXojPqfAQYsIgPYNFkH1SDZwuhTWdY5I9wB1dywmsuIggfTWeU4Z%2FiMdCop4pmhlX6yWIGz2e5Z3C7AkrQyvR50mD4x%2BZHuG20fEBrrgypJQQuFzh6X4aC8hyXIwp53ShOulJf8aETCihrPSFjnQwPhkIRricjgE%2F9BoRADQ3HODvxxb8NdV8BP6RZRGMJZFgJJnkk%2BSj3RIZ0SDmy0uUGH1B2jMFrcLjwFnKpCOEoBk%2FGR%2BrJU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7OngYbr%2FC5Eh%2BD%2BTYRI0E0L7753sdOgiEvqUsCWO0U9SQnApOhSX9c8Cy7aDn16C%2B%2F8A

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • 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/

jcoder42

  • 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?

jamesL

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