Search found 1 match

by NCN
Mon Apr 13, 2015 8:24 pm
Forum: Support and Development
Topic: Source code loading from .txt file :P
Replies: 4
Views: 2418

Re: Source code loading from .txt file :P

Make a .lua file for your enemy! Name it enemy.lua and you can use a require-command to use it in your main.lua: require("enemy") You can define functions and variables in enemy.lua and use them by adding "enemy." without quotes in front of them in the main.lua. No need for txt-f...