7.2 (5 votes)
    GM 6
    April 01, 2008
Dev - DB/form (refering to updated - check code)
    DOWNLOAD (669)
Dev - make AJAX
Screenshots (0)
Dev - Also, on form submission, use GD to resize the image as a new thumbnail file
There were no screenshots provided
Dev - In the submission form, you can now upload a banner image
Spaceship AI
A small project done while on holidays, the spaceships will go towards each other, shoot when facing the enemy, try to dodge bullets and move away from the other spaceship if too close.
Not complex, and not very good to make to computers kill each other, as they tend to spin around the enemy, that's why friction is added. I believe this would work better with a human-controlled spaceship, but it's still fun to watch them shoot each other.
No credit necessary, although if you use it in a game I'd like to know it.

Target platforms:

Like you said, not very complex. You had a large advantage over my Aircraft AI engine, which was the turning to face the enemy. The only problem I see is their constant identical patterns when they're trying to shoot each other. They continue to circle around, only rarely facing each other.

This would be much better off with another player rather than CPUs, as you said. I would've preferred that you put in a controllable character. Making AI is pretty difficult, good job.

Posted by Kilin April 01, 2008 16:32 - 9.6 years ago
| [#01]

You need to have a better turning code, so they won't repeat, also, try using paths, not self made paths, but have them generate a path quickest to get to the enemy and how to face them. I have a script for the turning, and a couple .gex files for the movement planning.
Posted by Xxypher April 02, 2008 8:56 - 9.6 years ago
| [#02]

Its good but not amazing. Also vwhat does the alarm in the spaceships do?
Posted by Mat April 02, 2008 12:42 - 9.6 years ago
| [#03]

@Mat:I forgot to delete that

I'm thinking of improving this, but I still haven't thought of a way to stop them from spinning around each other.
Posted by Unaligned April 02, 2008 15:25 - 9.6 years ago
| [#04]

Posted by DoctorM64 April 03, 2008 19:58 - 9.6 years ago
| [#05]

Remember real AI is supposed to learn. If they spin around each other and haven't shot for a while, then they should come up with a different approach. It's not that hard, really. It's a lot like what my Lixies do.
Posted by Kilin April 03, 2008 21:42 - 9.6 years ago
| [#06]

I adapted it so that they shoot each other more often, it's funner that way but it's not great. Like Doctor said it should have multiple states.
Posted by cata100 April 21, 2008 22:26 - 9.5 years ago
| [#07]

I liked it a lot. after messing with it for an hour or so i made one of the fighters human controlled. having a human fixes the turning error so it's all good now. Message me if you want my fix
Posted by Tikaboon July 01, 2008 2:52 - 9.3 years ago
| [#08]

nice but not the best:l 6/10
Posted by simonb October 18, 2008 6:12 - 9 years ago
| [#09]

Nice, but not very complex. You need to get focus on physics on this example. There were a few disadvantages in this example. You see, the patterns were identical when they shoot each other. And, then, they circle around by just facing each other spaceship. I rather get a 6 out of 10 on that one.
Posted by koldmonster1 February 12, 2010 11:33 - 7.7 years ago
| [#10]

Recent Activity
Active Users (0)