Silent Strike - WIP
Re: Silent Strike - WIP
All directions for subs and torps are typed in. I'll need to find some sort of widget that makes that mouse-able.
Last edited by togFox on Tue Oct 24, 2023 11:07 am, edited 1 time in total.
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
Re: Silent Strike - WIP
360 compass and one mouse click to set direction, easy.
For torpedoes, maybe setting direction by a mouse click on the map.
For torpedoes, maybe setting direction by a mouse click on the map.
My boat driving game demo: https://dusoft.itch.io/captain-bradley- ... itius-demo
Re: Silent Strike - WIP
Sorry - I didn't notice this comment and you are right. what is happening is the torpedo is detected/sensed by the destroyer so it enters "hunt" mode and seeks you out. After a period of time, it will revert back to "cruise" mode. A torpedo spread can help you sink more ships.... it is quite difficult to hit a ship as it always seems to turn when torpedo is closing in.
At the moment, the detection rate is 100%. That will become variable at some point and will be dependent on what the target is and what actions the target is taking.
I think I need a "helm" station and "weapons officer" station that allows me room to do the interfaces you are suggesting.
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
Re: Silent Strike - WIP
Yep, it was quite easy to identify this workaround. However repeatedly entering directions as numbers gets repetitive and not fun.
My boat driving game demo: https://dusoft.itch.io/captain-bradley- ... itius-demo
Re: Silent Strike - WIP
v0.02 is now on codeberg: https://codeberg.org/togfox/SilentStrike/releases
The GUI is still yucky because it's all placeholder stuff to see if I can make the mechanics work. I did add a few things to make things a bit easier to understand but this is very much "dev" version.
There are two significant game mechanics added:
- a ruler to measure distance and angle (0 = north/up)
- a stop watch to measure time
Also a significant bugfix with screen resize/scaling/resolution. 372 lines of code added (which means absolutely nothing!)
Theoretically, you can use the stop watch to determine a targets speed. With the ruler you can work out the targets direction of travel. If you know the targets speed and direction of travel, and have some basic knowledge in math (trigonometry) then you can work out a firing solution and sink a target in one go. Give it a try.
Check the front page of codeberg for enhanced instructions and the release notes to see what new cool things have been added. Thanks for following!!
The GUI is still yucky because it's all placeholder stuff to see if I can make the mechanics work. I did add a few things to make things a bit easier to understand but this is very much "dev" version.
There are two significant game mechanics added:
- a ruler to measure distance and angle (0 = north/up)
- a stop watch to measure time
Also a significant bugfix with screen resize/scaling/resolution. 372 lines of code added (which means absolutely nothing!)
Theoretically, you can use the stop watch to determine a targets speed. With the ruler you can work out the targets direction of travel. If you know the targets speed and direction of travel, and have some basic knowledge in math (trigonometry) then you can work out a firing solution and sink a target in one go. Give it a try.
Check the front page of codeberg for enhanced instructions and the release notes to see what new cool things have been added. Thanks for following!!
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
Re: Silent Strike - WIP
So, after being pretty pleased with my implementation of f = ma, my v0.03 is showing symptoms I really don't have a clue. 8-)
My ships were accelerating and decelerating and turning and all was sweet but as I added more objects of different sizes I noticed ships were "skidding" around the ocean. They would turn fast but their momentum was pushing them sideways and they started strafing. Hilarious - but not right.
I'm going to break my 1-release-per-week rule and rewrite the "engine" to use box2d. I've used Box countless times in the past, including my last project and whilst I was having fun working out all the physics, it's just become a PITA for me so a migration to Box2D next week!
So, v0.03, when released, will have a few small features, Box2D and the most important bit, instructions on how to use the placeholder GUI but even better than that - the theory and math behind hitting a target.
Stay tuned.
My ships were accelerating and decelerating and turning and all was sweet but as I added more objects of different sizes I noticed ships were "skidding" around the ocean. They would turn fast but their momentum was pushing them sideways and they started strafing. Hilarious - but not right.
I'm going to break my 1-release-per-week rule and rewrite the "engine" to use box2d. I've used Box countless times in the past, including my last project and whilst I was having fun working out all the physics, it's just become a PITA for me so a migration to Box2D next week!
So, v0.03, when released, will have a few small features, Box2D and the most important bit, instructions on how to use the placeholder GUI but even better than that - the theory and math behind hitting a target.
Stay tuned.
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
Re: Silent Strike - WIP
Life has been nuts this week but I still found time to migrate all my code to Box2d. The physics now is really sweet. This is the first version where you can actually plan a firing solution and sink targets.
I have added a 9 step tutorial on the codeberg front page. It looks complicated but it is simple vector maths and it is the real maths that was used by submarine commanders.
This update added 328 lines of code. You can try it here in zip, exe and love format:
https://codeberg.org/togfox/SilentStrike
https://codeberg.org/togfox/SilentStrike/releases
This is release #4 so there is much that is not obvious and much to do. With the Box2D stuff out of the way I hope to spend a week consolidating then another week adding new stuff.
I have added a 9 step tutorial on the codeberg front page. It looks complicated but it is simple vector maths and it is the real maths that was used by submarine commanders.
This update added 328 lines of code. You can try it here in zip, exe and love format:
https://codeberg.org/togfox/SilentStrike
https://codeberg.org/togfox/SilentStrike/releases
This is release #4 so there is much that is not obvious and much to do. With the Box2D stuff out of the way I hope to spend a week consolidating then another week adding new stuff.
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
Re: Silent Strike - WIP
Real life distracted me more than I hoped (curse you, real life!) but I've forced a release non-the-less. This release has some important useabilty features and a cool function - sonar. Fog-of-war is introduced so now you need to get close to targets to see them. This mechanic will improve over time - as will all mechanics. A net 198 lines of code went into this release.
Here is the first iteration of the hydrophone station:
It was suggested it should be green because Hollywood always has them green - but is that just a Hollywood thing?
Thanks go gvolkiv for helping me with making fonts scalable and readable.
https://codeberg.org/togfox/SilentStrike
https://codeberg.org/togfox/SilentStrike/releases
Here is the first iteration of the hydrophone station:
It was suggested it should be green because Hollywood always has them green - but is that just a Hollywood thing?
Thanks go gvolkiv for helping me with making fonts scalable and readable.
https://codeberg.org/togfox/SilentStrike
https://codeberg.org/togfox/SilentStrike/releases
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
Re: Silent Strike - WIP
Green phosphor? It was a pretty common compound to make CRT screens of. It had a good retention of light.
Also, radars actually update positions when the bar crosses them, not continuously. The bar refreshes the phosphor in the screen, which fades (as slowly as possible) as the bar gets farther.
Who is online
Users browsing this forum: No registered users and 2 guests