# FadeGameFramework **Repository Path**: fuis/FadeGameFramework ## Basic Information - **Project Name**: FadeGameFramework - **Description**: A simple game framework based on SharpDX - **Primary Language**: C# - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2016-01-16 - **Last Updated**: 2024-12-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FadeGameFramework A simple game framework based on SharpDX for fast 2D game development. 3D support is comming soon. ## Getting Started First, import namaspaces. ``` c# using FadeGameFramework; using SharpDX; ``` copy the following code. ``` c# static void Main(string[] args) { const int width = 1024; const int height = 768; using (var game = new Game(width, height, "FadeGameFramework Demo")) { var position = new Vector2(100, 0); var v = new Vector2(1, 1); const int fontWidth = 600; const int fontHeight = 200; game.OnRender += e => { e.RenderTarget.Clear(Color.Black); e.RenderTarget.DrawText("Fade Game Framework", "Microsoft Yahei Mono", 36, Color.White, position, fontWidth, fontHeight); }; game.Dispatcher.Schedule(dt => { position += v; if (position.X + fontWidth > width || position.X < 0) { v.X *= -1; } if (position.Y + fontHeight > height || position.Y < 0) { v.Y *= -1; } }, 0.01f); game.Run(); } } ``` # License MIT License