encompass-cs-docs/content/getting_started/case_study_fna.md

28 lines
1.4 KiB
Markdown
Raw Normal View History

---
title: "Case Study: FNA"
date: 2019-05-22T10:38:01-07:00
weight: 12
---
2020-07-12 20:40:19 +00:00
FNA is a game development framework that uses C# as its scripting language.
2020-07-11 00:06:40 +00:00
It is an accurate re-implementation of the XNA 4.0 API, and has been used to ship several dozen successful games.
2020-07-11 00:06:40 +00:00
I like using FNA because it is highly stable, time-tested, low level enough to be flexible and high-level enough to be easy to use. It's really great!
2020-07-11 00:06:40 +00:00
If you are new to C# scripting, Microsoft has a decent high-level intro here: https://docs.microsoft.com/en-us/dotnet/csharp/tutorials/intro-to-csharp/
I recommend giving the FNA wiki a quick read as an intro: https://github.com/FNA-XNA/FNA/wiki
2020-07-12 20:40:19 +00:00
I have created a template for getting started with an empty Encompass/FNA project: https://gitea.moonside.games/MoonsideGames/Encompass-FNA-Template
2020-07-11 00:06:40 +00:00
2020-07-12 20:40:19 +00:00
Download it and follow the install instructions.
If you are using VSCode, you can hit Ctrl-Shift-B to bring up the build menu.
2020-07-11 00:06:40 +00:00
`Framework` tasks will execute using .NET Framework or Mono, and `Core` tasks will execute using .NET Core runtime.
2020-07-12 20:40:19 +00:00
If you are not using VSCode, you can build and execute from the command line.
I assume if you are savvy enough to not be using some kind of IDE you probably don't need handholding here.
Just run msbuild or dotnet build from the command line. But let me know if I'm wrong!
2020-07-11 00:06:40 +00:00
Once you can Build and Run and the cornflower blue screen of life pops up, we are ready to go!