Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Gun Sight
   
Award
Favorite
Favorited
Unfavorite
Microcontrollers: Calculation, Microcontroller
Tags: v1.10.9
File Size
Posted
Updated
176.263 KB
21 May, 2023 @ 8:44am
14 Apr, 2024 @ 4:46am
2 Change Notes ( view )

Subscribe to download
Gun Sight

Description
Microcontroller is 2x3.
Draws a nice crosshair with an adjustable colour and transparency. Optionally displays your range setting, if your cannon is loaded and how much ammo you've got and a nice black circle around your sight to give you that tunnel aesthetic (gun not included).

If you have any issues or further questions, drop a comment.

Feel free to use in your own creations

UPDATE:
Added a property setting to reduce the rendering step for the crosshair circle drawer. In simple terms, reducing the step makes it draw more circles which eliminates holes in 1x1 sights, at the cost of performance. I'll look into making a more elegant fix in the future.



21 Comments
funiek  [author] 7 Jul @ 5:52pm 
the viewing scope works like a hud, black becomes transparent
Chez :3 7 Jul @ 12:32pm 
it doesnt seem to work with the viewing scope
funiek  [author] 26 Mar @ 10:08am 
nice, glad you found it useful
m3 25 Mar @ 5:17pm 
i made a tank using this
maksslime 11 Jun, 2024 @ 11:51am 
a good controller!:superhotprototype:
Hex3eGone 14 Apr, 2024 @ 5:09am 
Ok, thank you!
funiek  [author] 14 Apr, 2024 @ 4:47am 
done, decrease step to minimum in the new settings to remove holes in 1x1 monitors
note that this is performance intensive, i have a better solution in mind but its gonna take some effort to implement it, this works ok for now i think
Hex3eGone 14 Apr, 2024 @ 4:33am 
OK, thx!
funiek  [author] 14 Apr, 2024 @ 4:26am 
yeah, its an issue with stormworks circle rendering.
for context, the circle works by drawing a circle of a certain radius and then drawing many more bigger than that radius. if you advance the radius in steps of 1 pixel, it's not even slightly filled, so you must advance it in steps of less than 1.
to be honest, i never expected this thing to become relatively popular so i mostly ignored the issues at certain sizes, ill look into it today
Hex3eGone 14 Apr, 2024 @ 1:06am 
The 1x1 "circle around crosshair" has holes in in.