12-17-2020, 08:37 AM
In BeefLang, it doesn't work, that's weird
Code:
using Tilengine;
using System;
using TLN.Data;
using TLN.Enums;
using TLN.Types;
namespace TestTilengine
{
class RasterEffects
{
private String rasterMode ~ delete _;
private int layerID;
public this(String rasterMode, int layerID)
{
this.rasterMode = new String(rasterMode);
this.rasterMode.ToLower();
this.layerID = layerID;
}
// VideoCallback callback = new VideoCallback(MyRasterEffects);
TLN.VideoCallback callback = new TLN.VideoCallback(myRasterEffect);
TLN.SetRasterCallback(callback);
public static void myRasterEffect(int line);
{
Tilengine.TLN.SetBGColor((uint8) line, (uint8) line, (uint8) line);
}
}
}