Log In  

At the command prompt, if you try to load a filename with no extension:

load somefile

It'll try these in order:

somefile
somefile.p8
somefile.p8.png

It'd be nice if #include worked the same way.

e.g. with vector.p8 in the same folder:

#include vector

I think simply re-using the logic from load would work, because it behaves exactly the way I'm suggesting.

As for Lua files, it's probably best if the .lua extension has to be typed out explicitly, because you're essentially leaving the sphere of PICO-8 by using a raw lua file and it makes sense that PICO-8's name abbreviation would not apply. Plus this is the same behavior load already uses, so minimum effort required. ;)

P#90000 2021-04-05 08:54


[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2021-09-23 09:24:39 | 0.009s | Q:7