ucsb-cs56-projects / cs56-games-subsink

Submarine sinker game
0 stars 1 forks source link

Make subs intelligent #5

Open rhelmot opened 6 years ago

rhelmot commented 6 years ago

Right now, the height charges are spawned at semi-random intervals. The subs, however, do get to interact with the ship each frame, so they know its position. They should attempt to intelligently spawn charges if they think the spawn will hit the ship, with some cooldown interval afterwards.

The idea is that this should make very shallow subs very dangerous.

rhelmot commented 6 years ago

W18 OK 200 points