• Register

X-framework is an in house developed engine developed by Ironcode Gaming which was based of pop-cap framework. Its multi-platform and uses SDL Libraries. Its 2D Hardware accelerated engine which is available on Windows, Linux, Mac, iOS, Android and Windows Mobile.

  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
Post article RSS Articles

The Heart of the engine

News

The Heart of the Engine

The engine was based on Directx 7 and used the Win32 API for OS dependant tasks. On iOS and Android obviously the DirectX and Win32 APIs doesn’t exist. Trawling through the source code, we realised that we were facing the prospect of re-writing several major subsystems:

  • Window Management
  • Event Handling
  • Interfacing with the Audio Device
  • Displaying images/graphics via OpenGL
  • Loading Textures, Sound, Music
  • File Handling

And so on.

This was pretty much looking like a total engine re-write. Not wanting to do that, we looked for low level libraries to do most of these things for us.

Having the source code for the library was an important requirement.

If you don’t possess the source code to your engine then your game is effectively controlled by the engine developer. Whether your game will be available on a platform is a decision in the hands of engine developer, not yours. It gets even worse if middleware is thrown in the mix.

Sometimes this is not an issue, when the engine is already ported to all the platforms you need. At other times it can be a real showstopper.

We evaluated a lot of 3rd party libraries for this, and eventually decided on SDL. This was probably before Valve had decided to port Steam to Linux. At least it wasn’t known to us that something like this is in the offing. SDL1.3 at the time was still alpha, and not ready for prime time. It also seemed that development work on SDL was faltering.

However, SDL supported iOS, and with a little work, Android. It was also open source, under zlib license. Further, we felt that if there were any issues remaining, it would be relatively easy to fix them given that we had access to the code.

But the real reason we liked SDL (and rejected the other libraries) was the elegance of the API. SDL has one of the best designed 2D APIs we have seen. The transition from SDL1.2 to SDL 2 has hurt the elegance of the API a bit, but only a little.

This turned out to be a good decision. It proved to be relatively easy to replace the PopCap Framework internals with SDL. Despite its beta nature, we had no SDL related crashes. There were some minor issues, but those were easily fixed. The development on SDL suddenly picked up, and we later learnt that valve was behind this. It turned out that steam on linux was using SDL.

It was a great moment when the first of the engine demos started working on windows! Everything in the demo looked exactly as before, but underneath the hood everything had changed! The demos, intended as a tutorials for the first time users, also served as test cases for us. In a matter of days we made all the demos work.

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Company
Ironcode Gaming
Contact
Send Message
Homepage
Ironcode.com
Licence
Proprietary
Release date
Engine watch
Follow
Share
Twitter

Latest tweets from @ironcode_gaming

RT @ShirrakoGaming: YouTube closed by channel because I killed a female NPC in #RDR2 They said It promoted violence. You spend the en… T.co

Nov 7 2018

Happy Diwali! May the light of truth'and happiness illuminate your life! T.co

Nov 6 2018

RT @reduzio: It's done for now! Godot 3.1 is getting a new animation system with state machine support! Godotengine.org

Jun 27 2018

RT @AyoubMoulakhnif: Couldn't stop myself from doing this hahaha Huge thanks to the developers for making blender awesome! #blenderT.co

Jun 27 2018

RT @gauravnawani: Godotengine.org #GodotEngine Looks like a decent upgrade, Will explore if current project can be ported. #indiedev #gamedev

Jan 31 2018

RT @godotengine: 18 months of work from hundreds of contributors... What a pleasure to announce the release of #GodotEngine 3.0! Th… T.co

Jan 30 2018

Cool moments in #gamedev: we were working on the sequel to our match 3 game, Angkor when a bug caused the screen to… T.co

Jan 5 2018

Ironcode Gaming wishes you a very happy #Christmas ! Eat, drink, and make merry! Ho! Ho! #Christmas2017T.co

Dec 23 2017

Happy Deepawali 2017 from the Ironcode gaming team! #HappyDiwali #indiedev #HelloDiwali #HappyDeepavali #indiegame T.co

Oct 18 2017

AnimationXpress interviewed us on our latest project and our take on games industry. Animationxpress.com @AnimationXpress @indiedev

Sep 28 2017

Embed Buttons
Link to X-Framework2 by selecting a button and using the embed code provided more...
X-Framework2
Statistics
Rank
502 of 799
Visits
343 (1 today)
Last Update
Articles
1
You may also like
WOLF RPG Editor
WOLF RPG Editor GPL
Skyline Game Engine
Skyline Game Engine Commercial
X-Framework2
X-Framework2 Proprietary
RPG in a Box
RPG in a Box Commercial
AndEngine
AndEngine L-GPL
HeroEngine
HeroEngine Proprietary