In today’s tutorial, I will show you how to draw a sprite on the MonoGame window. Use the utility to open the Content.mgcb file.
[mythcat@desk MyGame001]$ cd Content/
[mythcat@desk Content]$ ls
bin Content.mgcb Fedora_logo.png obj
[mythcat@desk MyGame001]$ mgcb-editor
Add the sprite file using the Add Existing Item menu. I used the Fedora_logo.png file then build with the Build button. Add the following lines… Continue Reading MonoGame – Drawing a Sprite using Monogame.
An important element of a game is changing the resolution and switching the game to fullscreen. However, I would not like to complicate the tutorial so I will show you simply how to do this in MonoGame. First, create a new C# file and name it ResolutionChanger.cs, and add this… Continue Reading MonoGame – Changing the resolution.
In the last tutorial, I showed you how to instantiate a project in MonoGame. In today’s tutorial, I will show you how to create a file with a class and implement it in the basic project. Create a file in the folder named MyGame001 and rename this file ProblemReport.cs. Add… Continue Reading MonoGame – Use a new class in the base example.
Today I started a new series of tutorials for those who follow this website related to C# programming and the .NET library called MonoGame. The official website comes with many tutorials and information and documentation. MonoGame is a simple and powerful .NET library for creating games for desktop PCs, video… Continue Reading MonoGame – Install and first test on Fedora 33 distro Linux.
This tutorial will briefly introduce you to the term and features of C-Sharp Generics. The word Generic means not specific. The C# programming language allows users to define classes, methods, static methods, interfaces, abstract classes, properties, events, delegates, and operators. The feature of C# defines classes and methods without defining… Continue Reading C# – First steps with C# and .NET – part 026 .
Refactoring is the process of modifying code in order to make it easier to maintain, understand, and extend, but without changing its behavior., see Wikipedia webpage. If you use an integrated development environment known as I.D.E. then some refactoring commands are present under the refactoring menu. If not, then you… Continue Reading C# – First steps with C# and .NET – part 025 .
C# manages memory allocation by creating its types in one of these locations: Heap, Stack, and Register. A heap is a place in the RAM where dynamic allocations happen. The stack is a Last In First Out (LIFO) bit of memory which is relatively smaller than the heap. Categories Stack… Continue Reading C# – First steps with C# and .NET – part 024 .
In this tutorial, I will show you how to use C # with Google A.P.I. on Linux. You will need to set an authentication key in your google account, see the credentials page. I used Fedora Linux to install the NuGet command:
[root@desk mythcat]# dnf install nuget
Last metadata expiration check: 1:18:10 ago on Sat 06 Feb 2021 10:32:19 PM EET.
Package Architecture Version Repository Size
nuget x86_64 2.8.7-11.fc33 fedora 419 k
Install 1 Package
Total download size: 419 k
Installed size: 1.6 M
Is this ok [y/N]: y
Use this command to install it:
[mythcat@desk CSharpProjects]$ nuget install Google.Apis.Discovery.v1
Attempting to resolve dependency 'Google.Apis (= 1.10.0)'.
Attempting to resolve dependency 'Google.Apis.Core (≥ 1.10.0)'.
Attempting to resolve dependency 'Microsoft.Bcl (≥ 1.1.10)'.
Attempting to resolve dependency 'Microsoft.Bcl.Build (≥ 1.0.14)'.
Attempting to resolve dependency 'Microsoft.Bcl.Async (≥ 1.0.168)'.
Attempting to resolve dependency 'Microsoft.Bcl.Build (≥ 1.0.21)'.
Attempting to resolve dependency 'Microsoft.Net.Http (≥ 2.2.29)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 7.0.1)'.
Attempting to resolve dependency 'Zlib.Portable.Signed (≥ 1.11.0)'.
Attempting to resolve dependency 'log4net (≥ 2.0.3)'.
Attempting to resolve dependency 'Google.Apis (≥ 1.49.0)'.
'Google.Apis' already has a dependency defined for 'Google.Apis.Core'.
… Continue Reading C# – First steps with C# and .NET – part 023 .