Tutorials?

Options
Please more documentation!
How do I make a register/login system?
How do I make a game room list?
How do I make a create room system?
How do I make private matches?
How do I add different game modes/game rules?
How do I add a chat system?
How do I add a kill count (who kills who e.g., Player killed Player2)
How do I add a scoreboard?
How do I add a team selector?
How do I add a map selector?

Please need more documentation!

Comments

  • Tobias
    Options
    That's a pretty comprehensive list.
    I'm sorry I can't say "all done, look here". Some of that stuff is there as tutorial, most is shown as implementation with comments (not as tutorial).

    > How do I make a register/login system?
    Look up Custom Authentocation
    http://doc.exitgames.com/photon-cloud/C ... ntication/

    > How do I make a game room list?
    Check the samples! We do this in a "Lobby". How you show it is of course up to you.
    Download PUN and start the Worker Demo multiple times (build, run, run, ...).

    > How do I make a create room system?
    What exactly do you mean?
    http://doc.exitgames.com/photon-cloud/M ... gAndLobby/

    > How do I make private matches?
    Room.isVisible = false will hide a room. You can set it on create. Send the roomname to a friend to let him join.

    > How do I add different game modes/game rules?
    Start client side. We don't have a lot of rules in our demos as they occlude the networking code which we want to show even more than gameplay coding.
    Check the Marco Poli Tutorial and you might be able to derive how you would it in your game:
    http://doc.exitgames.com/photon-cloud/M ... o_Tutorial

    > How do I add a chat system?
    Open the Worker Demo Scene and have a look at the scripts it uses. There must be some chat script.
    It's basically sending RPCs and storing the messages in a clever way.
    If you need chat across room-boundaries, join the Photon Chat Early Access group.
    https://groups.google.com/a/exitgames.c ... rly-access

    > How do I add a kill count (who kills who e.g., Player killed Player2)
    You need to sent the message "i hit you". Best: Use an RPC. Check the Marco Polo Tutorial how RPCs work.
    Then: Reduce the hitpoints accordingly. You know who sent the RPC and which PhotonView it was executed on, so you derive who shot/killed who.

    > How do I add a scoreboard?
    You can have in-room score board. If you know who killed who, just also award and track scores.
    There is no persisten highscore or ranking system in Photon. You can find other middleware for that.

    > How do I add a team selector?
    The GUI is up to you. You can store the "team" per player in custom properties. Use PhotonPlayer.SetProperties().
    To show the teams: Go through the players list (PhotonNetwork.players or similar) and check the custom property for each player.

    > How do I add a map selector?
    GUI is up to you. Once a map is selected, you can store it in a room property.
    In best case, the Master Client (PhotonNetwork.isMaster) can select a map unless one is running.