Detecting Gestures in Gideros

Gideros Gestures object provides a way to define and detect gestures. You can define your own gestures, by providing array of points, that defines shape and provide callback function for each shape. It is also possible to detect gestures from...

Read More…

Gideros Implementing AdMob for Android

Here is a tutorial on how to implement AdMob advertisements into Gideros exported Android project. Thanks to @Paolo Manna for provided examples. First thing you need to know, that exported Android project is a single view appliation, meaning,...

Read More…

Gideros Box2D teleports

In this example, I'll show you how to create portals to telerport Box2D bodies in your Gideros apps. As usually we'll use dragging example project as start and modify it a bit. So first let's create a portal itself. Basically...

Read More…

Share button in Gideros app

Gideros Share object provides a way to put share button for popular social portals in your Gideros app. You can provide URL to your app website or market/appstore link and proposed title for your app users to share Currently this class...

Read More…

Gideros Box2D triggers

In this example I'll show you how to create triggers in Box2d world. We'll create a trigger, on collision with which we will toggle one Box2d objects (setting it active and inactive again). For start we'll use existing Box2D draggable...

Read More…

Gideros Box2d gravity switch

In this tutorial we'll create a box2d object, which will switch gravity on collision. We'll use Box2d dragging project as a start and modify it. First we should define all gravity vectors we want to use, in this example we'll...

Read More…

Dragging Box2d object in Gideros Mobile

Let's take Box2d basics project and modify it to allow dragging and throwing ball around. We'll put all contents inside init method. For that, when creating ball object, we now need to store it in a variable for future...

Read More…

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…

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…

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…

1 2 3