Minigame coding

Discussion in 'Plugin Development' started by poepdrolify, Jun 19, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    poepdrolify

    Hey Everybody on this forum,

    Well, after a few months of bukkit experience, I wanted to try something new. I want to create my first minigame. I've watched a few tutorials but they have or too less information or aren't finished. Can someone please make me a basic plan on what I all need to create and what method's I need to make, and maybe some small example codes.

    Sorry for my bad English, I'm from the Netherlands...
     
  2. Offline

    ark9026

  3. Offline

    poepdrolify

    @ark9026 I already know that one, but I want to create my own kind of api/core for my server, not depending on any other plugins, except vault or worldedit
     
  4. Offline

    Zombie_Striker

    @poepdrolify
    First, if you any had bukkit experience, then no matter how long you have been doing this you will still be inexperienced. You need to have a full grasp of Java and the way it works first.

    Secondly, if you don't know how to plan what you want, most likely you don't know what you want.

    Finally, here is some basic things you will need :
    • A GameStateManager
    • The GameStates
    • A Thread for taking in data from the game
    • A holder for stats
    • A Scripter (most likely can be put in the GameStates themselves if something should update when a State is Changed), or anything that can implement any changes you want to the game.
    • A Player Mannager
    • (If you have other servers) A Sender that will send data across to other servers.
     
  5. Offline

    poepdrolify

  6. Offline

    poepdrolify

  7. Offline

    Zombie_Striker

    @poepdrolify
    All the things I listed were objects that needed to be created. A GameStateManager would control which GameState should be played. A GameState is a variable that says what should happen. So you can create a variable called LobbyState that has everything that would happen when the player is in the lobby. You can create a state called GameState that has everything that would happen when the game starts. You should get the idea. Everything I had listed were classes you needed to make a game. If you do not know how to create certain things, go into google of youtube and search for "Java Game Development". There should be some tutorials that can help you there.
     
  8. Offline

    poepdrolify

  9. Offline

    Europia79

    @poepdrolify


    Focus on the user and developing your plan + specifications... The code will flow naturally from this.

    This might be helpful:

    The Process of Designing a Product

    Painless Functional Specifications - Part 1: Why Bother ?

    Painless Functional Specifications - Part 2: What's a Spec ?

    So... applied to this specific situation, mini-games: What is a mini-game ? It's one or more players/teams that compete to accomplish the game objective first!

    So... when you have a bunch of players on the server, but only SOME are participants in your mini-game, this means that you'll need code to track those participants. Like an Arena that is a collection of all the teams that are participating, and the Team is a collection of one or more players.

    Also think about your goals: What are all the types of mini-games that you want to support ?

    How will the Admins setup arenas/games ? For example, commands ? Which commands ? Well, you'll need a creation command. A cmd for setting up spawn points for the lobby + teams. Btw, the lobby is generally where players choose their Class & Abilities & Items.

    Hopefully this helps gets you started. Good luck !
     
  10. Offline

    poepdrolify

Thread Status:
Not open for further replies.

Share This Page