Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace FontBug
- {
- class Program
- {
- static void Main(string[] args)
- {
- var app = new Program();
- app.run();
- }
- Otter.Game engine;
- Otter.Scene scene;
- Otter.Text text;
- Otter.Font font;
- void run()
- {
- engine = new Otter.Game("Otter.Text constructor bug", 640, 480, 30, false);
- scene = new Otter.Scene();
- scene.OnUpdateFirst = updateInitial;
- engine.Start(scene);
- }
- void updateInitial()
- {
- font = new Otter.Font("Roboto.ttf"); // Load any font here
- text = new Otter.Text("heh", font, 10); // Crashes here
- scene.AddGraphicGUI(text);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement