Posts

Showing posts with the label beginner

[GODOT for beginner tips] Global app's variables, states...

Image
While trying to develop my first game, I was wondering how to manage my game's "CONTEXT". Like maybe the current level, the global player's score or any other "GLOBAL" variables. GLOBAL variables (static in C#) can be used from any script. 1- Create a "global" script This is the script containing global variables and methods that will be accessible from every other script. Below here is an example of a global script called "App.cs": ==> you can see a static variable called "MainScene". This is the scene that can be accessible from everywhere (like a MENU scene for instance). 2- Make your script global In your project settings, find the "AutoLoad" tab and ACTIVATE the script "Global variable" parameter. Then you will be abble to access the script from everywhere. 3- Example of accessing the global variables In my mainscene script, I instantiate the app's (app.cs script) global variable by accessing it

[Flutter] Splashscreen (native way)

Image
The splash screen is the first screen you see when you start your app. - you can display your logo for instance - and while the splash screen is shown,  your application is loaded (like user data, business data...) In this example we will use flutter_native_splash package. I- Package: flutter_native_splash (for native splash screen) In your " pubspec.yaml " file you have to add the correct dependency, here at less version 2.0.5 # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions # consider running `flutter pub upgrade --major-versions`. Alternatively, # dependencies can be manually updated by changing the version numbers below to # the latest version available on pub.dev. To see which dependencies have newer # versions available, run `flutter pub outdated`. dependencies : flutter : sdk : flutter flutter_native_splash : ^2.0.5 hint : Pubspec Assist extension To auto

Docker for beginners - presentation

Image
I- Introduction II- Docker presentation III- A simple [MySQL / phpMyAdmin] docker example IV- Docker in Windows, how to ? V- Simple Docker glossary VI- Links I- Introduction There are enough websites to introduce to you Docker in detail. This presentation will just remind you the key concepts of Docker. In my posts, I will always talk about Docker embedded in the Windows environment but I presume, all given information will also be valid for Linux and other OS. So, what are we going to see in this post ? As I said, we will remind the key concept of Docker, then we will list some common use cases and all the basic related commands. I will share some links at the end of the post if you want to go deeper with Docker. Let's go ! II- Presentation Docker is 'just' a technology used to virtualize environments (named containers ) in order to run specific applications. It acts like traditional virtual machine but it's much more lightweight. Take