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
"SLICE9" class
скачати клас slice9 можна тут: https://github.com/slice9 download slice9 class here: https://youtu.be/ga9iZ-BMgjY maybe someone has done ...
12
31
215
'Rocky Climb' mechanics - how to?
Hey guys! I'm trying to understand basic 'Rocky Climb' mechanics (https://play.google.com/store/apps/details?id=com.estoty.rockyclimb ) * How would you generate ...
Answered
1
53
Customizable hero clothes - how to?
Hey guys! How can we make hero customizable? (considering that it has many animations: walk, jump, ...
Answered
7
80
Knife Hit mechanics - how to?
Hi guys! How would you create 'Knife Hit' prototype? (original gameplay is here: https://www.youtube.com/watch?v=o7XB4_HgBoI (I've attached my current gproj ...
Answered
6
104
Zoom effect like in Sinister Soccer
Okay Mr Houdini how do you do that zoom effect? B) Can you share ...
Answered
3
87
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
9
352
Animations
I'm working on a Lua extension to TexturePack which will make frame-by-frame animations easier. I ...
Answered
10
75
Does Scenesmager not remove the previous sprite?
I downloaded a very cool scene management code package that you have here on the ...
Answered ✓
15
107
Attempt on Localization
Hello, wanted to try something on localization in Gideros and here is the result of my ...
123
86
2.3K
Full screen on macOS
If you're using "letterbox" scalemode (aren't we all?) and want application:setFullScreen() to completely fill the ...
Answered
2
48
Button class is (multitouch)
my advanced version: --[[ class button v 1.3 https://simartinfo.blogspot.com/p/blog-page_23.html author (c) https://www.facebook.com/AndroidMobileGame Usage: ------------------------------------ local btn1= Button.new(Bitmap.new(Texture.new("img/gui_48.png"))) stage:addChild(btn1) btn1:addEventListener("clickDown", function(e) e:stopPropagation() ...
4
135
Gideros Unite: framework for multiplayer mobile games
Finally I can lift it from my shoulders, been bothering me for some time, constantly ...
123
82
4.8K
Collision error
Hello! I recently stumbled upon a problem. I get the following error whenever I use this ...
Answered ✓
3
47
Gideros Mobile: comic book with page curl effect
FlipPageView: create simple comic book with page curl effect -Examples: --create new object local flipview = FlipPageView.new() --add some ...
12
31
3.9K
Code for landscape or portrait
Here is some code to help you make your games landscape or portrait. First make a ...
0
48
tilemap object and tiled tile flip
Hi, [edit, I was totally wrong the first time :) ] I just noticed that TileMap ...
Answered
6
171
Gesture zoom
demo test: https://youtu.be/oofeZeUtynU --[[ Scale by gesture клас Масштабування жестом v.1.0 https://simartinfo.blogspot.com/p/v.html author (c) https://www.facebook.com/AndroidMobileGame" ВИКОРИСТАННЯ: ------------------------------------ using: --Lupa.new(number of fingers) ...
6
67
Beautiful Gradients on Gideros
Hi folks! I'm working on a script which you can test in this link: https://github.com/HubertRonald/Gradient It's still in ...
15
300
Pulsing rainbow glow effect
Another shader I've just made and which might be useful below. It creates an animated ...
4
97
Possible Gideros Splash Screen
Recently there has been some discussion about how to grow the Gideros community. To me ...
6
265
Radial blur effect class
Here is a quick lua class to add a fast-but-not-perfect blur effect to any sprite ...
10
235
New Lua enhancements
I've added a multi-dimensional array indexing with comma syntax patch by Mark Fieldman. It modifies the ...
Answered
28
221
How to create a RESTful API using Node.js
I'm trying to read more about RESTful API usisng node.js and try to using on ...
Question
1
48
Multi-font fonts !
When programming a game you need to pick the right font that matches your game, ...
4
114
xtralife include file and tutorial.
Clan of the Cloud was changed to become xtralife some time ago. It's an open source ...
15
210
Using the < > and > < custom Gideros operators.
The Gideros version of Lua has some extra operators not present in regular Lua. Two of ...
10
119
Unified random number generator
When writing a game it's often useful to be able to get a random number. ...
3
65
RoundedRectangle class
You're welcome. :) RoundedRectangle = Core.class( Path2D ) function RoundedRectangle:init( width,height,radius ) local diameter = radius*2 if width < ...
Question
1
48
Easy text translation
Whilst making RetroStar I decided to improve my text translation routines. I think some ...
1
68
glsl syntax highlighting in zerobrane studio
i missed syntax highlighting of glsl files in zerobrane studio. after asking @paulclinger, there is ...
1
46