XEVEXIA shooter
-
Done something different. Instead of starting with ?
Well how I usual start.
Started with what I wanted to achieve first if that makes sense.
Anyway needed two things for my other projects so I decided to make another game.
One of those things is a way to control stuff on the screen the other is a way to display stuff which I will do later.Going to upload
Have a muck around with
Lines 277 278
l turn left 5 deg and go forward
r turn right 5 deg and go forward
f go straight
As in "rrrlllfff|"
And end with a bar symbol
On your switch it's the the key next to shift after you press shift.
Private nxkupnkb94
Id nxkupnkb94 pending
Just noticed that my last submission to the fuze player thing is private too had to look up how to do it again sometimes I find the way to share files is a bit difficult and I had to look up how to transfer sprites for that as well.i might hard code it in it's Only one sprite.
Anyway there is no game as such just a way to control things with a string as the control mechanism will probably concentrate on this for a while as I need some of the things I'm going to do in my other programs -
wow..that is amazing
-
-
-
Docking done
And if you change the target between two values in this case just a larger version of the same pattern you can get a swelling contracting effect.
Probably could change their formation data and switch between different styles on the fly ?
Might have to keep the same amount of aliens overall though. -
-
This is great
-
-
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