Beginner C++ Game Programming DirectX Tutorial 8.0 solution

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
Song
Posts: 3
Joined: March 10th, 2020, 3:27 pm

Beginner C++ Game Programming DirectX Tutorial 8.0 solution

Post by Song » March 10th, 2020, 3:49 pm

Hi! My name is Song.

Your Solution is elegant!

Please check my solution too. Is it complicated?

I used git to first. Can I ask a question with a link like this?


https://github.com/YongGwang/Test/tree/master

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Beginner C++ Game Programming DirectX Tutorial 8.0 solution

Post by chili » March 11th, 2020, 4:57 pm

It doesn't let me view the file cuz it's too big :D
Chili

Song
Posts: 3
Joined: March 10th, 2020, 3:27 pm

Re: Beginner C++ Game Programming DirectX Tutorial 8.0 solution

Post by Song » March 11th, 2020, 5:41 pm

Oh, I couldn't confirm . Thank you.


void Game::DrawFace(int x, int y)
{...}

void Game::DrawPoo(int x, int y)
{...}

void Game::DrawGameOver(int x, int y)
{...}

void Game::DrawTitleScreen(int x, int y)
{...}


I reduced the drawing part and uploaded it again.

I am always worried because have a habit of thinking complicatedly about the problem.

If it's time later, hope you to produce a video on How to think solve problem.

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Beginner C++ Game Programming DirectX Tutorial 8.0 solution

Post by chili » March 12th, 2020, 3:54 am

I mean, if it works, that's the most important part. No real need to try and perfect everything when you're still learning new stuff all the time :)

I will say I'm not sure about why you want/need poo1colScreenRight and why you're passing it in by reference in a bunch of places. Seems like there should be a much cleaner way to achieve the same effect.
Chili

Song
Posts: 3
Joined: March 10th, 2020, 3:27 pm

Re: Beginner C++ Game Programming DirectX Tutorial 8.0 solution

Post by Song » March 12th, 2020, 4:36 am

Thanks for the feedback.

Is it no clear why referenced it...

I will think more about next homework.

You are the best teacher!!

Post Reply