Log In  


Cart #tiny_fight-0 | 2021-03-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
6

Description
Master the art of the battle as you learn to read the behaviour of each of the 7 AI

Outplay the AI by predicting and countering it's move, defeating it for good

Conquer your fate by choosing when to reroll to better your odds of landing or blocking a hit

Instructions
Roll the dice

Choose if you want to reroll or not, if you do, both your dice are rerolled

Choose your attack and defence. If your attack beats or equals their defence you hit them! If their attack equals or beats your defence you get hit!

first to hit 3 times wins!

Controls
↑ and ↓ arrow keys control the cursor

X to select

Have fun and good luck!

6


1

Love it :)

Simple but fun. May I build on this?


Quick question regarding the AI. This part:

        if ai_rolls[1]+ai_rolls[2] < 6 then --maybe make this a function
            ai_rolls[2] = d6()
            ai_rolls[2] = d6()
        end  

I guess that is the 'reroll', shouldn't it be?

            ai_rolls[1] = d6()
            ai_rolls[2] = d6()  

Hi!
Glad you liked it!
Feel free to build on it or take whatever code you need, just credit me if you do haha

and yes, that is a typo, it should be [1] and [2], good catch


Sure will do, credits are already in there =)
Only the layout is done yet, now I have to implement your game principles.
I added a few more heroes that will also have some 'special' abilities. Not sure where I'm heading, LOL, it is more of an exercise.
If you wanna have a snoop:

https://microstudio.io/TinkerSmith/dicearena03/E56MDEAN/

I hope I won't get banned for posting a non-pico link???
If so, my apologies



[Please log in to post a comment]