TIC-80 | fantasy computer for making , playing and sharing tiny games | Game Engine library
kandi X-RAY | TIC-80 Summary
kandi X-RAY | TIC-80 Summary
TIC-80 is a free and open source fantasy computer for making, playing and sharing tiny games. With TIC-80 you get built-in tools for development: code, sprites, maps, sound editors and the command line, which is enough to create a mini retro game. Games are packaged into a cartridge file, which can be easily distributed. TIC-80 works on all popular platforms. This means your cartridge can be played in any device. To make a retro styled game, the whole process of creation and execution takes place under some technical limitations: 240x136 pixel display, 16 color palette, 256 8x8 color sprites, 4 channel sound, etc.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of TIC-80
TIC-80 Key Features
TIC-80 Examples and Code Snippets
Community Discussions
Trending Discussions on TIC-80
QUESTION
So I am building a game for a game jam over at itch.io, and I'm using this really neat Fantasy Console called TIC-80, found at tic80.com. My issue is that while I understand what the error message is and what it means, I don't understand as to why it's giving me this error.
Error Message (In the TIC-80 console):
...ANSWER
Answered 2021-Dec-17 at 09:44Let's take a look at your bullet handling
First call to TIC
:
bullets
is 0. We add one bullet into bullet[0]
Second call:
bullets
is 1. We add one bullet into bullet[1]
.
Now, as bullets > 0
we enter the bullet physics if statement.
We do some calculations to that bullet and increment bullet[0].t
The following calls we do the same. We add a bullet and process all but the new bullet as we did above.
When a bullet's t
field becomes > 16
we remove it from bullet
.
So first we remove the oldest bullet bullet[0]
. But in the following call we again start our loop at i = 0
. so bullet[i]
is nil
and hence indexing it in bullet[i].x
causes the observed error.
Side note:
This makes no sense.
QUESTION
The error says i'm missing a } but i'm closing the {}. I'm coding a 2D game using Lua and TIC-80. I've been trying to solve this issue but I don't have any ideia of what is the problem here. Can anyone please help me? The error says that the problem is in the "inferiorRight" object and that I'm not closing the '{'
...ANSWER
Answered 2021-Jan-14 at 19:53This is not a proper syntax with player.y
used as a table key:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install TIC-80
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page