|
Jordi asked Grok 3 to make him a simple 2D aerial combat game. This is the
second such game, the first one is here.
Reload the web page to restart any of the following. Version 1 is the basic flight model. Acceleration is the space bar, left arrow key is trim counterclockwise and the right arrow key is trim clockwise. There is a green velocity indicator in front of the aircraft. Version 2 adds an adversary, a gun and two targeting aids: a blue ball the center of which is on a line from your aircraft to the adversary's expected location in one second and a green circle the center of which is along a line from your aircraft to adversary's current position. The radius line within that circle indicates the current direction of adversary's velocity. It also adds a damage model: if a plane is hit once, it is damaged, thrust is cut in half and it begins to emit smoke. If a plane is hit 3+ times it begins to emit fire and it can't turn or accelerate, but it can still shoot. The adversary has a simple pursuit logic, but its kind of dumb. It only ever uses full power, which makes it turns large, and it's behavior is odd. It is supposed to turn to avoid the ground, but it hits it regularly. Version 3 makes the adversary a bit more formidable. We might continue adding features to this game. Feel free to make yourself a copy and make any modifications you like! If you put them online, please include a link to this page. |