Coder Social home page Coder Social logo

snipe-aimgame's Introduction

Aim Minigame

More Work By me - https://snipe.tebex.io/

How to download

  • Download the resource from here
  • If it has -master in the name remove that
  • Put it in your resources folder
  • Add it to your server.cfg
  • Start the server

How to use

local config = {
    initializingTimer= 2, -- in seconds before the game starts
    gameCountDownTime= 15, --in seconds how much time they have to complete the game
    totalCorrectClicksAllowed= 3, -- total number of correct clicks required to win
    totalWrongClicksAllowed= 2, -- total number of wrong click they can do before losing

    chooseRandomBubbleColors= true, --if false singleBubbleColor will be given if provided else color from code used 
    singleBubbleColor= '', --optional - if not provided, color from code will be used
    chooseRandomSizeBubbles= false, --if false singleBubbleSize will be given if provided else size from code used 
    singleBubbleSize= '1'--optional - if not provided, size from code will be used -> value should be integer values from 1 to 3
}
local result = exports["snipe-aimgame"]:openAimGame(config)
if result then
    print("winner")
else
    print("loser")
end

Open the minigame based on command

RegisterCommand("mini", function()
    local config = {
        initializingTimer= 2, -- in seconds before the game starts
        gameCountDownTime= 15, --in seconds how much time they have to complete the game
        totalCorrectClicksAllowed= 3, -- total number of correct clicks required to win
        totalWrongClicksAllowed= 2, -- total number of wrong click they can do before losing

        chooseRandomBubbleColors= true, --if false singleBubbleColor will be given if provided else color from code used 
        singleBubbleColor= '', --optional - if not provided, color from code will be used
        chooseRandomSizeBubbles= false, --if false singleBubbleSize will be given if provided else size from code used 
        singleBubbleSize= '1'--optional - if not provided, size from code will be used -> value should be integer values from 1 to 3
    }
    local result = exports["snipe-aimgame"]:openAimGame(config)
    if result then
        print("winner")
    else
        print("loser")
    end
end)

snipe-aimgame's People

Contributors

pushkart2 avatar

Stargazers

Vyve avatar  avatar Yamada Taro avatar Chiantine P. Manigos avatar Sandalots avatar Magu avatar ᐯIᖇᑌᔕ avatar Pattarapon Koomphon avatar Kocaka avatar

Watchers

 avatar  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.