Skip to content

u/polymorphiced

In this archive from Jun 2013 to Nov 2026

2
posts
74
comments
0
media
169
score

What I'm saying, is that a raycast is the most expensive way to do this. If you want to get to a much higher number of enemies, then you should look for cheap solutions.

A lookup table could be as a 2d bool array of pitch and yaw 0-359 degrees* in each axis for each turret, then at build time (or during startup if it's easier) you run the raytest against every combination of angle to fill the array.

When you want to check for occlusion you just take the angle of the turret and look it up in the array to see if it's occluded or not.

This should be pretty cheap if you have many instances of the same ship, so the geometry is the same.

*There are probably better systems, eg polar coordinates, or quantising to 2 degrees etc.

Another option is to simply tell the turret what its firing angle ranges are (eg 20-160° yaw for 0-90° pitch).

3 points

What can occlude a target? Is it other ships, or the target's own ship? For the latter, you could pre-bake a spherical occlusion map around the target, so it's only a simple lookup (based on angle).

For other ships, there must be a cheap way of eliminating most of them from the check - presumably it's pretty rare that another ship comes in between the source and target - you could run this test very infrequently.

2 points

Assets are not protected on any platform. The best way to keep your stuff safe is to make your game the only viable way to play it - ie build a large community, and hard-to-replicate online/social features that don't make much sense without the greater player base (eg leaderboards)

3 points

That's true, in theory. In practice, I've been able to make exactly the game I want, with the exact art style and quality that I wanted.

Technology is all about adding abstraction layers - most people aren't typing assembly any more, or painting individual pixels, or drawing individual triangles. The tools we use now mean we don't have to worry about the fine details of those. AI is just another workflow abstraction. You can pay attention to the details if you want, but it also allows you the luxury of not doing that if you don't want to, and allows you to spend the time & thought where you think it's really needed.

1 points

Yes I think asking it to review your overall code structure isn't useful, because you'll probably have more code than can fit in the context, so it won't be able to read it all in one go. But you could certainly point it at specific areas in sequence and build up a picture that way.

2 points

I use it with my small puzzle game; it's web-based so may not apply directly to you, but one day I threw a simple generic request "do a security review of the user accounts system", and it came back with a bunch of security holes, a some misconfigured Cloudflare stuff.

I also asked it to review the UIs for consistency, and it found a few missing classes, different handling in how usernames were word-wrapped - I had it screenshot every UI looking for overflowing UI strings that contained user info when used with the maximum name length; it found quite a few of those a figured out the best fix for each case.

1 points

Cost is the main factor, but if you can afford to employee people, then you can afford to make them more productive. 

The pearls-clutching reaction that the gaming community has will fade eventually. 

If you have qualms about AI in ways that it contributes code/data to the product, remember that you can still get massive use from it for:   reviewing code, creating plans, bug investigation, prototyping/white boxing, research, discussing ideas, performance review.

3 points

It's good to have a goal, but it sounds like you've got limited experience of game development (outside Roblox), and learning about how games and game engines work is the first step. 

I'd recommend picking an established engine (eg Unity, Godot) as you already have, and following some tutorials to build your first simple game. Once you're comfortable with that, build another, then another, and at some point you'll have an idea of how to start thinking about your own platform.

2 points

It's fine, and by the time you're entering the workplace AI usage will have only increased, and expected. 

The important thing to learn is how to use it well - how to steer it (good prompt authoring, reviewing specs it produces), how to have it self-check (eg having it write tests, validate assumptions).

A chef doesn't grow their own cows, but they still choose to make a Bolognese with them, combine with the right ingredients to make something tasty.

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.