coronasdk

How to install the libwebkitgtk package on Ubuntu 20.04 LTS?

跟風遠走 提交于 2021-02-04 18:11:28
问题 So I am trying to install Solar2D (formerly known as Corona SDK) to make a mobile game. After installing the dependencies, when I run Solar 2D I get the following error: /home/user/CoronaSimulator/CoronaSimulator: error while loading shared libraries: libwebkitgtk-3.0.so.0: cannot open shared object file: No such file or directory I tried installing libwebkitgtk using sudo apt-get install libwebkitgtk-1.0-0 but I get the following message in Terminal: Reading package lists... Done Building

attempt to index field ? (nil value)

你。 提交于 2020-05-15 08:42:13
问题 I am not sure where the problem is. Anyone know why? function check(board, color, row, col) --if same color, change tile to "o" if board[row][col] == color then -- attempt to index nil? board[row][col] = "o" count = count + 1 return "o" end return end 回答1: The problem is that board[row] is not defined; it's nil . So you are trying to do nil[col] . You can avoid this error by doing this: if board[row] and board[row][col] == color then Instead. However, I'd recommend you to review the way board