Glad you posted this, it was something I was meaning to look at after things settled down fromthe move. Hotline looks tight. Implementing the line-of-sight stuff is impressive. What the heck are those images you posted? Look cool as fuck.
You're watching all the spoiler from the old series. Bad Ceo! Bad! XD
Good on you again for taking the initiative and coming up with your own sprite rasterization effects. If you like that shit, you're gonna live pixel shaders.
Nice job on the I6 homework as well. How did you like this style of homework challenge?
Re: C++ Progress ish
Posted: July 20th, 2017, 3:18 pm
by ceofil
To see if the tracking works properly I put this in the drawing function for enemies:
for (int i = 0; i < indexTrackingPoints; i++)
{
gfx.DrawCircle(trackingPoints[i], 5.0f, Colors::Magenta);
if (i < indexTrackingPoints - 1)
{
gfx.DrawLine(trackingPoints[i], trackingPoints[i+1], Colors::White);
}
}
And if the enemies have the right amount of delay between them the tracking points spawn very nicely one after another and it forms some dna-looking stuff.
I really enjoy every homework so I don't know what to say. This time was nice that it had tests already implemented and that memory leak detection thing so you know if you fucked something up.
Code looks super slick. My son loves the dancing lines game ( just like zig-zag ). Are you going to be adding more levels and music?
Re: C++ Progress ish
Posted: August 4th, 2017, 6:56 pm
by goldengamesTM
How Did You Get The Tank Rotation?
Re: C++ Progress ish
Posted: August 5th, 2017, 10:53 am
by ceofil
albinopapa wrote:Code looks super slick. My son loves the dancing lines game ( just like zig-zag ). Are you going to be adding more levels and music?
Just watched 20 minutes of Dancing Line gameplay...such a lovely game.
I think I'm gonna leave zigzag as it is for now. Maybe, in the future, I'll make it so the path fits any song automatically, so you can play with any song you want.
goldengamesTM wrote:How Did You Get The Tank Rotation?
Converting Vec2 to a float angle, doing things to that float, and converting back.
You can find the functions here at line 132 and 177.
or here