Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

2d collision handling jump table

void handle_mario_bumpable(object1 mario, object2 bumpable) { ... }void handle_mario_turtle(object1 mario, object2 turtle) { ... }void handle_mario_wall(object1 mario, object2 wall) { ... }...void handle_collision(object1 general_object, object2 general_object){	if object1.type == mario and object2.type == bumpable then handle_mario_bumpable(object1, object2)else 	if object1.type == mario and object2.type == turtle then handle_mario_turtle(object1, object2)....}
Source by gamedev.net #
 
PREVIOUS NEXT
Tagged: #collision #handling #jump #table
ADD COMMENT
Topic
Name
8+6 =