This site is no longer active and is available for archival purposes only. Registration and login is disabled.

A Question on AI


A Question on AI

Postby brendan » Apr 18, 2002 @ 1:00am

User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Postby RICoder » Apr 18, 2002 @ 2:52am

I wrote a BIG LONG THING, then I deleted it. :(

Anyway, it depends on how bad-ass you want to be. If you want to go all out, go get a book on game "AI." I put AI in quotes because I am an AI snob, and don't consider game AI to be anything more than glorified state machines and if-blocks...but anyway...

If you just want to do a normal "AI" thing, you can assign properties to each monster (making each monster its own instantiated class is easiest). Then, per turn, tell it to update. The update can be as simple as checking distance relative to the character against some threshhold set as a property. This is the state machine method, and is pretty expandable.
<iframe src="http://gamercard.xbox.com/RICoder.card" scrolling="no" frameBorder="0" height="140" width="204">RICoder</iframe>
User avatar
RICoder
FOX News Correspondent
 
Posts: 3948
Joined: Jul 10, 2001 @ 1:48pm
Location: the matrix has me


Postby refractor » Apr 18, 2002 @ 9:10am

We went over game AI a bit in a thread before (can't remember which).

Have a look at:



And see if that helps any.

RICoder's right though - a simple state machine for each monster class wouldn't be a bad plan at all... it all depends how "funky" you want to get :D

Cheers,

Refractor
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


mmmm

Postby brendan » Apr 18, 2002 @ 10:05am

oh boy this game just keeps getting better and better! :roll:

I knew I should have kept to simple puzzle games.....

I'm sure to "sell" attract more interest if there are actually thing in the game to kill....?

Heres my idea... create a enemy class.

load the map and for every location that has a partiuclar "enemy" add it to a linked list of "enemy classes", giving it details about where it starts etc... then just process the list every now and then ? then if it dies etc it should be a matter of just removing it from the list etc ?

-I've no idea... I PROGRAM PUZZLE GAMES..... :(
User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Postby Alfonso » Apr 18, 2002 @ 2:10pm

Alfonso
pm Member
 
Posts: 18
Joined: Apr 15, 2002 @ 1:19pm
Location: Leeds, UK


Postby refractor » Apr 19, 2002 @ 9:53am

The usage of design patterns (singletons, managers, factories, etc) in games is covered quite well in "Game Architecture and design":



Cheers,

Refractor
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby BurningSheep » Apr 20, 2002 @ 12:17am

Do you want custom Snails levels? Click
User avatar
BurningSheep
pm Insider
 
Posts: 1226
Joined: Apr 12, 2002 @ 11:49pm
Location: The Netherlands


Postby Robotbeat » Apr 21, 2002 @ 3:01pm

Die, Palm, Die. If that offended you, then get rid of your Palm OS device.
User avatar
Robotbeat
pm Member
 
Posts: 827
Joined: Jan 28, 2001 @ 4:52pm
Location: In your mind...


let me clarify...

Postby brendan » Apr 22, 2002 @ 1:28am

User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Postby BurningSheep » Apr 22, 2002 @ 1:34am

Do you want custom Snails levels? Click
User avatar
BurningSheep
pm Insider
 
Posts: 1226
Joined: Apr 12, 2002 @ 11:49pm
Location: The Netherlands


Postby RICoder » Apr 22, 2002 @ 2:28am

<iframe src="http://gamercard.xbox.com/RICoder.card" scrolling="no" frameBorder="0" height="140" width="204">RICoder</iframe>
User avatar
RICoder
FOX News Correspondent
 
Posts: 3948
Joined: Jul 10, 2001 @ 1:48pm
Location: the matrix has me


Postby BurningSheep » Apr 22, 2002 @ 2:38am

Do you want custom Snails levels? Click
User avatar
BurningSheep
pm Insider
 
Posts: 1226
Joined: Apr 12, 2002 @ 11:49pm
Location: The Netherlands


Postby brendan » Apr 22, 2002 @ 2:46am

User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Postby RICoder » Apr 22, 2002 @ 4:30am

Turing's test, meaning the test of AI as developed by Turing and extended by followers of such things.

But, moving on, I think this is a really interesting conversation to have. AI is one of those pet-projects I find myself wrapped up in from time to time.
<iframe src="http://gamercard.xbox.com/RICoder.card" scrolling="no" frameBorder="0" height="140" width="204">RICoder</iframe>
User avatar
RICoder
FOX News Correspondent
 
Posts: 3948
Joined: Jul 10, 2001 @ 1:48pm
Location: the matrix has me


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum