• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
  • entries
    2
  • comments
    6
  • views
    2232

Making cross platform games - Experimentation

Sign in to follow this  
Followers 0
delagames

769 views

Hi,

This is my first ever journal post here on gamedev. I will discuss about doing an experiment to find as cross-platform development environment as possible!

For my next game i've decided to make it very "cross-platform" and port to many platforms (initially probably 2-3 smile.png ). Entire game code will be written in C++ and OpenGL ES 2.0. Since this is my first attempt, I really tend to keep the game as simple as possible smile.png . Following platforms are in the target list:

1) Desktop (Win / Mac / Linux)
Since direct support for GL ES is weak on desktops specially Windows, I am considering 3rd party EGL bindings. PowerVR and ATI SDKs for OpenGL ES 2.0 are good options as they come with GLES 2.0 simulators. But an alternative option I found really tempting was "Angle". It provides headers and libraries to develop GLES 2.0 applications on Windows. It appears light weight, under the hood angle translates GLES calls to DirectX. For basic window management one could write small amount of system-specific code. I will discuss this in future blog post after some experimentation.

2) Android
Android SDK and NDK supports GLES 2.0 and let you write entire thing in C++. So the porting won't face any real issues except to write the window initialization and little system specific code.

3) iOS
Exactly the same as android. Native support for GLES 2.0. Xcode also has a nice built-in emulator. Can easily merge C++ with Objective-C.

4) WebGL
This is probably the easiest smile.png . Use emscripten to convert the entire C++ / GLES 2.0 game to HTML5 with almost no modifications. Entire Unreal 4 engine has been ported to HTML5! Emscripten has very good built-in support for GLES 2.0 and GLFW. The community is very active and lots of material available on the internet.

5) Flash
You can port you existing C++/GLES code to Flash using Crossbridge. Epic have ported their Unreal 3 engine and you can check out the demo. But i think that this is pretty much dead. It is no longer being regularly maintained and an inactive community. But this may be OK for small 2D games that I intend to make.

6) Black berry
Black berry provides their own SDK and let you to write Native code in C++. Porting should be relatively easy.

7) OUYA
OUYA development is almost like android. They also provide their own SDK.

8) Nook
9) Various consoles
Will look at these in the future.

Summary:
Majority of the mobile devices support OpenGL ES 2.0. It appears to be a good idea to write a single portable GLES 2.0 renderer which would work on almost all the devices without any changes. It even works with traditional desktops (even though ES2 is not as powerful as the full blown OpenGL but it is pretty good for 2D games). But finding a cross-platform solution for Sound, context management, input, APIs for quering resources etc might be a real challenge.

Next time i'll post the results of this experiment and list down libraries that I found to be the most portable across all platforms.

Happy coding...

-Fakhir

1
Sign in to follow this  
Followers 0


5 Comments


Interesting. Glad to see you are breaking this down into a manageable project. Will read your results with interest.

1

Share this comment


Link to comment

I look forward to reading your findings, but yeah I wouldn't bother with Flash, it is a dead technology that is quickly phasing out. Android drop flash support a few years ago, and BB nor Apple ever supported flash if I remember correctly.

1

Share this comment


Link to comment

I look forward to reading your findings, but yeah I wouldn't bother with Flash, it is a dead technology that is quickly phasing out. Android drop flash support a few years ago, and BB nor Apple ever supported flash if I remember correctly.

 

The only reason I am considering flash is that the porting comes almost free. As we speak browsers have weak WebGL support but it is getting stronger day by day. So for example if you wanted your awesome 3D C++/GL game to be played on facebook, the above mentioned pipeline lets you do that almost for free. (maybe a tiny bit extra abstraction layer over facebook APIs).

 

Playing Stage3D or WebGL games in a "Mobile browser" is already out the window smile.png. Above pipeline let's you easily make native mobile versions of the game. I am doing some experiments. Will get back with more results !!!

1

Share this comment


Link to comment

didn't you try Libgdx? I didn't use it, but it looks promising and it's just focused on these problems.

0

Share this comment


Link to comment

didn't you try Libgdx? I didn't use it, but it looks promising and it's just focused on these problems.

 

No I didn't try it but I guess that it doesn't support all of the platforms that I am trying to target (I think it does not support WInphone, OUYA, PS vista, xbox one etc etc). My purpose is to make an extremely lightweight cross platform 3D engine tailor made for my game requirements. Unity is a generic engine and totally not as flexible as customized C++ code and it is pretty bloated in size as well !

0

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now