Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
Code snippets - Gideros Forum

Code snippets

Everything that you can plug into your app without changing much or at all.
Discussion
Started By
Replies
Views
Most Recent
Social 'Share' buttons - how to?
Hi all! Social share buttons have become an industry standard. How do we integrate them in Gideros? One ...
Answered ✓
14
237
Organizing sprites with Gideros built-in layout system
Here is a quick demo to show how it can help (needs Gideros 2020.7). local grid=Pixel.new(0x0000FF,1,320,480) ...
5
46
HTML5 Ad Blocker detect code
HTML5 games don't work properly if the user has an Ad Blocker enabled. ...
4
51
FB Instant Games , a long long journey
Hello, I recently made ('thanks' to the lockdown) my comeback to Gideros after many monthes ...
12
41
214
Facebook Instant Games: A brief tutorial to get started
Hi guys, I've successfully added Scrappy Cat, a game I've previously released on web and mobile, ...
Answered
15
1.1K
Some sort of Layout system
Its not even close to a n1cke's layout :D But, this thing allow you to ...
Answered
14
157
bitwise operations on Android
It's me again... I am sure this has been seen before, but I couldn't find ...
Answered ✓
18
70
2D lighting
Here I posted a video of 2d lighting effect. I was using a simple ray ...
Answered ✓
11
147
Bloom and decay without a custom shader...
Was tinkering and had some advice from some friends about alternative ways to do bloom ...
16
198
Clamping & Remapping the value
Just want to share two very useful functions. -- Limits the value to the specified range. -- ...
Question
0
42
Skeleton game code
This code has a background 'game' (just a square moving), a title front end, an ...
5
129
You learn something new everyday!
Just figured you can do something like this in Lua ! function still() print("still") end function move() print("move") end stuck=true (stuck and still ...
0
37
Creating Lua Plugins... I've added some help to the Wiki on how to create a Lua based plugin. https://wiki.giderosmobile.com/index.php/Making_a_Plugin
13
110
How to setup IAB in 2019?
Hi guys! I've never tried to setup in-app purchases for GooglePlay. Some questions raised: 1) Why I can't ...
Answered ✓
6
117
CBUMP + TILED = I AM HAPPY TO SHARE :-)
I am building some platformers using gideros. I modified the tiledmap class written by some nice ...
Answered ✓
4
100
How to require "dataSaver" class in init.lua?
Hi guys! I have a question about this class: http://appcodingeasy.com/Gideros-Mobile/Save-and-load-data-module-for-Gideros-Mobile How can I require "dataSaver" inside 'init.lua'? I'm ...
Answered ✓
1
43
SuperShape
While I was figuring out how to work with meshes, I made an implementation of ...
Answered
4
125
My simple button pad class
So, I decided to create a simple math game for myself to play it on ...
Question
0
41
Show a sprite being hit like in the arcades.
Ok, so sometimes you shouldn't believe everything you read. For example, in the Gideros instructions it ...
16
153
How to stop Core.asyncCall?
Hi guys! Core.asyncCall is very handy for working with delays, personally I use it this way ...
Answered ✓
2
59
How to make this sliding effect?
Hi guys! Do you know how to make such sliding effect? (white lines slide from left ...
Answered ✓
14
110
Another Shake
Folks, I wasn't too happy with some of the other "shake" examples that I'd seen so ...
4
396
Is it a good practice to complement internal Gideros classes?
Hi guys! Is it a good practice to complement internal Gideros classes instead of using global ...
Answered ✓
3
96
Questions about lua
Sorry for the baby question: How to check that the table has a function? ...
Answered ✓
3
67
BBCode TextField
Whether there is a plugin or an example, format the text with bbcode tags? [b]bolded text[/b] [size="30px"]Large ...
Answered ✓
3
97
Multi-font fonts !
When programming a game you need to pick the right font that matches your game, ...
4
259
Audio class
Hi.. Here is a class that will help you managing sounds on your game. It gives ...
4
492
my Scroll class hello girls! >:) I decided to share my class for scrolling https://youtu.be/CcQJG84CrG4 class: https://github.com/razorback456/gideros_tools/blob/master/scrolling/assets/classes/scrolling.lua example of a project: https://drive.google.com/open?id=1qLd16FI7WcJ4Ji1rN1Qz-XqmNwpFlsOr
1
109
my generator is a labyrinth hello girls I decided to share my game code with the labyrinth https://drive.google.com/file/d/1DSvZsF34c17ZecSeFccvyk6lLxxpZSC5/view?usp=sharing https://github.com/razorback456/gideros_tools/tree/master/labirynt%20test https://youtu.be/tdV0R84XFsk
Answered
2
117
Simple BoxNormalCollision function
Maybe someone find it useful, I used it in my game that I never ...
Answered
7
161