Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - JJS

#21
Engine Development / Re: AGS engine iOS port
Tue 15/05/2012 09:48:25
Thanks guys!  :-*

Unfortunately the hardware of the iPhones < 3GS and iPod < 4g (or < 16 GB 3g) is pretty low spec, comparable to first generation Android devices I'd say. So performance is not that great.

Porting to a new platform actually gets easier every time. The starting point was already good with the Linux port in the original engine, then a lot of drawing issues got tackled on the PSP. All touch related issues basically are solved through the Android version. Therefore iOS was probably the easiest port to date. As for what's next? I think I am done platform-wise (unless someone donates me a PS3).
#22
Engine Development / AGS engine iOS port
Sun 13/05/2012 16:41:09
I just uploaded an initial port of the AGS runtime to iOS (for jailbroken devices only at the moment).

Installation:
Add my repository to Cydia: http://jjs.at/cydia
You can then download the engine, midi patches and a test game (just a default "new game") if you want to see Roger walking around on your iDevice.

You can also get a build of the engine as an IPA file from here: http://jjs.at/daily . This will probably be updated more often than the Cydia repo, but there is no guarantee that every version found there will work.

At the moment only a single game can be played. It has to be placed into "/var/mobile/Documents/ags/game/". The main game file has to be named "ac2game.dat". The game folder must have write permissions for a standard user.

A file "ios.cfg" can be placed into "/var/mobile/Documents/ags/" to configure the engine, e.g. change the mouse control method or switch the renderer. There is no ingame way to change settings yet. The file has the same options as the Android configuration file.


Controls:
- The mouse cursor moves to where you touch down on the screen
- A short tap issues a left click
- A longer press (0.7 - 1.5 s) keeps the left mouse button pressed (for dragging things and verbcoin GUIs)
- A long press (> 1.5 s) opens/closes the onscreen keyboard (includes F1-F12 and ESC)
- Right clicking is performed with a two-finger tap

What does work:
- AGS games with version >= 2.50
- Sound and midi playback (download the patches for that)
- Accelerated theora video playback
- Software and hardware OpenGL rendering
- Snow/Rain, Flashlight and AGSBlend plugins are built into the engine (this is important in case the engine goes into the app store because its policy forbids loading external libraries)


What does not work:
- There is no way to press the ESC or F1-F12 keys -> now included in the onscreen keyboard
- Only one game can be played
- No ingame menu or settings


The source code is as always on gitorious: https://github.com/adventuregamestudio
It contains an Xcode 3.2.6 project. The custom build step is for fake-signing the package so that it can be debugged through the IDE. You have to change that to accomodate your setup.


I have only tested on the simulator and on an iPod touch 4g with a jailbroken iOS 4.3.3. Performance on that is about as good as on my Android HTC Desire (maybe a little faster).
SMF spam blocked by CleanTalk