CabinGame/Luxe/math/util.wren

21 lines
No EOL
507 B
Text

import "luxe: assets" for Assets
import "luxe: render" for Material
class Util{
static material_from_image_path(path){
var image = Assets.image("assets/wip/Room")
return material_from_image(image)
}
static material_from_image(image){
var material = Material.create("luxe: material_basis/sprite_pixelated")
Material.set_image(material, 0, image)
return material
}
static copy_list(from, to){
for(i in 0...from.count){
to[i] = from[i]
}
}
}