Posts

Showing posts with the label visual studio

[GODOT] Animate camera depending on touch screen events (C#)

Image
If you develop a 2D game for mobile, like a RPG game seen from top (Zelda like for instance), and you want to navigate on your map just by dragging the screen, here is the simple way to implement it in GODOT. In your level scene you have to add a "Camera" Node and make it the current one: public override void _Ready() { // Ensure the camera is set as current Current = true; } Then create the associated Camera script (in this example in C#). You have to handle Godot input events to animate the camera. The events to manage are: - InputEventScreenTouch - InputEventScreenDrag The goal is to determinate the delta amount of  horizontal & vertical spaces that have been dragged by the user. You can see an example of handling these events in the following code snippet (camera script):  using Godot; using System; public partial class camera : Camera2D { private Vector2 _touchStartPosition = new Vector2(); private bool _isDragging = false; // Call...

Xamarin Forms + Installing Firebase plugin = errors

Image
[Xamarin Forms Shell App + Firebase iOS Auth plugin v. 6.9.2] Last day I added the Google Firebase functionalities to my project, but unfortunately I add some errors just after installing the Firebase Plugin. > Xamarin Forms (Shell app) + iOS Firebase errors adding latest package: ....iOS/MTOUCH: Error MT5210: Native linking failed, undefined symbol: _GULIsLoggableLevel. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (*.iOS)  I found some solutions, and finally the iOS SDK worked with my Xamarin Forms Shell app... Unfortunately, with Xamarin Forms, we still take too much time to solve this kind of problem.  What did I do ? iOS project properties => Set the "entitlements file property" to a default file (the *.plist file can be empty): => iOS Build options: - Add 'mtouch' argument: --registrar:static - and try to set linker behavior to SDKs only Then initialize Firebase in your code: ...

Visual Studio for MAC, review (fr)

Image
If you are a developer, there are many chance that you already used Visual Studio, the famous Microsoft's IDE. Visual Studio for MAC is borned a few weeks ago . But is it a productive tool like on PC ? If you are a Xamarin Developer and never tried it, I suggest you to take a look at this short review to get some clues ! This review is avaible in french on mobilissime.fr : http://www.mobilissime.fr/index.php/2017/06/20/visual-studio-pour-mac-petite-revue-de-lide/

Parse for Xamarin Forms - No PCL, my solution with conditional builds

Image
About Parse In my previous article (or next, we will see ;) I talk about Parse BaaS. This is a 'Back end As Services' that offers you simple but really convenient back end capabilities for storage but also managing users... I approach why I choose this technology for my mobile application, looking for advantages and drawbacks. Parse, after being purchased by Facebook, was closed last year, but fortunately, the source code is open source and Parse still exists . So you can install your own server or use the new Parse on Buddy platform for instance. You can take a look here:  https://buddy.com/parse/ The problem with Parse for Xamarin Forms So, actually the problem is that we can find .NET Xamarin SDK but specifically for iOS and Android frameworks. There is no SDK for Xamarin Forms. The ideal solution could be the following: Many 'pseudo' solutions can be found on internet but I will give you mine, using conditional builds in Visual Studio. I ...

[Fast&Furious guide] VS 2017, how to change IDE's language

Image
Visual Studio is now available to download. In my case, I used the english web installer to install the english version. But I was a little bit surprised (or not) to see that the installed version was setup with the same language as my operating system. So here is the simple steps to change the IDE's language: 1- Run Visual Studio 2017 installer (in administrator mode) then click"update" button of the instance you want to update: 2- Then click on the language modules tab 3- Then check all languages you want to use in your IDE 4- Restart Visual Studio then go to Menu / TOOLS / Options / (Environnement - International Settings) menu 5- Finally choose your prefered language in the languages combobox. Note that you can choose 'Same as Microsoft Windows' option. Restart and enjoy programming !

Typescript and Angular 2

Using angular is a very popular way of building websites, webapplications. You probably know that the version 2 is coming, with breaking changes. Visual studio 2015 seems to be welcoming this new version. Take a quick look at this video: https://channel9.msdn.com/Events/Visual-Studio/Visual-Studio-2015-Final-Release-Event/TypeScript-and-Angular-2-in-Visual-Studio-2015

Visual Studio 2015

Did you ever wonder how Visual Studio is made? Look at this video, and see the changes that happened since older versions of VS. https://www.microsoft.com/france/visual-studio/evenements/visual-studio2015.aspx

VS2013 Xamarin's incompatible plugin when installing VS2015...

Image
As a good .NET developer, yesterday I installed the new Visual Studio 2015 IDE to discover all its new features... VS2015 installed ! I was previously developping mobile apps with Xamarin on VS2013. So as I am impatient I installed VS2015 without thinking of all the modifications it can bring to my environment... And bingo ! When I started back VS2013 to edit my Xamarin's projects, I had a bad surprise: iOS & Android projects no more compatible... But, fortunately, I find a really quick solution to restore Xamarin compatibility with VS2013. In fact in the windows programs / functionnalities menu, I  changed the Xamarin app components configuration like above: Xamarin, change installation Xamarin for Visual Studio 2013 is disabled ! Re-enable it and it s all good :) And go you can continue to develop Xamarin projects with VS2013 !

Visual Studio Code: a new IDE is born!

One important announcement at the Build conference is the release of a new IDE. It is called Visual Studio Code and it is a cross platform editor. It runs on Mac Linux and... Windows ;). It has Intellisense, supports multiple languages, has debugging and git built-in. Visit https://code.visualstudio.com/ to get more information & download.

Add Xamarin.Forms intellisense to VS2013

Image
Actually we can edit 'XAML' Xamarin forms but we don't have access to the designer. And more there is no auto-completion available. Hopefully there is a way to add it ! (ref: http://www.cazzulino.com/mobileessentials.html) In Visual Studio: Options\Extensiosn and Updates, add the following entry: http://gallery.mobileessentials.org/feed.atom Then you will have access to the following extension: You are ready to code in XAML !