1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Create minigame

Discussion in 'Development' started by Kyd, Mar 6, 2017.

  1. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    I am learning PHP and PocketMine API, I know create normal plugin for example Auth Plugin ,but what
    if I want to create minigame I already tried ,but everytime there is any problem because i dont know how to correctly do it

    If anyone know about any good wrtitten minigame you can give me link here to help me with minigame development :)
    Thanks
     
  2. xZeroMCPE

    xZeroMCPE Witch

    Messages:
    67
    GitHub:
    xZeroMCPE
    Don't start making mini games right away, if you're beginning to learn php / & the basic.

    Start with something more easy, don't jump from A to Z... Go through all them, one-by-one.
     
    Kyd, AnkitM252, hoyinm14mc and 3 others like this.
  3. hoyinm14mc

    hoyinm14mc Silverfish

    Messages:
    22
    If you're having problem designing the logic and the map of the code, try to draft a mind-map on a paper first before coding. It could help yourself know what you're doing.
     
    SOFe likes this.
  4. kaliiks

    kaliiks Zombie

    Messages:
    250
    I doing that too it is good method
     
  5. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Making a minigame isn't hard. Making a good minigame plugin is hard. You need a graceful system for managing what players are in which minigame, whether the minigame comes in cycles of Matches (e.g. a survival games match), and if yes, how to manage the cycles, how to let players queue for matches, etc. It's possible to make one with minimum knowledge, but if you want to make one that you can easily, for example, change some mechanism for it after you completed most of the code, you need better planning. Good planning always comes with experience, and even experienced developers need multiple attempts to rewrite a large plugin. Maybe not really need to rewrite the plugin, but every time they rewrite it gets a bit better.

    Here is part of a very large plugin. It should be able to work as an independent module, but if you aren't experienced in development enough, you may not understand it well enough. But if you have enough experience in object-oriented programming, this match-based plugin (for spleef) is a good model to start with.
     
  6. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Thanks for your answer, I tried it.
     
  7. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
  8. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    I would recommend starting with a smaller minigame, but it works if you think it does. If you want to find out how var_dump works, why not try it out yourself? :)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.