GithubHelp home page GithubHelp logo

spartanschool's Introduction

Spartan School

This is a minecraft plugin for a minigame called Spartan School

About

Fight off waves of enemies with your friends! Purchase upgrades from the shop and level up your gear. Work together to fend off enemies as the waves get more difficult as you progress.

Contributing

Adding new items

  1. Create a new item class in the shop package. New items will inherit from ShopItem and new entities that fight for you will inherit from ShopEntity. If the item or entity is simply an already existing item with just a material and a price, you can skip this step and map the item in the SpartanShop to a new ShopItem by filling out the constructor in line.

  2. Create a new entry in the SpartanShop item map. This is the item that will be added to the players inventory when they try to purchase the item.

  3. Create a new item in the ShopCommand where the inventory is created and shown to the player. Use the itemFactory to quickly give a Material icon to be shown, a name of the item, and lore.

  4. Listen for the item to be clicked on in the ShopListener OnClick method. When the item is clicked on, pass a purchase command down to the GameLogic class to purchase the item.

Items

Item Price
Shield 5
Snowball 1
Snowman 2
Wolf 4
Iron Golem 10

Backlog

  • Implement item shop GUI
  • Fix the mob death counter

spartanschool's People

Contributors

timothynaumov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.