I've added a reference to my project. It's a PixelEngine.dll and the issue is, that whenever I call a constructor, there is an Exception System.IO.FileNotFoundException
. I checked the path and the dll is in the directory.
Code sample:
using PixelEngine;
using System;
namespace Herni_Engine3D
{
public class RandomPixels : Game
{
static void Main(string[] args)
{
//Vytvořit instanci:
RandomPixels Konzola = new RandomPixels();
//Okno:
Konzola.Construct(200, 200, 4, 4); //<<Here it crashes
//Spustit:
Konzola.Start();
}
//Každý snímek:
public override void OnUpdate(float elapsed)
{
for (int i = 0; i < ScreenWidth; i++)
{
for (int j = 0; j < ScreenHeight; j++)
{
Draw(i, j, Pixel.Random());
}
}
}
}
}