IwGame Engine / AppEasy Core forum has been moved to http://www.appeasymobile.com/forum/iwgame-engine-appeasy-core. The drmop.com forum has now been closed down. Note that the new forum has more features, is easier to read and use.
New made with IwGame Engine game available for iOS called Tic Tank Toe. Here’s the details:
Play the brand new TicTankToe on your smartphone!
Tired of silly games? This game will challenge you!
TicTankToe is the best TicTacToe game of all-time.
This game supports one player and two player gameplay, so you can play against another human or against your device. You can also play the amazing military campaign divided into 20 levels! Every 5 levels you can unlock deadly new tank! Become the Master of the TicTankToe Universe and send your score online!
TicTankToe offers a host of exciting features, including:
* Great graphics and exciting sound effects
* Undo function
* Post scores on Facebook
* 20 fantastic levels for free! And many more in future versions!
You can download Tic Tank Toe for your iOS device from here
Congratz to zapmobilegames
Hey everyone, Developer Noisy Ninja has just released their new FREE awesome IwGame Engine powered game CandyMare for Android on Google Play - https://play.google.com/store/apps/details?id=com.noisyninja.candymare
Heres some info about CandyMare:
Joey had too many candies and is having nightmares, guide him through insane puzzles with ghosts and monsters blocking his way to the candy factory.
• Optional ad removal in-app purchase.
• Teleport your way out of a tough spot.
• Avoid deadly hallucinating mushrooms.
• Collect all 3 stars per level.
• Track your achivements.
• 3 chapters and 60 levels of candy adventure.
• A puzzle unlike any you have played before.
• More chapters, crazy levels and new powerups coming soon!
Best of luck to Noisy Ninja
NB. Please help to support the IwGame Engine and its developers by downloading and rating each others apps.
A fellow developer recently had the need to mix raw Open GL with IwGame scenes so I decided to take a look into the matter. The problem with mixing the Marmalade SDK’s graphics sub systems IwGx and Iw2D with raw Openm GL is two fold:
- Marmalade’s IwGxClear() / Iw2DSurfaceClear() functions seem to do something internally that prevents the display of Open GL rendering code. I believe that the actual underlying call to clear the screen is called when IwGxFlush() gets called so any Open GL rendering carried out during the frame is wiped out as soon as IwGxFlush() is hit.
- IwGx / Iw2D rendering is deferred until either IwGxFlush() or Iw2DSurfaceShow() is called. This means that anything you draw using Open GL during the frame will be drawn over when the flush is done at the end of the frame because Marmalade does all its rendering when the flush occurs
Ok, problem 1 is easy to fix. We’ve added a new property to CIwGame called GLCompatible. If you have any scenes in your app that need to render using raw Open GL then call GAME->setGLCompatible(true) to force IwGame to clear the display buffer using Open GL instead of IwGx. (You will need to download http://www.drmop.com/wp-content/uploads/2012/06/GameSceneGLTest.zip and use the new IwGame that is contained in the archive to use this new feature.
Problem 2 is also easy to fix. In the scene that you call raw Open GL rendering code, call IwGxFlush() before you begin rendering using Open GL. This will force Marmalade to draw everything that’s waiting to be drawn. As IwGx is built upon Open GL you should also NOT rely on GL to be in the state that you left it in previous frame, so ensure that you restore matrices, shade model and any other GL specifics that IwGx may have modified.
You can download an example that shows the complex UI example with a GL scene on top. The GL scene also contains a stack panel that shows that you can also add IwGame stuff on top of GL rendering. The example is located at http://www.drmop.com/wp-content/uploads/2012/06/GameSceneGLTest.zip
Have you ever played a game of darts and thought: is there no easy way to keep score of the game on a mobile device like a phone or tablet?
Well, now there is! With unmatched easyness you can now track your scores on your phone or tablet and even post your game results on Facebook!
With Dart Scorekeeper(tm) you can keep your scores while playing the ‘real-life’ game.
Dart Scorekeeper currently supports the following:
The most easy scoring entry system ever! Just point your finger on the board and it will zoom in so you can place your darts.
- Supports up to 4 players.
- Post your game results on Facebook to share with others!
- Single Game Mode.
- Match Mode:
- x01 games (301, 501, 801, 1001):
- Cricket game:
Best of 3 or 5 legs per set.
Best of 3, 5, 7, 9, 11 or 13 sets.
Double In option.
Double out option.
Play from 20 – 10 or from 20 – 15.
Also coming to iPhone and iPad soon.
Ok, so we’ve heard back from a few of you and its apparent that XOML can be a little difficult to work with especially as it had no intellisense to help create well formed XOML. In the interests of making XOML much easier to write we have created an XML Schema that you can use to validate your XOML and provide intellisense support. Please note that the schema has only been tested in Visual Studio 2010. If you have problems with it in any other IDE then please let us know.
The XML Schema for XOML can be downloaded from http://www.drmop.com/XOML.xsd
Updated versions of the Schema will also be included with the IwGame Engine from v0.35 onwards
To use the Schema in Visual Studio 2010, open your XOML file, right click somewhere on the page and select properties then go to the properties windows. Click in the Schemas box then click the small file selector to the right (this will open up all of the available XML schemas). If XOML.xsd is not already in the list then click the Add button which pops up the file select dialog. Select XOML.xsd and open it, this will place it in the XML schemas list. Now click in the Use column next to XOML.xsd and select “Use this schema” then click OK. Your document should now be validated against the XOML schema and you should have intellisense / auto-complete etc..
Note that there are a few restrictions, for example, the schema does not include support for custom actor / scene names or support for FromTemplate parameters. if you are XSD savvy enough to figure out how to add that support then please let us know (I personally have only spent one day working with XSD which was today so I’m still a little wet behind the ears). For the meantime, you may want to edit the XOML.xsd schema file and add them yourself. A quick and easy way to get the schema to recognise your custom named scenes is to edit XOML.xsd, go to the bottom of the file and you will see a group called TopLevel. Copy and paste the line that defines Scene and change the word Scene to the name of your own scene class, e.g:
<xs:element name=”Scene” type=”SceneType” />
<xs:element name=”MenuScene” type=”SceneType” />
To add a custom actor create a copy the ActorImage tag and rename the copy to your custom class name, e.g.:
<xs:element name=”ActorImage” type=”ActorImageType” />
<xs:element name=”FrogActor” type=”ActorImageType” />
For actors, you will also need to copy the same line to the ActorGroup (situated just below the TopLevel group)
Please note that this will not take into account your own custom parameters, for that you will need to add your own complex types and attributes to handle it.
Lastly, to add custom actions, go to the top of XOML.xsd to the ActionsEnum type and copy one of the existing actions, paste and replace your own action name, e.g:
<xs:enumeration value=”CustomAction1″ />
Well that’s it, hope the schema helps to make XOML more usable. Please let us know if you have any problems (don’t send me complex schema questions because I don’t have a clue )
The IwGame Engine has been in development for around 6 months now and although we’ve received lots of feedback regarding bug reports and feature requests we would like to know your opinions on the current state of the engine. Here are a few questions to consider:
- Is IwGame difficult to use, if so can you suggest any improvements that we could make to make it easier to use?
- How are you finding the current feature set? Is anything particularly buggy, hard to use or simply missing something?
- What’s the next BIG feature for you, what would you really like to see come next?
- How are you finding using XOML? Do you prefer the declarative approach or do you prefer to code things up in C++ instead. Can you suggest any improvements you would like to see?
- If you have recently stopped using IwGame, what made you leave? Was there a better option and if so, what was the deal making features?
This is the opportunity to have your say, any feedback that you can provide is greatly appreciated and will help steer the direction of the IwGame engine.
Hey everyone, we decided to make cOnnecticOns FREE for a few days to increase its visibility and hence visibility of the IwGame Engine. If you haven’t already downloaded it then please take a look at http://itunes.apple.com/us/app/connecticons/id505645452?mt=8
Please consider leaving us a nice review, it only takes 2 mins!
Finally got a bit of spare time to mess with the blog and install a support for the IwGame Engine and IwGameAds.
Feel free to drop by and leave any suggestions, bugs or just chat about what you are working on etc..
Our new support forum is here. You will also notice the forum topics list down the right hand side of the window
New here? What’s IwGame? IwGame is an open source free to use cross platform game engine for iPhone, iPad, Android, Bada, Playbook, Symbian, Windows Mobile, LG-TV, Windows and Mac, built on top of the Marmalade SDK. You can find out more and download the SDK from our IwGame Engine page.
Its been a tough week, my Apple Mac blew a gasket and refused to boot. Didn’t know this until I had spent 4 hours trying to make the Mac boot from Snow Leopard, but you cannot boot a Mac Mini from any version of the OS other than the original version that came with the Mac! Arrrgggghhhhh, insanity! In the end I turned my office and house upside down to find the original Mac disk.
Finally got cOnnecticOns cleaned up and submitted to the app stores. I also added 10 more levels and a game editor that allows players to create up to 20 of their own levels on-device and play them. I plan to allow sharing of these custom levels in a future version. We also added Facebook posting to IwGame and therefore has now been added to cOnnecticOns. You can find our more info about the game at http://appliter.com/apps/connecticons/connecticons.aspx
Ok, onto the update. IwGame v0.31 is kind of a special release because it contains the FULL source and assets of the game that you will see on Android Market and very soon Blackberry App World, Apple iTunes and SamsungApps for Bada.
Here’s the full list of changes for 0.31:
IwGame 0.31 Changes:
- cOnnecticOns full commercial game with source and assets provided as an example of engine usage
- CIwGameFacebook added – Currently provides login and wall posting access
- New AddVariable action added which allows you to add a positive or negative value to a XOML variable with limits
- New EnterValue action added that brings up the devices keyboard allowing the user to enter a value into a XOML variable
- New UpdateText action added will update a text actor with the value of a variable
- New Exit action added that allows the user to exit the game
- 3rd paramater added to XOML actions
- DoSleep added to CIwGameBox2dWorld to enable / disable object sleeping, also added to scene XOM
- IIwGameXomlResource now has an actual type, allowing type checking for exact object types
- OnKeyBack and OnKeyMenu events added to scene and XOML. These fire when back and menu keys are pressed
- BUG FIX: CIwGameSprite position and origin now 32 bit vectors, which helps prevent positions overflowing
- BUG FIX: When a scene is destroyed and it has touch focus it was causing a crash
- BUG FIX: If a scene becomes inactive or invisible it now loses touch focus
- BUG FIX: Velocity / angular velocity now applied when actors have no physics attached
- BUG FIX: JPEG image data is now correctly converted from BGR to RGB
- BUG FIX: CIwGameString, find index now properly reset
As well as the release of the full source for cOnnecticOns, we also snook a few extra col bits and bobs in there.
New CIwGameFacebook Class
The main purpose of this class is to allow the user to log into facebook and interact with it. Right know, only logging in and wall posting functionality is provided using the following method:
bool PostWall(const char* message, const char* link_uri, const char* image_uri, const char* name, const char* description);
- message – Message to display to the users wall visitors
- link_uri – URL that the user will visit when clicking on the wall post link
- image_uri – URL of an image that you would like to be displayed along with the post
- name – The title of the post
- description – Description of the post (displayed in weaker font beneath title)
A Facebook wall post will look something like this:
New XOML Actions
It is now possible to add a value onto an existing XOML variable using the new AddVariable action. You can also update a text actor with the value of a variable in XOML. Here’s an example showing how the editor in cOnnecticOns uses both actions together to create an up / down UI element that the player can use to change the number of cOnnecticOns available in the level:
<!-- Create change connecticons buttons --> <InertActor Name="ConnectButton2" Position="0, -200" Size="81, 84" SrcRect="555, 482, 81, 84" Image="sprites1"> <ActorText Name="ConnectButton" Depth="0" Font="trebuchet_12" Rect="-100, -50, 200, 100" Colour="0, 0, 0, 255" Text="2" /> <InertActor Name="DownButton" Position="-60, 0" Angle="-90" Size="48, 51" SrcRect="868, 299, 48, 51" Image="sprites1" Depth="0" OnBeginTouch="DownBeginTouch" OnEndTouch="DownEndTouch" OnTapped="DownTapped"> <Actions Name="DownBeginTouch"> <Action Method="SetTimeline" Param1="buttonin4_anim" /> <Action Method="PlaySound" Param1="ui_tap" /> </Actions> <Actions Name="DownEndTouch"> <Action Method="SetTimeline" Param1="buttonout4_anim" /> </Actions> <Actions Name="DownTapped"> <Action Method="AddVar" Param1="EditorConnecticons" Param2="-1" Param3="0" /> <Action Method="UpdateText" Param1="ConnectButton" Param2="EditorConnecticons" /> </Actions> </InertActor> <InertActor Name="UpButton" Position="60, 0" Angle="90" Size="48, 51" SrcRect="868, 299, 48, 51" Image="sprites1" Depth="0" OnBeginTouch="UpBeginTouch" OnEndTouch="UpEndTouch" OnTapped="UpTapped"> <Actions Name="UpBeginTouch"> <Action Method="SetTimeline" Param1="buttonin5_anim" /> <Action Method="PlaySound" Param1="ui_tap" /> </Actions> <Actions Name="UpEndTouch"> <Action Method="SetTimeline" Param1="buttonout5_anim" /> </Actions> <Actions Name="UpTapped"> <Action Method="AddVar" Param1="EditorConnecticons" Param2="1" Param3="10" /> <Action Method="UpdateText" Param1="ConnectButton" Param2="EditorConnecticons" /> </Actions> </InertActor> </InertActor>
The mark-up marked in red show the new AddVar and UpdateText XOML actions.
Basically when the user taps the DownButton actor the OnTapped event fires which calls the DownBeginTouch actions list. This actions list contains two actions:
AddVar – This adds -1 onto the EditorConnecticons variable and limits it to 0, so it does not go below 0.
UpdateText – The next action copies the value of the EditorConnecticons variable into the ConnectButton text actor, which updates the number of connecticons on screen.
Support for Android Back and Menu Buttons in XOML
It is now possible to attach actions in XOML to the menu and back button events in a scene by handling the OnKeyBack and OnKeyMenu events. Note that only the current scene will handle button events.
Text Input via XOML
Using the new EnterValue XOML tag you can bring up the device keyboard and allow the user to input some text into a XOML variable.
As previously mentioned the full source to cOnnecticOns has been provided to enable developers to see a real working commercial game utilising IwGame. The first thing you will notice when looking at the code base is just how little code is actually there. This is because much of the mundane functionality such as creating layouts, handling events, creating animations, scenes etc.. are all handled by XOML. Please note that the supplied XOML is not optimised in way shape or form, in fact I have done many things long hand so as not to make the scripts convoluted and difficult to understand. When creating your own XOML you should probably focus more on re-use with templates, styles and global actions / animations etc..
Here is a brief overview of the provided XOML scripts:
- Actors – This file contains physics materials, shapes and game object templates
- Common – Contains common styles, animations and actions that are used across many scenes
- ConfirmDialog – This is the dialog box scene for the rest scores action, it is displayed to the user when they attempt to reset their records
- EditLevelSelect – Level selection screen that allows the user to select a custom level to edit
- Editor – The level editor scenes
- GameComplete – Shown to the player when they complete all zones and all rounds
- Help – The basic help dialog that is accessible from the main menu
- HUD – The in-game HUD that displays the scores and game buttons
- Intro – The IwGame intro that is displayed at game boot
- LevelCleared – The end of level score dialog that is displayed when the user completed or fails a round
- LevelSelect – Level selection screen that allows the user to select a level to play
- LevelSelect2 – Level selection screen that allows the user to play a custom level to play
- Menu – The main front-end menu scenes
- PauseMenu – The in-game pause men scene
- ZoneLocked – Dialog scene that is displayed when the player finishes round 10 but has not unlocked all levels in the zone
- ZoneSelect – Zone selection scene
- Scenes 1 to 30 – Game level scenes
- Scenes 101-120 – Custom blank level scenes
Note that some files contain more than one scene. For example, each game level file contains the pause menu, the main game level scene as well as the in-game HUD. The pause menu and HUD exist as separate XOML files so they can be re-used across all levels.
The code base contains implementations of the following custom scenes:
- EditScene – Level editor scene, contains level editor logic
- GameScene – A game level scene, contains game logic
- LevelSelectScene – Custom scene for level select that handles updating of the scores in the level screen
- ZoneSelectScene – Custom scene for zone select that handles updating of the lock / unlocked status of each zone
The following custom actors are also used:
- ConnectActor – An actor that connect two bugs together with minimal logic
- CounterActor – This is the main bug actor (originally called counters), handles all bug logic / collision etc
- FloaterActor – Handles floating / fading text
- GravityPlacerActor – Special actor that can be modified to change gravity within the editor
- InertActor – Basically an actor that doesn’t much other than display itself
- PlacerActor – A basic placeable object, used to position actors in the editor
- SelectorActor – A basic selector actor used by the editor object selection screen to select which object to place
The rest of the code is pretty bog standard stuff. Game is the implementation of CIwGame and contains initialisation and shut down. Probably the most interesting part is where the custom XOML classes and events are added using the following code:
// Add custom classes to XOML system IW_GAME_XOML->addClass(new InertActorCreator()); IW_GAME_XOML->addClass(new GameSceneCreator()); IW_GAME_XOML->addClass(new LevelSelectSceneCreator()); IW_GAME_XOML->addClass(new ZoneSelectSceneCreator()); IW_GAME_XOML->addClass(new CounterActorCreator()); IW_GAME_XOML->addClass(new PlacerActorCreator()); IW_GAME_XOML->addClass(new GravityPlacerActorCreator()); IW_GAME_XOML->addClass(new SelectorActorCreator()); IW_GAME_XOML->addClass(new EditSceneCreator()); // Add custom game actions to XOML system for (int t = 0; t < CIwGameXomlAction_Global::Action_Max; t++) IW_GAME_XOML->addAction(new GameXomlAction_Global((GameXomlAction_Global::ActionType)t));
These custom actions and events allow us to tie our game logic much closer to our XOML code.
Well that’s it for this update. We were aiming to get conditional XOML actions in for 0.31, but unfortunately it didn’t make it, but should do for 0.32.