Skip to Main Content
Game Magic
book

Game Magic

by Jeff Howard
April 2014
Intermediate to advanced content levelIntermediate to advanced
376 pages
10h 41m
English
A K Peters/CRC Press
Content preview from Game Magic
Magic as Programming, Programming as Magic 189
//at this location
}
}
function Clear () //this function is used to reset the
//trigger when a summoning has failed
{
global.cor_count = global.cor_count - 1; //since only
//one object could be in this trigger, simply decrease the
//cor_count by 1
isfull = false; //reset isfull to false,
//indicating there are no objects in this trigger
once = false; //once is set to false, so the
//Clear function only gets called once
//otherwise, the Clear function would get called multiple
//times and the cor_count would go down by more than 1
}
function Update ()
{
//this if/else statement will reset ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Game Art

Game Art

Matt Sainsbury
Game Design Theory

Game Design Theory

Keith Burgun

Publisher Resources

ISBN: 9781466567870