Is it possible to create truly self contained functions? Take the following example, we have a player library that creates, updates and draws the main character in our game and we have a seperate bullet library that creates, updates and draws our bullets. Both are included at the start of our game. We already have a problem if we try to run these two seemingly seperate functions without one another as the player library checks to see if the user has pressed fire (in the PlayerUpdate() function ) and then calls the CreateBullet() function if he\she has. This is the problem, how can the two truly be seperated so that they both work without each other? Suggestions welcome.
Jason.
Jason.