Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML Game Engine for Web (HTML 5 - CSS 3), Android and PC  (Read 5862 times)

0 Members and 2 Guests are viewing this topic.

IsDaouda

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Email
SFML Game Engine for Web (HTML 5 - CSS 3), Android and PC
« on: November 12, 2019, 02:09:40 pm »

Hello everyone,

I present to you is::Engine a 2D game engine created with SFML. It offers you tools (Language Manager, Game Scene, TMXLite, TMXLoader, Box 2D, Config System, Virtual Game Pad for Android, Swoosh, Admob, Tiny File Dialogs, ...) that allow you to easily develop your games on Web (HTML 5 - CSS 3), PC (Windows, Linux) and Android.
Game Engine Github Link

It is also accompanied by a level editor which allows you to create your own level and integrate it into the game engine :
Level Editor Github Link

In this post I will show you how to use it to develop on Android :
It is necessary to know the basics of SFML and OOP in C++ before you can use this engine.
This tutorial is for Windows users. Let's go !
  • Download Android Studio 3.x (recommended version 3.1.3)
  • Download the Android SDK and install it in C:/Android/SDK
  • Download Android NDK android-ndk-r20b-windows-x86_64 : Here
    And create a folder on your disk as follows C:/Android/NDK then extract the contents of the zip in this folder.

  • Set the environment variable ANDROID_NDK with the path C:/Android/NDK
  • Download this version of SFML already compiled for Android NDK : Here
    And extract it in C:/Android/NDK/sources/sfml

  • Download now the engine Here
    Move the is-Engine project to your C:/ (C:/is-Engine)
    Open the is-Engine folder with Android Studio and start the compilation.
If all goes well you will have a Hello World Screen on your Android emulator.



Demo screenshot



Enjoy!

All comments are welcome.
« Last Edit: October 07, 2020, 08:29:05 pm by IsDaouda »

aisman

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: SFML Game Engine for Android
« Reply #1 on: November 19, 2019, 07:44:45 am »
Can you please provide a githup link for your engine and the other stuff.
Thanks a lot.

IsDaouda

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Email
Re: SFML Game Engine for Android
« Reply #2 on: November 19, 2019, 02:10:06 pm »
Hi,
Thank you for your comment.
Here you have the project github link : https://github.com/Is-Daouda/is-Engine

IsDaouda

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Email
Re: SFML Game Engine for Android
« Reply #3 on: December 07, 2019, 04:31:52 pm »
Hello everyone,
An update was made to the project.
- Added the project_cache.zip file which contains the project's caches, this allows you to easily compile the project.

The contents of the zip file are invisible because they are hidden folders. Download the file and unzip the content and they will be visible.
« Last Edit: December 07, 2019, 04:36:04 pm by IsDaouda »

IsDaouda

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Email
Re: SFML Game Engine for Android
« Reply #4 on: January 10, 2020, 06:33:21 pm »
Hi,
New update for is::Engine (Android version) :
- Support for the Box 2D engine

To use it, you must add the directory ext_lib/Box2D in app_modules of your project :
https://github.com/Is-Daouda/is-Engine/tree/master/SFML_AndroidStudio-master/app/src/main/cpp/app_modules

Add the sources of Box2D thanks to CMakeLists.txt :
https://github.com/Is-Daouda/is-Engine/tree/master/SFML_AndroidStudio-master/app/CMakeLists.txt

The sources are already included in the Github CMakeLists.txt.
« Last Edit: January 10, 2020, 06:52:37 pm by IsDaouda »

Cryostriker

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: SFML Game Engine for Android
« Reply #5 on: January 12, 2020, 12:14:23 pm »
It's interesting that it seems based on what  I'm ready that SFML needs the ndk android-ndk-r12b-windows-x86_64, which is marked as obsolete and unsupported by the Android developers. Is there a reason for this? It would be preferable to use the current as quite a lot has changed, but the use of a 4 year old version indicates there is a strong reason.

IsDaouda

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Email
Re: SFML Game Engine for Android
« Reply #6 on: January 12, 2020, 01:59:18 pm »
Yes indeed I had been using the recent versions of NDK some time ago and I had noticed stability problems with SFML. So I preferred to advise the user to choose the most stable version. But note that this may change over time.

IsDaouda

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Email
Re: SFML Game Engine for Android
« Reply #7 on: January 12, 2020, 03:27:58 pm »
Hi,
The example which shows how to use is::Engine and Box 2D for your games : Link

IsDaouda

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Email
Re: SFML Game Engine for Android and PC
« Reply #8 on: February 10, 2020, 09:08:26 pm »
Hi everyone,
You can now use is::Engine with Visual Studio Code to develop your games on Windows or Linux.
Link: https://github.com/Is-Daouda/is-Engine/tree/master/SFML_VSCode

IsDaouda

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Email
Re: SFML Game Engine for Android and PC
« Reply #9 on: March 10, 2020, 12:13:46 am »
Hi everyone,
New update for is::Engine

- Addition of the basicSFMLMain() function implemented in core/basicSFMLMain.cpp and usable in main.cpp

This function launches an SFML window without necessarily going through the main rendering of the engine. It allows you to use your own rendering loop with the engine.

This is intended to allow beginners to easily use the engine and those who want to use the engine to export their existing projects to other OS (Android, Linux, Windows).

IsDaouda

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Email
Re: SFML Game Engine for Android and PC
« Reply #10 on: March 20, 2020, 04:55:03 pm »
Hi everyone,
You can download the full project (already compiled) for Android Studio here.
Useful when you have compilation problems or if you no longer want to recompile the project.

IsDaouda

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Email
Re: SFML Game Engine for Android and PC
« Reply #11 on: April 07, 2020, 08:38:26 pm »
Hi all,
is::Engine 2.0 is available.
This version brings a lot of new features such as:
  • Integration of the SWOOSH library
  • Virtual Game Pad (with 6 keys) for Android (with Configuration)
  • Integration of Tiny File Dialogs
  • Language manager
  • Display of reward video Ads for Android
  • Complete redesign of the engine structure
And many other things...
Game Engine Github Link

This time he is accompanied by a level editor.
Level Editor Github Link

IsDaouda

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Email
Re: SFML Game Engine for Android and PC ☆☆☆ New Version ☆☆☆
« Reply #12 on: May 07, 2020, 09:08:24 pm »
Greetings to all,

The is::Engine user guide is available here
In the guide there is a part that shows you how to use the engine to develop a game.

IsDaouda

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Email
Re: SFML Game Engine for Android and PC ☆☆☆ New Version ☆☆☆
« Reply #13 on: June 17, 2020, 09:30:19 pm »
Hi,
A new update for is::Engine v2.0 is available.
You can now define the FPS and the window styles in the project configuration file (GameConfig.h).

IsDaouda

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Email
Re: SFML Game Engine for Android and PC ☆☆☆ New Version ☆☆☆
« Reply #14 on: July 07, 2020, 08:35:22 pm »
Hi all,
is::Engine 2.1 is available and brings a lot of new features:
- Support for recent development tools : C++ 17, SFML 2.5.1, Android NDK 20

- The SDM (Step and Draw Manager) system : allows you to automatically update and display the objects of a scene (e.g. Level).
All you need to do is create a Class that inherits from MainObject (the engine base class), then implemented the step() (update) method and draw() (this is optional because is::Engine does it for you), then add the object in the list of SDM objects to manage and that's it!
SDM also allows you to manage the display depth of each object (very useful for making 3D effects in a 2D game).

Note that you have the choice to decide when the SDM will automatically update or display the objects.

With SDM the source code of your game is better structured!

- The GSM (Game Sound Manager) system : allows you to play a sound or a music without using an sf::Sound, sf::SoundBuffer and sf::Music object.

- The SDM and the GSM were used in the example that accompanies the version 2.1 of the engine.
SDM was used to manage objects of the GameLevel class, and GSM in all parts of the engine.
Please see the example to see how these two (2) systems work.

Creating games with is::Engine has never been so Fun!  :)
« Last Edit: July 07, 2020, 09:56:30 pm by IsDaouda »

 

anything