Coder Social home page Coder Social logo

catastrio / basic-hero-vs-villain-game Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3 KB

In Second Life, this mini game is a battle between a player and a villain. The damage and heal values between the two vary. The villain also has an extremely simple decision tree for his actions.

LSL 100.00%

basic-hero-vs-villain-game's Introduction

Basic-Hero-vs-Villain-Game

In Second Life, this mini game is a battle between a player and a villain. The damage and heal values between the two vary. The villain also has an extremely simple decision tree for his actions. On touch, the player object displays a dialog box to the player. The player chooses between attacking, healing or charging their mana. When the player makes a choice, the player object will send a message on a private channel to prompt the villain to subtract HP. The villain's choices work the same way.

The player loses if their health or mana reaches 0. The villain only loses if reduced to zero hp.

To build this in Second Life, simply create two cubes and put the player.lsl in one and the villain.lsl in the other.

basic-hero-vs-villain-game's People

Contributors

catastrio avatar

Watchers

James Cloos 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.