 Welcome everyone to Vectrec tech demo. This is a kind of just a tech demo of a game I just kind of started working on just to see if I could do it and this was suggested by a channel member named Kevin He's a big Star Trek fan as am I which kind of got chatting on the the chat here In the comments and this this idea came up So anyway here is kind of what I at least had in mind for this game And I'm thinking about like an old-school Star Trek game like the one found on the Commodore 64 So let's take a look here Now I found this on YouTube and I'll try to remember to put the link in below And I'm just gonna go ahead and play just just a quick couple seconds of this so I'll get Dained for copyright, but you can see here. We've got the Star Trek Enterprise. We've got Klingon We've got some I guess these are stars and then we've got a base This is like some really old-school old-school 80s graphics and so, you know, it flies around it does things And there's another screen where you're looking at the different You know the different quadrants and you can scan far away. You've got power and shields You know, there's time. It's just it's just a really cool old-school Game that I played, you know ages and ages and ages ago So this is at least kind of what I had in mind for this this type of game And so let me take you and show you some of the the code idea had had for this But first I wanted to do this with something called vector graphics and vector graphics are basically all line drawings Now I've already done a vector graphics demo and I'll put the link down below as well if I remember if I forget let me know and Basically want to take that and then turn it into a bit more of the game. You just kind of you just saw So this is my enterprise shape So I'm basically trying to figure out the coordinates of you know, the basic outline of this shape Then I made a Klingon bird of prey here and you know, it's kind of that's roughly the shape so yeah, so let's go ahead and I'll show you what I kind of have so far and First I just want to say this is the original vector graphics demo that I did in previous video about six months ago so let's take a look and run this and what I've got on the screen is a bunch of Enterprises and again as I mentioned their vector graphics, so they're all lines So the program is actually drawing each line Every frame so each of these little things there's a scale function I created if you watch the other video I explain it a little bit better than what I'm going to do here. This is just kind of a demo and Yeah, so this is what I started with and then what I've been working on is I took that code and I adapted it and I have at least done my best to make at least the start of a game So before I do that just a quick shout-out to my 16-bit members Kevin who I just mentioned Paul and Jan. Thank you so much for directly supporting the channel And do it definitely appreciate it and if you like join click the join button down below So we go ahead and run that and You can see here. I've got my Starship Enterprise I've got three Klingon birds of prey and I've got like an automatic phaser thing going now It doesn't actually do any damage. I haven't programmed that part yet, but it randomly shoots at the nearest Enemy not because it doesn't destroy them now. I can move my ship around Using my the arrow keys. I do have a photon torpedo. I can fire and you see how it's really slow But once it goes off the screen, then I can fire again and if I do hit one of the enemies oops Well, it runs real I gotta speed that up So let me hit one of the enemies and show you what happens. It just show you the The collisions work Sit here and do that Yeah, the game's running slower because I have OBS studio recording the screen. Okay, so I just shot the enemy and And you can see that's what I have so far you notice again the vector graphics It's just drawing lines and so I have a rotation function in there using some mathematical tricks I guess you'd say so It's pretty straightforward. I've got a vector shape class and I have some code here to determine the width and I'm gonna in the height I'm gonna fix that later and we got a rendering function This is where all the mathematical kind of magic Happens and then I do have something called an AA BB collision So check out my collision detection video where I talk a little bit more about that I measure the distance between some of them for certain purposes. I've got a starship class Which is a child of that vector shape. I've got a photon torpedo class. I've got an enemy class and I just and here's the shapes that as I mentioned came from Measuring these lines and these these numbers here, but you know, this isn't really a tutorial It's just I just want to kind of show you what I was doing and where I was going with this Again Kevin brought this up and I just been really thinking about it a lot and I just want to play around with it and see You know what I could get done You know just with you know an hour Took me about an hour or so maybe two hours altogether just to do a little bit of coding But you know a lot of this is is tricks that I've shown you in other videos and you know I'm using the the turtle module for rendering and You can see here a turtle pen, but other than that everything else is just kind of straightforward basic Python coding I mean see if there's some math involved and Just some a lot of numbers, but nothing too too too complex So yeah, so that's the demo I will put a link down below to github where you can download this and play around with it Hopefully you know just kind of enjoy kind of the old-school Star Trek feel and you know I don't know, you know if or when I'll get to you know make a full game out of this but it's just something I wanted to show you and to You know also for Kevin because Kevin was really into this I think I hope he comments below and I definitely was very much into it And I wanted to just see what I could do with this So yeah, thanks for watching. I know it's a short one, but have a great day and keep on coding. Thanks so much