Delta Engine Blog

AI, Robotics, multiplatform game development and Strict programming language

Getting started with NuGet and DeltaEngine

This is a really short and simple guide on how to get started using NuGet to grab the DeltaEngine. If you already know how to use NuGet there is not much to learn here.

Step 1: Create a new project in Visual Studio (2012 works fine, 2010 works too if you have NuGet, other other IDE works as well, just use the NuGet commands). The C# project type does not really matter, a windows app works, a console app is even simpler, but we also provide our own project templates.


Step 2: Now right click on the References to open the NuGet Package Manager (or open it in Quick Launch with Ctrl+Q if you like that feature in VS2012).


Step 3: Enter "DeltaEngine" to see all supported frameworks, select the one you like to use and click Install. To do this step manually see http://nuget.org/packages/DeltaEngine.OpenGL


Step 4: Now you should see all the required assemblies populated. You can safely delete Autofac.Configuration, Microsoft.CSharp and any System.* assembly and even DeltaEngine assemblies you might not need now. Or just leave them there, they won't hurt.


Step 5: The last step is to write some code in your Program.cs file. App.Start is all you need to start up some code. Here the runner interface and dependency injection is used to get the Window class to set the Background color. You can add more constructor parameters if you like or do something in Run code, just experiment around, it is simple (since Delta Engine is really simple right now, not many classes available).


Step 6: Press F5 to run your application. In our case you get a simple window with the specified red background color.


That's it, hope this quick guide was useful. If you have questions, feel free to ask in our Forum!