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
How to manage several projects using one code template?
Hi guys! I have an app that needs to be duplicated. Codebase is the same, but ...
Answered ✓
7
75
saving datas with HTML5 export
Hello, I'm back with a question that I'm afraid to already know the answer... Is there ...
Answered ✓
5
48
Why is x returning nil? The return statement works for other vars, but not x
Hi, Lua noob here. Just started today and have this question about functions and return ...
Answered ✓
8
42
Simple Item Pool Class Here is simple item pool code for http://giderosmobile.com/forum/discussion/4767/fully-automatic-spawning-class
5
543
How to write this math formula in Lua?
Hi guys! Do you know how to express these 2 math formulas in Lua? (They're from ...
Answered ✓
2
57
Another way to a draw a circle on Gideros
It just occured to me that there is a nice and very fast way to ...
0
37
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
247
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
82
HTML5 Ad Blocker detect code
HTML5 games don't work properly if the user has an Ad Blocker enabled. ...
4
54
FB Instant Games , a long long journey
Hello, I recently made ('thanks' to the lockdown) my comeback to Gideros after many monthes ...
12
41
229
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
167
bitwise operations on Android
It's me again... I am sure this has been seen before, but I couldn't find ...
Answered ✓
18
81
2D lighting
Here I posted a video of 2d lighting effect. I was using a simple ray ...
Answered ✓
11
195
Bloom and decay without a custom shader...
Was tinkering and had some advice from some friends about alternative ways to do bloom ...
16
228
Clamping & Remapping the value
Just want to share two very useful functions. -- Limits the value to the specified range. -- ...
Question
0
45
Skeleton game code
This code has a background 'game' (just a square moving), a title front end, an ...
5
144
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
40
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
125
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
129
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
104
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
57
SuperShape
While I was figuring out how to work with meshes, I made an implementation of ...
Answered
4
133
My simple button pad class
So, I decided to create a simple math game for myself to play it on ...
Question
0
44
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
172
How to stop Core.asyncCall?
Hi guys! Core.asyncCall is very handy for working with delays, personally I use it this way ...
Answered ✓
2
65
How to make this sliding effect?
Hi guys! Do you know how to make such sliding effect? (white lines slide from left ...
Answered ✓
14
116
Another Shake
Folks, I wasn't too happy with some of the other "shake" examples that I'd seen so ...
4
404
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
104
Questions about lua
Sorry for the baby question: How to check that the table has a function? ...
Answered ✓
3
68