02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

drawBG

Moving code around to get ready for the future.

Video Transcript

00:00This function is just gonna do only drawing draw bg. It's gonna be called a private
00:07Function draw bg second or turn anything all it does is just draw us. What does it draw?
00:13It draws whatever it gets back. Okay, so I'm gonna just grab all this extra. I'm just gonna grab from here actually
00:21grab all this beauty
00:23paste it right here and
00:28I'm just gonna send your
00:30V path is going to put as a parameter instead and that parameter is going to be of
00:38the type of
00:40vector
00:41dot
00:42point just as we've been doing so far and
00:46We could probably take all this and just turn this into draw bg
00:51alright, so
01:00Next step for us is just cleaned our stage a little bit really the the next step for us is first of all draw
01:06Bg in our scenario going back up to where we are because all this is going to be deleted in a minute. All right, so
01:11If we're in the same line, we want to draw definitely that we don't need to add anything to it
01:16We just want to draw

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!