O'Reilly logo

Learning ShiVa3D Game Development by Wade Tracy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Scripting in use

All this talk of syntax and APIs is meaningless unless we put it to good use, right? Let's do that now and in the process we will be completing the basic structure of our game—the rest will be eye and ear candy. Excited? I am, let's jump in!

Handling user input

It's the third chapter and we are just getting to the input? Handling the input is a bit complicated and it's better to tackle it now that we have a background in scripting. The reason that input gets tricky is that user input gets passed to MainAI and has to be routed to the appropriate AI from there. This is because our MainAI is a user AI as opposed to an object AI. Object AIs are assigned to actual objects and so their functions are tied to that object. It makes sense ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required