Sanokei / Two-Button-Arcade

A game maker for very simple 8 by 8 pixel games
MIT License
0 stars 0 forks source link

Lua multiline breaks the PixelSprite.add() method #2

Open Sanokei opened 1 year ago

Sanokei commented 1 year ago

using

game['examplePGO'].add('sprite', 'PixelSprite').add(
    [[
     -- string data in here
    ]]
);

Doesn't work because it adds new lines at the end. Im sure I can solve this with a simple conversion or replace of newline with nothing but its not really something I need to tackle right now.

let future me worry about it