Hello Stairdancers!
I made a lot of things in these 5 hours:
I think that’s all, time to ship!
I also compiled it to Linux and Windows. I tried WASM but I gave up. Too much skill issue
Stay hydrated ![]()
note: don’t let me do textures again 
I added a better representation of what’s going on (I think)
Now you know when the engines/weapons are broken!
Also:
Ship time is approaching very rapidly…
Stay hydrated ![]()
I finally got some motivation to work and remade the attack logic! now it’s peak!
…at least I think so, correct me if I’m wrong
The rotations now don’t take a ducking hour, the ship immediately starts, and it rotates during a slow movement. When it rotates, it starts to actually accelerate.
Also, I think I’ll just make a battle sim for now, school gets harder and harder, Shattered Atlas is finally starting to be made…
So yeah, I’ll probably make a battle sim and finish it in a year or so.
Stay hydrated! ![]()
insert scream idk
This was pure pain in the beginning, I had no ideas how to accomplish the fighting mechanic.
It still isn’t done 100%, I need to make a simple algorithm for the NPCs and clear signalization which module is getting hit (and if it’s getting hit at all…), but yeah…
I’ve made it so there are three parts: core, weapons and engines. And shields. shields are getting destroyed first.
I’m injuring them based of what’s the current position of an attacker in relation to the target. Then, I basically blast X of damage (13 in this case) on the specific part.
So, regardless of the position, shields wear out first. Then, if standing “behind” the ship, engines are attacked. If the attack is happening from either left or right, the weapons are going to leave this world.
If weapons are destroyed, you can’t attack other ships. If engines are destroyed, you can’t move.
If either of them is already destroyed, it’s uncovering the core part, which, if destroyed, the ship finally despawns.
You can also attack the core when you’re in front of the target.
Now I need to make an algorithm for the NPCs, which will SUCK, cuz I don’t have a single idea on how to do it…
That’s all for now, stay hydrated ![]()
I did it…
I basically made an error (don’t ask me why) in my code: I entered a FHD RESOLUTION’S RATIO instead of FHD RESOLUTION itself…
I think I needed some sleep back then lmao
Anyways, I made this:
That’s all for now ig, health bars and attacking next!
Or maybe stations I’m not sure. You can comment to suggest one!
Stay hydrated ![]()
I’ve wasted around an hour on trying to get the rotations to work smoothly (earlier it just snapped in place)…
Nevertheless, I fixed everything I destroyed (accidentally or not) and managed to make everything in around 20 minutes… the rest is just debugging my error-prone code lmao
I also added a new triangle ship!
Next step: Add giving orders manually. This will be hard…
Stay hydrated ![]()
Ok so I managed to do what is shown in the video ig, it was quite easy tbh.
Have some code:
if distance_to_finish < 1. {
linvel = Vec2::ZERO;
} else if distance_to_finish <= current_speed as f64 * 42. {
vel.brake(acceleration, &time);
} else {
vel.add_from_endpoint(pos, *endpoint, max_vel, acceleration, &time);
}
Here’s what I did ealier (I was sooo tired, okay? dont even ask about it
):
if distance_to_finish < 1. {
vel.linvel = Vec2::ZERO;
} else if target_speed == max_vel {
vel.add_from_endpoint(pos, *endpoint, max_vel, acceleration, &time);
} else {
vel.brake(acceleration, &time);
}
Stay hydrated (and don’t hate on me) ![]()
So I made basic A -> B travel. It works, but only on one example (and not every time)…
The next step is to fix it and add rotation at the beginning. Then I’ll experiment with more ships, and add manual orders (that means YOU decide, where the ship goes).
TODO:
Stay hydrated ![]()
”-4Y: Frustrations” (the name can change as the project goes on) is starting as somewhat of a X4: Foundations parody.
The base gameplay concepts would be similiar: You manage a fleet of your own faction; You trade (or fight) with NPC factions; and grow your empire.
The only downside? I can’t into 3D for now, Stardance is slowly ending and school is getting intense, so if I’m gonna ever make a proper X-like strategy, with 3D mode and everything, it’s not soon.
For this month I’ve planned basically a 2D economy/grand strategy. Nothing more I guess.
This project is unofficial, I don’t own anything that’s Egosoft’s. Basically a fan parody that can turn into a playable, open-source alternative.
Anyways, here’s what I did: In Bevy v0.19.1, I made a few helper functions, few structs which I don’t use yet and automated drawing. Also a basic fighter icon texture.
Stay hydrated ![]()
I vibecoded the rest and added the web version on my github.io site. I’m sick of it. I hope it’s the last thing I touch there…
Well… it works… right?
I hate WGPU.
It was supposed to be a breadboard…
I’m trying to abandon this ASAP to not lose my sanity.
AI made this even worse. I’m not coming back to rendering anytime soon.
I made a rendering engine in wgpu and dioxus native. I used AI for this, as it’s my first project like that.
Next goal: add an actual interface and a PCB to spawn.
The cube is an AI generated example. I’ll hopefully won’t use AI again. I did this for learning purposes, not because I’m lazy.