Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

TIC-80

Fantasy computer for making, playing and sharing tiny games. · By Nesbox

Where should I put .lua file for andriod.

A topic by Bitca created May 10, 2017 Views: 1,157 Replies: 3
Viewing posts 1 to 3

Since the keyboard support in andriod still in dev, I wonder if I can use dofile on andriod.

Does it work? and where should I put the lua file for dofile function?

Developer

It should work. Place game.lua where you want and call dofile('/.../game.lua') with absolute or relative path

Ok, absolute path works, But on andriod where is this file relate to?

For example the tic file is here :

'/sdcard/Android/data/com.nesbox.tic/files/game.tic'

I try put lua file here

'/sdcard/Android/data/com.nesbox.tic/files/game.lua'

and try to:

dofile('./game.lua')

it said file not found.

so where should I put it?

Developer

TIC tries to find game.lua in working directory (folder where TIC app is installed)