Gideros Box2D basics

Here is very simple example of box2d engine in Gideros Mobile. This example shows, how to create static and dynamic objects from shape or image and run your world. First thing will do is to put everything in one scene, so we won't polute...

Read More…

Countdown for Gideros Mobile

Gideros Countdown class displays (and updates) time left provided by user. Time can be provided in any time units, and they will be recalculated to specified time units. It is possible to specify which units or text will appear in countdown and...

Read More…

Star rating for Gideros Mobile

Gideros StarRating provides a way to display rating using stars or any other custom image, or provide an input for users to rate your app/content. Package contains StarRating.lua and example Gideros application project.ContentsDownloadExample...

Read More…

Titanium Push Notification without 3rd parity service

Push notifications is a great way to notify your users about new additions, improvmenets and other action about your app. Using Urban Airship is a great way start, but what if someone wants a free service, or simply doesn't want to rely on...

Read More…

Gideros GTween with easing

GTween class allows to animate Gideros objects like Sprite, and everything inherited from Sprites. So what can you tween: x position y position alpha value scaleX ratio scaleY ratio rotation...

Read More…

Any format countdown

Titanium Countdown class displays (and updates) time left provided by user. Time can be provided in any time units, and they will be recalculated to specified time units. It is possible to specify which units or text will appear in countdown and...

Read More…

Gideros lightning effect

Gideros Lightning object draws a randomly generated lightning with glow effect from x and y coordinates, to other x and y coordinates. You can also specify lightning bolt color, width, lightning glow color, width, detalization level and...

Read More…

Gideros Mobile Game Template

So here is a template for Gideros Mobile, that I'm using for my games, all you need is your own graphics (I've mostly used graphics from Gideros Examples, or modified them a bit), your own sounds (sounds currently used are from Gideros...

Read More…

Abstracting matrix transformation in Gideros Mobile

Gideros Transform object abstracts matrix transformations to simple transform functions as scaling, rotation, translating, skewing and provides an option to multiply, reset and copy matrices It supports all basic Matrix object's functions and...

Read More…

Manage Scenes in Gideros Mobile

Once upon a time in a Gideros Q&A forum, someone asked: "Hey, it sucks to put everything on stage, how do you manage scenes in Gideros?". And the answer he got was: "Wait a bit, I'll code something. Here, I've just...

Read More…

Difference between content, logical and device dimensions in Gideros Mobile

For now there were two available dimension sizes in Gideros SDK: device and logical. Starting from Gideros Mobile beta 7, there is also a content size available. So what is the difference between them? Device sizes Returns the device...

Read More…

Creating multi line text fields in Gideros Mobile

Gideros TextWrap object splits string into multiple lines by provided width. You can also specify line spacing and alignment modes : left, right, center and justify. And it is completely compatible with existing TextField object...

Read More…

Easy input for choosing packages or levels in Gideros Mobile

Gideros AceSlide object creates a sliding element to switch different objects. Great for providing and input to choose levels or packages in mobile games. Here is a link to repository with Oop version of AceSlide which uses Gideros class...

Read More…

Debug drawing for physics engine in Gideros Mobile

Here is a quick snippet to output debug drawing for physics objects in Gideros mobile: local world = b2.World.new(0, 10, true) local debugDraw = b2.DebugDraw.new() world:setDebugDraw(debugDraw) stage:addChild(debugDraw) After that you...

Read More…

Repeating background image in Gideros Mobile

If you need to set up a pattern image as fill for object or background, the best way to do it, is to create a shape and fill it with texture, like this: local texture = Texture.new("images/crate.png", true, {wrap = Texture.REPEAT}) local...

Read More…

Snow for Gideros Mobile

Gideros Ace Snow object creates a falling snowflake effect for your application window. It is possible to set quantity and speed of flakes, and also provide image of custom snowflake. This object also provides methods to start or stop snowing...

Read More…

Save and load data module for Gideros Mobile

Here is a dataSaver module for Gideros Mobile, that allows you to save and load files or separate app properties in the document directory of Gideros mobile.  Simply include dataSaver.lua to your project and use it like in these...

Read More…

Gideros mobile button class

Here is a great class for creating buttons in Gideros Mobile SDK https://github.com/gideros/Button. It implements two states of button, making your buttons more responsive : standard state pushed state Another great feature is...

Read More…

Gideros MovieClip - change image on collision

Here is an example how you can use MovieClip in Gideros as physics object and change it's images on collision. Of course you can extend it easily to much longer and complex animations. --create bitmaps for movie clip local start =...

Read More…

Gideros - remove object on collision

Since Gideros uses Box2d physics engine, there is still same restriction that removing or changing the objects on collision might cause app crashes. So when we define collision event we want to delay removing or changing object. And here is how...

Read More…

1 2 3 4 5