Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

OOP Pascal Wrapper and bindings for Tilengine 2D retro graphics engine

Notifications You must be signed in to change notification settings

turric4n/PascalTileEngine

Repository files navigation

PascalTilengine logo

PascalTilengine

License: LGPL v3

WARNING

This branch is expected to work with Tilengine 2.9.1, change to Master if you want to use old Tilengine versions

You can compile Tilengine Library yourself or buy it here : https://megamarc.itch.io/tilengine

Delphi + Windows

PascalTilengine demo

Lazarus + FPC + Linux

PascalTilengine demo Lazarus

Pascal bindings for Tilengine 2D retro graphics engine



Copyright (c) 2021 Enrique Fuentes (aka Turric4n) - thanks to Marc Palacios for this great project.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contents

Features

  • Written in portable Pascal (FPC and Delphi)

  • LGPL v2.1 license: free for any project, including commercial ones

  • Cross platform: available builds for Windows (32/64), Linux PC(32/64), Mac OS X and Raspberry Pi using FPC

  • High performance: Wrapper is made using native lightweight OOP Pascal (no VM or garbage collector environment)

  • Fully playable shooter example made in OOP

PascalTilengine demo

Requirements

As OpenSource project, I recommend to use FPC but is fine Delphi Community (Free) to compile too. Delphi has sightly better perfomance in Windows but FreePascal is a real multiarch. Firemonkey is not supported yet... if you want Android definetly go to FPC.

Installing

Setup will checkout dependancies and will try to build everything to work with native library.

Windows

> setup.cmd

Debian-based linux

> sudo ./setup

Performance

Our wrapper is near or equal performance as plain C.

Benchmark specs -> 
  Compiler : Delphi Tokyo 10.2 and Visual C 2017
  Architecture : x86-64 -O2
  OS : Windows 10 (1809)  
  CPU : I7700K @ 4.9GHZ
  RAM : 16 GB DDR4 @ 3200MHZ

PascalTilengine benchmark Pascal vs C

Benchmark specs -> 
  Compiler : FPC 3.2 and GCC 8.2
  Architecture : x86-64 -O2
  OS : Linux MINT 19
  CPU : I7700K @ 4.9GHZ (Oracle VM VirtualBox for Windows)
  RAM : 4 GB DDR4 @ 3200MHZ

PascalTilengine benchmark Pascal vs C

Warning!!! on latest versions of Raspbian (Stretch) don't use repo SDL2 lib perfomance is AWFUL. Compile it yourserlf, parameters :

./configure --prefix=/usr --host=armv7l-raspberry-linux-gnueabihf --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl --disable-static

About

OOP Pascal Wrapper and bindings for Tilengine 2D retro graphics engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages