Jump to content

Architecture for a soccer game


Recommended Posts

Hi all,


I'm very new to Phaser and I'm having a hard time trying to figure out a good architecture for a very simple game:


It is a soccer game where numbers (fonts) are the players and one of the players moves the ball around (2D, top-down camera (table-top like)) accordingly to user's interactions.



My naive architecture is:


- team A is added to group teamA, team B to group team B.


- by using ARCADE physics I would move the players and ball around


- would run some AI every frame or so, so the other players would chase the ball too.


I don't need any real physics applied to the elements, but I need collision detection.


Any ideas?




Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...