Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

pap

patterns

This topic is 6921 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anybody knows a good tutorial in patterns, I already have Andre''s books and also searched Gdev and nothing, if someone could point me to one, please; also a little code would be apreciate. thanks in advance: pap

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by pap

Does anybody knows a good tutorial in patterns, I already have Andre''s books and also searched Gdev and nothing, if someone could point me to one, please; also a little code would be apreciate.

thanks in advance:

pap


I would be interested as well if anyone had some thoughts on the subject.


Share this post


Link to post
Share on other sites
nahhh, surely he means Design Patterns, you know the kind ma and grandma used out of sundays paper to sew new clothing outfits!



Share this post


Link to post
Share on other sites
Do you mean pattern matching?
That''s about the only pattern related AI thing I can think of. Although that is a fair amount of AI and covers neural networks, expert systems and basically any adaptive methodology.

Mike

Share this post


Link to post
Share on other sites
Actually we just need to know a bit more about what you''re looking for.. what kinds of patterns? If you told us what you were trying to do, we might be able to help you a bit better

Good luck,
Adam

Share this post


Link to post
Share on other sites
I think he means patterns has paths predefined and actions predefined to make some kind of AI



----
/ \
/ \
/ \
A B



this is pattern that makes somthing go from A to B followinf tha tpath

i thbink that is what pap meant

Share this post


Link to post
Share on other sites
I suppose that you want simple patterns to move your objects as Akura said.
I think that the example that André give is a good one.
You could create some instructions to move in a direction such as:
N - Move North
NE - Move NorthEast
E - Move East
SE - Move SouthEast
...

And then you could create an instruction with the command and the number of cycles to execute.
For example:
___
/
/___

E 30
S 25
E 30

Look in the code of André to see the complete implementation of this.

Of course you can use patterns to a lot of things.
If this isn''t what you want then you should be more specific about what kind of thing you want to do.

Share this post


Link to post
Share on other sites
First of all sorry about that, I''ve should be more especific. Well the thing is that I want to know how to create the patterns on the fly and also how to implemt them so they can mimic the players action.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!