corona

Best way to start learning Corona?

点点圈 提交于 2020-01-25 10:01:08
问题 I know I know this has been posted millions of times but I still can't find a solution. I want to start learning Corona and taking it seriously but I don't know how to start. I feel shame actually because I've been playing with its API for a couple of days but I still have lots of weakness and questions mostly in its basics and structure of the language. People posted Lua online Book link but how to start with it? Do I have to download Lua compiler or I could just use Corona compiler and

attempt to compare nil with number Corona

戏子无情 提交于 2020-01-25 07:12:57
问题 I'm about to finish my game, but I ran into an error: attempt to compare nil with number game2.lua 444 I don't have a clue on how to fix this, and I've tried quite everything, with no success. I think the function scrollSpace is causing this, because sometimes the background would scroll at an uncontrollable speed. Here is my code: function scrollSpace(self,event) if self.x < -900 then self.x = 800 else self.x = self.x - self.speed end end This controls how the stuff scroll across the screen.

attempt to compare nil with number Corona

故事扮演 提交于 2020-01-25 07:12:17
问题 I'm about to finish my game, but I ran into an error: attempt to compare nil with number game2.lua 444 I don't have a clue on how to fix this, and I've tried quite everything, with no success. I think the function scrollSpace is causing this, because sometimes the background would scroll at an uncontrollable speed. Here is my code: function scrollSpace(self,event) if self.x < -900 then self.x = 800 else self.x = self.x - self.speed end end This controls how the stuff scroll across the screen.

Corona vs Titanium for iOS and Android development

*爱你&永不变心* 提交于 2020-01-25 05:03:04
问题 i am using phonegap since last one year but not satisfied with the performance, now i m looking for a change and wanna start with Corona or Titanium but don't know which one is better, i don't have any problem with Corona's Lua or Titanium's JS just want a better and scalable working environment, please show me the light to chose a better way. 回答1: In general these kinds of tools just doesn't work optimal. Applications made tend to crash, leak memory and you still have to do a lot of double

OOP and eventListener in Lua (Corona SDK)

冷暖自知 提交于 2020-01-24 12:48:06
问题 My first steps in Corona SDK and first troubles. Trying to make two boxes which I can move by following this OOP tutorial, but this doesn't work. I have successfully created two boxes but only one is movable. When I try to move another one it doesn't moved but first one is moving. Guess there's problem with scopes but can't figure where is exactly. Thank you for any help. tile.lua source code: module (..., package.seeall) function new(initX, initY) local scrnWidth = display.stageWidth local

Trying to update a Samsung store app - getting error “The signing key is invalid. Please check the signing key of the binary”

会有一股神秘感。 提交于 2020-01-17 04:31:06
问题 We are building an update Android apk using Corona SDK - with the Target App Store set to "Samsung". We are definitely using the same keystore file that we used to sign the original build. I've used it plenty of times, and it's the only one I have for this app so it's definitely the right one. When uploading updates to Google Play it has worked fine, it's just not working on the Samsung store for some reason We keep getting this error message: "The signing key is invalid. Please check the

Touch Hold Event In corona SDK

橙三吉。 提交于 2020-01-15 15:56:28
问题 I was wondering how I would check if the user has touched the screen, but is holding their touch down and is not moving. Please help if you have anything I can go from. Ive been looking around and have yet to find anything to handle this. 回答1: You can use/modify this: (It's what Rob Miracle says) local holding = false local function enterFrameListener() if holding then -- Holding button -- Code here -- Code here -- Code here else -- Not holding -- Code here -- Code here -- Code here end end

Lua for loop does not iterate properly

陌路散爱 提交于 2020-01-15 12:33:23
问题 I am in dire need of help with a for loop. I'm trying to go through a for loop in Lua with the Corona SDK, but I am doing something wrong but I don't know what. See below for my code: function moveLift(event) for j=1,4,1 do if event.phase == "began" then markY = event.target.y elseif event.phase == "moved" then local y = (event.y - event.yStart) + markY event.target.y = y elseif event.phase == "ended" then if (hasCollided( event.target, hotSpots[j] )) then print("hasCollided with floor: ",

Where is the log printed when I use print(“”) in Corona Engine?

馋奶兔 提交于 2020-01-13 04:20:08
问题 I used the print("Helloworld") function in the code, where is the output printed? 回答1: A lot depends on how you started Corona and if you're on a Mac or PC or if you're looking for this information while running in the XCode simulator or on a device. For a Mac, you are best to start Corona SDK using the "corona-terminal" app in the Applications/CoronaSDK folder. This will launch the Terminal app, which will in turn launch Corona SDK. Your errors, warnings and print statements will show in the

Windows 10 周年版尝鲜

北战南征 提交于 2020-01-07 05:03:42
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 早在今年的 Build 大会上,微软就开始宣传最新的 Windows 10 周年版更新,炫了不少特技,直到昨天(2016/8/2 PST)才正式放出,相关新闻可以参考 这里 ,正式的版本为 Version 1607,系统编译版本为 Build 14393.10。 文章来源: 葡萄城产品技术社区 目前可以通过下面的多种方式开始更新: 1. Windows Update,面向所有用户,但是微软要分批初步推送,估计很多人不会立即刷到。你可以到“更新和安全”设置里 Roll up,幸运的话就可以看到类似下面的画面。 2. Media Creation Tool,微软推出的一个系统更新工具,可以自动选择并下载镜像来更新,需要注意的是必须保留8-10G的可用空间。 3. MSDN 订阅,所有的订阅用户可以直接选择自己需要的任意版本,包括公众版,企业版,教育版,IoT 版等等。 4. 从 Windows 官方下载 iso。 下面开始尝鲜,我选择的是从 MSDN 订阅下载,安装的是中文企业版,重要的是在虚拟机里进行的(毕竟对 windows 的稳定性不抱太大的期望)。 下载好镜像之后创建虚拟机,插入镜像并启动,很快就看到安装界面,没有什么变化的地方,但是加载速度快了不少。在我的机械硬盘的机器上,整个安装拷贝的过程大约10分钟