A.I. for racing/shooting

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
HippiHippo
Posts: 1
Joined: Wed May 31, 2006 12:25 pm

A.I. for racing/shooting

Post by HippiHippo »

I am in need of A.I. coding to make cars race on a track and A.I. for shooting when in front or behind another A.I. or player.

And is it hard to make a scrolling map?
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

There are examples for scrolling maps around.

The difficulty of the AI depends a lot on the specs of your game. You may want to give some specifics. I assume something akin to the 2D top-down racers by Codemasters (Micromachines) or Atari's Supersprint?
imhotep
Posts: 41
Joined: Tue Dec 13, 2005 9:15 pm

Post by imhotep »

scrolling is easy, just look at LUMO's example at his page.
http://lumo.at.tt/

AI is a wide field and you should check
1) some LUA examples
2) web resources for other games/blogs/essays about AI

there's a short "tut" by themariokarters, i think either at QJ or maxconsole
wekilledbambi03
Posts: 31
Joined: Sat Oct 15, 2005 10:56 am

Post by wekilledbambi03 »

for a simple ai use some randoms. for example create a random object where the outcome is either a 1 or 2. if 1 shoot if 2 dont. same for speed. 1 accel 2 dont. thats pretty basic but itll do for now. you could check my drag racer game(can be found on pspupdates) for my simple ai
romero126
Posts: 200
Joined: Sat Dec 24, 2005 2:42 pm

Post by romero126 »

AI is code used to control NPC's learn to code. Based on your engine you use your ai will act accordingly.
Post Reply