Skip to content

Releases: NickEnbachtov/SimpleAI

Simple AI for Corona SDK

15 Jun 14:31
Compare
Choose a tag to compare

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

v1.6

22 Jan 16:42
Compare
Choose a tag to compare

Version summary

  • Added example project

v1.5: New option for animated objects

19 Jan 16:48
Compare
Choose a tag to compare
New option for animated objects
Fixed bug with deleting multiple enemies

v1.4: Fixed bug with creating multiple enemies

14 Jan 12:00
Compare
Choose a tag to compare
Fixed bug with creating multiple enemies

v1.1

20 Jun 03:40
Compare
Choose a tag to compare
direction upgrade on ai_type "patrol"