GithubHelp home page GithubHelp logo

franky0123 / eiffel_game2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tioui/eiffel_game2

0.0 1.0 0.0 102.02 MB

A game library for EiffelStudio.

License: Other

Shell 0.94% Eiffel 98.87% C 0.19% Batchfile 0.01%

eiffel_game2's Introduction

Eiffel Game 2

A Game library for ISE Eiffel.

This is a library for game development with the Eiffel Language. The library is compatible with the IDE EiffelStudio 7.3 and newer from ISE.

The library is compatible with Linux, MAC OS X, Windows. It should work with other operating system (FreeBSD, Android, IOS, etc.) but it is not supported.

The Audio and Audio_Sound_File sub-libraries are under the LGPL license. Every other sub-libraries are under the zlib license. Every examples are under the GPL license.

The project use those libraries: SDL2, SDL2_image, SDL2_gfx, SDL2_ttf, OpenAL and Libsndfile.

Installation on Linux (Ubuntu)

  • I assume that you already have a fonctionnal EiffelStudio on your system. If not, install it.

  • Rename the library folder (containing this README.md) to "game2".

  • You need to add the game2 folder library in the "contrib/library" folder of EiffelStudio. Normaly, this folder is in "/usr/lib/EiffelStudio_XX.XX" or in "/usr/local/Eiffel_XX.XX".

  • You need to install the C libraries SDL2, SDL2_image, SDL2_gfx, SDL2_ttf, OpenAL, libsndfile, OpenGL, GLU, libepoxy and all their development tools kit and dependancies:


sudo apt-get install libsdl2-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-ttf-dev libopenal-dev libsndfile1-dev libepoxy-dev libgl1-mesa-dev libglu1-mesa-dev

  • Execute the "compile_c_library.sh" script (from the "game2" directory).
  • Create a project and add the sub-libraries you need (".ecf" file) in the project.(You can use the EIFFEL_LIBRARY environment variable to add those libraries. For example: $EIFFEL_LIBRARY/contrib/library/game2/game_core/game_core-safe.ecf .

Note: If you have an error in the apt-get command telling libsdl2-dev depending of libgles2-mesa-dev. Just install the latest and retry like this:


sudo apt-get install libgles2-mesa-dev
sudo apt-get install libsdl2-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-ttf-dev libopenal-dev libsndfile1-dev libepoxy-dev libgl1-mesa-dev libglu1-mesa-dev

Installation on Windows

  • Note: For an easy installation, see: https://github.com/tioui/Eiffel_Game2/tree/windows_build.
  • You must already have a working EiffelStudio. If you don't have it already, install it.
  • Rename the library folder (containing this README.md) to "game2".
  • You need to add the "game2" library folder in the "contrib/library" folder of EiffelStudio. Normaly, this folder is in "c:\Program Files\Eiffel Software".
  • You need to install the C libraries dependancies. To get them, download the file https://github.com/tioui/Eiffel_Game2/raw/windows_build/C_libraries.zip. When you extract the file, you should have a C_lib_win directory. Put the C_lib_win directory in the root directory of the Eiffel_Game2 repository directory.
  • Using the "EiffelStudio command prompt" (look in the Windows "Start" menu), execute the "compile_c_library.bat" script of the "game2" directory.
  • Create a project and add the libraries you need (".ecf" file) in the project.(You can use the EIFFEL_LIBRARY environment variable to add those libraries. For example: $EIFFEL_LIBRARY/contrib/library/game2/game_core/game_core-safe.ecf .
  • Put all ".dll" files of the C_lib_win\DLLXX directory in the new project directory or in the C:\Windows\System32.

Installation on Mac OS X

To be created...

eiffel_game2's People

Contributors

tioui avatar marchalo avatar

Watchers

Francis Mathieu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.