Discuss using and improving Lua and the Lua Player specific to the PSP.
Moderators: Shine, Insert_witty_name
- Posts: 1
- Joined: Wed May 31, 2006 12:25 pm
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?
- Posts: 426
- Joined: Tue Jul 12, 2005 7:00 pm
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?
- Posts: 41
- Joined: Tue Dec 13, 2005 9:15 pm
scrolling is easy, just look at LUMO's example at his page.
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
- Posts: 31
- Joined: Sat Oct 15, 2005 10:56 am
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
- Posts: 200
- Joined: Sat Dec 24, 2005 2:42 pm
AI is code used to control NPC's learn to code. Based on your engine you use your ai will act accordingly.