Announcement

Collapse
No announcement yet.

Where to put main game logic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Where to put main game logic

    Hi
    Ive googled this but havent found a clear answer. Im making a poker game and am ready to start making the main poker logic. Basically a while loop for the game and
    a while loop in it for the hands. Where is the best play to put this code?

    #2
    Either in a Deck Manager, the Game State or the Game Mode. It depends on if it is multiplayer and how multiplayer is setup.

    If you don't want to care about this, I suggest you to create a Deck Manager spawned and referenced by your Game State.
    [Released] Multiplayer Combat Editor
    A-RPG Sacred Swords
    Auto-Chess Live Development
    Youtube Tutorials

    Comment


      #3
      Hi, thank you for the reply. Currently i am doing the single player game first and when that is done ill do the multiplayer as im learning while im making the game, dont know anything about multiplayer functionality yet. Ill look into deck manager.

      Comment


        #4
        You should go for the GameState then

        'DeckManager' doesn't exist. I was referring to the common practice of spawning a hidden actor to handle everything about a particular topic, hence the 'deck manager'.
        [Released] Multiplayer Combat Editor
        A-RPG Sacred Swords
        Auto-Chess Live Development
        Youtube Tutorials

        Comment

        Working...
        X