Skip to content

Some examples of how CM’s libraries can be used to create some separate apps

License

Notifications You must be signed in to change notification settings

Nubston/actools-arcade

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CM’s Libraries Usage Example (Arcade Corsa, Console Wrapper)

Some examples of how CM’s libraries can be used to create some separate apps. Sadly, the whole integration process isn’t very smooth or nice, but I believe this is still more or less usable.

  • Small WPF app with integrated DX11 renderer. Apparently, WPF doesn’t work well with this sort of stuff, but it was worth a try.

    Offers some sort of gameplay by allowing a player to set new laptimes on Magione and then adding them to the table. Nothing serious.

    Other features:

    • Custom renderer (I’m going to copy it to AcTools.Render later, but it’ll keep being here as well an example of extending original renderer);

    • Player can select custom colors;

    • Switching cars’ models on-fly.

    Arcade Corsa

  • Few hundred lines example of using CM libraries in console application.

    You still would need to reference `FirstFloor.ModernUI` because it provides storage, logging, errors handling and stuff. I’ll try to sort this out later, but for now, please, consider this library as some sort of common basis for all Windows apps I use. 😬 *How are you supposed to code C# apps anyway? If I would do it properly, I would have now like, hundreds of smallest assemblies, and app would weights twice as much just because of their metadata.*

    ConsoleWrapper

Build notes

  • Some of references were added directly as DLL-files. I didn’t use Nuget for all of references because eigher I needed specific libraries locations (this way, I’m able to use 32-bit libraries for 32-bit build and otherwise using simplest .csproj “trick”) or I slightly modified some of them (for example, now JSON-parser works reads numbers starting with “0” according to JSON specifications). All these references are located in Library directory, you can get them here. Or just collect them from scratch, those changes aren’t be very important.

  • You might need to install DirectX SDK to rebuild [Arcade Corsa/Render/Shaders/ShadersTemplate.tt](https://github.com/gro-ove/actools/blob/master/Arcade Corsa/Render/Shaders/ShadersTemplate.tt). But, just in case, builded ShadersTemplate.cs and Shaders.resources are already included.

  • Please, feel free to contact me anytime. I don’t have any experience it open-source, there might be some things I forgot to mention.

About

Some examples of how CM’s libraries can be used to create some separate apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 90.7%
  • HLSL 9.3%