Skip to content

Instantly share code, notes, and snippets.

View Trifase's full-sized avatar

Luca Bellanti Trifase

View GitHub Profile
@Trifase
Trifase / fighting.py
Created October 12, 2021 18:37 — forked from jcyktor/fighting.py
Python Fighting Game
import random
import time
class Player():
def __init__(self, name):
self.health = 100
self.name = name
self.wins = 0
--- Stubs for functions that object scripts can define which will then be called by C++
--- Called once when the object is initialized
function init() end
--- Update loop handler, called once every scriptDelta (defined in *.object) ticks
function main() end
--- Called when the object is interacted with (e.g. by a player)
--
@Trifase
Trifase / world.lua
Created December 12, 2013 17:16 — forked from jordoh/entity.lua
--- Stubs for world.* callbacks defined in C++.
--
-- DO NOT INCLUDE this file in your scripts, it is for documentation purposes only.
--
world = {
--- Finds all entities in the given region
--
-- @param center Center of circular region to find entities in, or min
-- position of a rect if radius is a 2-vector
--