XEVEXIA shooter
-
-
This is incredible fascinating to watch. Is swarm programming a lot of advanced maths? Or does this more need art skills to define paths?
-
@spikey neither it's pretty easy. If you under stand sin() and cos() you can make a homing function. The paths are held in a string.
So you have a string like so
path = "ffflllfffrrrffflllfffrrr"
If path[count] = f then alien[ this ].pos += sincos( alien[ this ].angle ) * speed endif
If path[count] = l then alien[this].angle -= 5 end if
Same for r except add 5
At each update() add 1 to count so you go through the string path[count]
This will do a little zigzag.
Down load the code and have a look and change the string
Soon I'm gunna update the code with the extra function for homing docking and spawnpoint after I write it. That would be a lot of code to wade through so i might upload as separate thing
The first upload is less than 300 lines and hopefully well commented so you can understand.
If you have any questions only to happy to help. -
Oops I didn't mean to do that.
Updated and overwrit the old file so same download code.
Pending.
Nxkupnkb94
So
Still not a game. not my intention.
So feel free to change alter reuse or whatever
Where we are now
So look through the code and specifically the functions to see how it's done and give it a go in your own projects.
For me I'm going to try and Chuck it into the fuze 3d engine. Haven't mucked with 3d for about a decade so should be interesting.
That's why I haven't bothered with the graphics to much at this point.
But I have set it up so there's a central point everything operates off.
So hopefully cos I haven't really looked hard at the 3d stuff it won't be to much trouble.
Famous last words.
That's this week's mission. -
Ridiculously good, very nicely done
-
@xevdev Thank you, I am looking forward to have a look at that. This is another very unique achievement of this community.
-
-
So I need a flight sim.
Currently this just points directly at the center of the centre?
For a flight sim I just need the centre to move and the camera to follow that point or actually a point that is offset so I can see where I'm going. Or else I'm looking at where I was going to be if was on a straight line. Not to good.
This code before I do that is shared pending
Q535mnd94
Where is this going ?
I want this for maelstrom.
And I'm going to clip the range of actions that the flight controls can do because although I like the idea of elite style 3d roaming in practice they suck.
Cos I end up following arrows and still get shot in the butt. -
Ummm your download code is missing a number or letter
-
@LinkCraft Looks like it should be Q5353MND94
-
Oops.
Thanks @pianofire