improve performance by modifying the trigger function
add the Vector2 lib for the game demos