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
Simple Item Pool Class Here is simple item pool code for http://giderosmobile.com/forum/discussion/4767/fully-automatic-spawning-class
5
531
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
51
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
26
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
239
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
64
HTML5 Ad Blocker detect code
HTML5 games don't work properly if the user has an Ad Blocker enabled. ...
4
52
FB Instant Games , a long long journey
Hello, I recently made ('thanks' to the lockdown) my comeback to Gideros after many monthes ...
12
41
225
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
166
bitwise operations on Android
It's me again... I am sure this has been seen before, but I couldn't find ...
Answered ✓
18
75
2D lighting
Here I posted a video of 2d lighting effect. I was using a simple ray ...
Answered ✓
11
173
Bloom and decay without a custom shader...
Was tinkering and had some advice from some friends about alternative ways to do bloom ...
16
214
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
136
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
114
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
126
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
102
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
53
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
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
161
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
115
Another Shake
Folks, I wasn't too happy with some of the other "shake" examples that I'd seen so ...
4
402
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
101
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
104
Multi-font fonts !
When programming a game you need to pick the right font that matches your game, ...
4
263
Audio class
Hi.. Here is a class that will help you managing sounds on your game. It gives ...
4
497