To attack, click the Attack button. There is a cool down for attacking. The enemy will automatically attack. The first to 0 or less HP loses.
If you do use this code, please give credit. You can copy and paste the fighting instructions. You can give me the link to projects you make with this and I’ll check them out. If you have any questions, let me know in the comments!