Assets 2

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

  1. Download the latest version of file "SimpleAI.lua"

  2. Put it in your project root directory (for example root/classes/SimpleAI.lua)

  3. Connect file SimpleAI.lua to your level file

    local newAI = require('classes.SimpleAI').newAI -- because we put file "SimpleAI.lua" to the directory "classes"
  4. Create enemy object

    local enemy = newAI({group = yourGroup, img = "img.png", x = 100, y = 50, ai_type = "patrol"})
  5. Enjoy

Version summary

  • Added new features to provide better control the logic of AI (enemy:SwitchDirection(), enemy:stop)
  • Added feature enemy.withoutLimit that allow AI walk free
Under MIT license

Documentation and code examples at http://simple-ai.blogspot.com

Jun 15, 2017

v1.7

Add files via upload

@NickEnbachtov NickEnbachtov released this Jan 22, 2017 · 8 commits to master since this release

Assets 2

Version summary

  • Added example project

@NickEnbachtov NickEnbachtov released this Jan 19, 2017 · 13 commits to master since this release

Assets 3
New option for animated objects
Fixed bug with deleting multiple enemies
Jan 14, 2017

v1.3

Fixed bug with creating multiple enemies
Fixed bug with creating multiple enemies
Jan 4, 2017

v1.2

fixed remove object bug
fixed remove object bug
fixed bug when object go after player

@NickEnbachtov NickEnbachtov released this Jun 20, 2016 · 18 commits to master since this release

Assets 3
direction upgrade on ai_type "patrol"
Jun 20, 2016

v1.0

Update v1.0