Questions tagged [gideros]

Gideros is a free and open sourced mobile first app development framework. Develop apps in Lua and build locally and deploy to iOS, Android, Windows Phone/RT, OSX/macOS, win32 as well as HTML5.


Gideros features:

  • free to use, no payment to remove splash screens
  • open source, OpenGL/C/C++ engine
  • Lua invoked, C side implemented code profiler
  • instant testing locally and on networked devices with the included Player
  • export XCode, Android Studio and Visual Studio projects...
  • ... or build Android, win32 and HTML5 directly from IDE
  • extend with C/C++/ObjC/Java plugins
  • online fiddles

Documentation

42 questions
0
votes
1 answer

attempt to call a nil value

for i = 1, groupA:getNumChildren() do local sprite = groupA:getChildAt(i) if cute.anim[1]:collidesWith(sprite) then youLoose() end end local function youLoose() local font3 = TTFont.new("billo.ttf", 20, "…
systemdebt
  • 4,589
  • 10
  • 55
  • 116
0
votes
1 answer

Checking for every collision in game

I am using Gideros, Here is the code that I have to check for collisions, but what is really happening is collision is printed only 3 times since there are only 3 members in groupA, I want to check collisions with all 3 but obviously as long as game…
systemdebt
  • 4,589
  • 10
  • 55
  • 116
0
votes
1 answer

Difference between Edgeshape.new and PolygonShape.new (box2d)

In Gideros, which is a 2d game development engine, box2d is a physics library, which probably is external library and not internal to Lua, there are function called edgeshape.new and Polygonshape.new(), what is the difference between two?
systemdebt
  • 4,589
  • 10
  • 55
  • 116
0
votes
1 answer

Alert dialog not working in Lua

I am using Lua with Gideros and having alert box to show up when back button is pressed.According to Gideros documentation, when first button is pressed, it returns index 1 but it does not really seem to work this way.I tested the app on my android…
systemdebt
  • 4,589
  • 10
  • 55
  • 116
0
votes
1 answer

Lua : Creating a class shows unusual behaviour with setAnchorPoint and serRotation

I have this piece of code. In this example, If I replace 'Graphic' with 'self' at Graphic:setAnchorPoint and Graphic:setRotation, the image appears on screen but does not rotate. What is the reason? I am fairly new to Gideros and do not totally…
systemdebt
  • 4,589
  • 10
  • 55
  • 116
0
votes
1 answer

Why do I need to use Event.ENTER_FRAME here in Gideros?

local W = application:getLogicalWidth() local H = application:getLogicalHeight() local xD, yD, speed = 1, 1, 10 local img = newImage("myImage2.png", 0, 0) local wd, ht = img:getWidth(), img:getHeight() function onEnterFrame(event) local xP,…
systemdebt
  • 4,589
  • 10
  • 55
  • 116
0
votes
1 answer

On Gideros my game looks different on emulator and actual device

On Gideros I set the Logical Dimensions to 720x1080, with Scale Mode = Letterbox, and when I test it on the emulator with the same resolution it looks good, with no bars at the top and bottom or at the sides. Then when I test it on a Sony Xperia T…
Adocad
  • 731
  • 1
  • 11
  • 27
0
votes
1 answer

Gideros game engine box2d bodies

I am going to make a simple Game. my code have many bodies in on timer function (every second for example): local function onTimer() local sx = 20 local sy = 20 body = world:createBody{type = b2.DYNAMIC_BODY, position = {x = i*48, y =…
Gamer2014
  • 3
  • 1
0
votes
1 answer

Motion sensor on Gideros mobile

Is it possible to use motion sensors with 'Gideros Mobile SDK'? Any piece of code / link to tutorial/example will be helpful. I am writing for Android if it matters.
sachin garg
  • 1,316
  • 15
  • 27
0
votes
3 answers

Is there any way to run an application direct to the device on Corona SDK?

It is very time-consuming to build an application, copy the apk on the device, install it and run it, just because you want to change the value of a variable. Is there any way to run an application straight to the phone (like in Unity) ? Does…
Avraam Mavridis
  • 8,698
  • 19
  • 79
  • 133
0
votes
1 answer

Gideros image dynamic load and delete from memory

I would like to make an mobile application, what contains a lot of picture My question how can I dynamically open the picture and delete from memory? I tested this: a = Texture.new("a.jpg") print(Application:getTextureMemoryUsage()) -- write x a =…
somla
  • 11
  • 3
0
votes
2 answers

Get and Post methods in Lua

I need a method in Lua. This method should work like post and get methods which exist in php. I need it to build a simple login page with lua. What i need to do it with Lua? Thanks in advance
oiyio
  • 5,219
  • 4
  • 42
  • 54
1 2
3