Hey guys, so I’m developing my first game in Corona, and things quickly became, well, a mess… So I started looking into using the OOP style of writing code… I found this blog post by Darren Osadchuk, and it helped a lot. http://www.ludicroussoftware.com/blog/2011/07/06/simple-oop-with-inheritance-in-corona/ What confuses me now, it where I put my game logic, and how I do it, using storyboard… I have a class for the player, for the game logic, game objects, etc… I can’t figurev out how I put my game logic into a class… Do I put it all in one function, or seperate it into sub-funcitons? Let’s say I have a function to start the ‘camera’ effect. To do that I need the player.x and group.x, when I reference that function, do I have to pass in the player and view group so it can move the group? I hope that makes sense… lol Thanks!
-Jake [import]uid: 144504 topic_id: 27383 reply_id: 327383[/import]