Simple artificial intelligence for Corona SDK
- easy connect to the project
- light, fast and easy in use
- flexible
- extensiable
Overview
Creates an object with specific behavior, which can contact (fire, visual contact, collision) with the object having type "player" (and other objects if needed).
Usage
- Download the latest version of file "SimpleAI.lua"
- Put it in your project root directory (for example root/classes/SimpleAI.lua)
-
Connect file SimpleAI.lua to your level file
local newAI = require('classes.SimpleAI').newAI -- because we put file "SimpleAI.lua" to the directory "classes"
-
Create enemy object
local enemy = newAI({group = yourGroup, img = "img.png", x = 100, y = 50, ai_type = "patrol"})
-
Enjoy
Under MIT license
Documentation and code examples at http://simple-ai.blogspot.com
Category:
Contributor:
enbahtov