nesbox / tic-80 Goto Github PK
View Code? Open in Web Editor NEWTIC-80 is a fantasy computer for making, playing and sharing tiny games.
Home Page: https://tic80.com
License: MIT License
TIC-80 is a fantasy computer for making, playing and sharing tiny games.
Home Page: https://tic80.com
License: MIT License
As the Pico-8 FOLDER command, it is really convenient.
'FOLDER open the current directory in the host operating system's file browser'
Not sure if pbtn is working as it should. If I keep pressed a key pbtn return true every odd frame.
I was expecting to only receive true again after releasing and pressing again the button.
Try in Win10 64Bit with 0.0.13 and 0.0.12
add following metadata to cart:
and implement method to edit meta info
Similar to how you can see the ram layout, but lists the keymap and what buttons are bound to the keyboard.
The code is not highlight correctly but multiline comments is correctly not executed
print("this is printed")
--[[
this code is
not executed
print("not printed")
--]]
Hi,
Left bracket on french windows keyboard use Alt+4 , when I use Alt 4 it's change screen to go sfx editor. Can you remove this hotkey and leave only alt+F4 hotkey or fix this bug.
Thanks
/data/data
Requires root permissions on Android.
/Android/data/
does not. It'd be nice to access my .tic without rooting my tablet or phone.
It's a bit odd but here how to reproduce it:
Open the code editor write just one char (or more), now you can save. It seems like the modification can come from any editor.
What about if the NEW cart will contain at least the TIC function definition? At the end TIC function is strictly required.
Add luasocket support please for multiplayer games.
(I hope, I will able to download more than 64k of code from the server) :Ь
Being able to use TIC on Android is great, however CTRL+C, CTRL+V do not work making it difficult to create animations, or fixing some code issues without redrawing and retyping.
Maybe we can have cut, copy and paste buttons along the top right of the header bar? Or with the other tools in the sprite editor?
Undo and redo would be a nice touch as well.
When playing a sound, after some time, it starts lag. And every time you keep playing sounds it lags more and more.
How to reproduce:
Any sound will starts to lag. Just open the sfx editor and press a key on the piano. At first there is a small lag. Keep pressing more keys, and the lag time starts to increase with every key pressed.
After some time, it will be a lag like 2 or 3 seconds on each key press.
Tested in Windows 7 with Chrome, Firefox and Opera. All with the same result.
I'd find it nice to have a command for downloading a specific version of TIC from the console so I don't have to visit the itch.io site every time it is updated.
Its one parameter would be the version name/number.
Hello,
I saw snippet function in the wiki
Have you plan for other api function like circ functions in native api in the future?
And have you got a roadmap? if yes can you share it? :-)
The sound on startup is quite loud.
It would be nice to change the volume of TIC-80 (in the config file)
And why not being able to create a custom startup sound.
So that the user can reproduce the startup sound of the gameboy or other systems.
Linux 64-bit executable, crashes silently for all of "export", "export html", and "export native" after flashing screen for save destination.
On startup, all examples are download on folder.
Even if I use 'del' command or delete manually on ".local/share/TIC-tiny computer/0.16.0 dev/" (on linux system)
Hello,
I don't know if I'm alone, but I have a problem with the trackpad scroll on my mac.
The scroll down only and doesn't up.
But it is not blocking, it's just a little bug.
in the config.lua file, we should be able to customize the TAB character in order to avoid mistakes in moonscript.
Character customization could be extended to all ASCII characters (from 0 to 127).
add a function to draw entire screen buffer with XY offset
shake [x y]
the offset will reset every frame to 0:0 if you won't call the shake api
It is necessary hotkeys to cyclic image shift in the sprite edit window.
Hello,
Can you add in the sprite editor a sprite flags like pico8?
This is not important, but it would be nice to have syntax coloring for moonscript.
And since we can change the symbols for whitespace characters, those characters should be colored lightly relatively to the text.
I mean by that the background of the text editor use color 0, regular text use color 15, so whitespaces should use color 1 rather than color 15 to be darker.
My Android phone is connected to the keyboard.
I can't use other than the arrow keys to control when I running my code.
And if I switch the apps, when I open the TIC again, it will not be able to input, only can restart.
It is very critical for MoonScript.
Mixing up the 'tab' and the 'white space' code simply will not be parsed. Visually, they are identical.
Приветствую! При загрузке картриджа и последующем переходе в редактор карт, текущая карта отображается не со смещением 0,0 и не последняя редактируемая, а по середине и со сдвигом. В равом нижнем углу окна выбора карты возникает небольшой прямоугольный артефакт.
It would be nice to be able to copy and paste blocks of sprites in the Map Editor
Would it be possible to add an API function for polling mouse coords and buttons? Or maybe a memory location one could use to peek() the mouse data?
It would be nice to have a console commands for importing and exporting sprite set of graphic format, such as .png
As you requested i'm creating an issue here about the black borders that are present in some resolutions.
Hi,
It's possible, when you are in fullscreen (or not) to decrease font size?
or implement a increase/decrease font size?
increase: ctrl+ +
decrease: ctrl+ -
Now the keys are not easy to click. [Only 2P> btn(8..13)]
Can make a command to set up button?
E.g: setBtn(id, key)
Can be useful in games like https://spazzylemons.itch.io/ticochet
To reproduce: copy and paste some code till you pass over 65536 char
Win10 64Bit version 0.0.13 dev
Debug head to igdumdim32.dll
Greetings
Good day! I saw that the DIR console command does not work in the local version of Win XP. Reports: file system is empty try to use ADD command. Although the files are located in the working directory C:\Documents and Settings\cito1\Application Data\TIC - tiny computer\0.16.0 dev
It seems that the windows store version is quite bugged.
for example:
There might other bugs, but I cannot look further.
I used this test program.
Clicking on the keyboard work out okay, but both of the gamepad are displayed as the first gamepad. Secondary gamepad displayed as first.
For example in the pico-8 both worked )
The operating system is Windows 7, if it is important.
--Key Test Project
--By Rain_Effect
local x=70
local y=25
local btnLabel={"Up","Down","Left","Right","Btn A","Btn B"}
function TIC()
cls(0)
print("Key Test Project",x,y)
print("Btn",x,y+15,2)
print("1P",x+50,y+15,2)
print("2P",x+80,y+15,2)
for i=1,6 do
print(btnLabel[i],x,y+(i+1)*10+5)
if btn(i-1) then
print("On",x+50,y+(i+1)*10+5,11)
else
print("Off",x+47,y+(i+1)*10+5,6)
end
if btn(i+7) then
print("On",x+80,y+(i+1)*10+5,11)
else
print("Off",x+77,y+(i+1)*10+5,6)
end
end
end
Can you add hotkeys for mac ?
normally for mac user:
cut it's cmd+x
copy it's cmd+c
paste it's cmd+v
have you plan to implement undo , redo ?
undo: windows : ctrl+z / mac: cmd+z
redo: windows : ctrl+shift+z or ctrl+y / mac: cmd+shift+z or cmd+y
Hello, Vadim. Your project is awesome! I fell in love at first sight, thank you very much for your work! :3
I actually have a question - what if I want to make something more than little 64k game? I want to make online game with udp-server. Can you add socket support and remove 64k limit? It is possible theoretically?
Keeping the same format of config file will help avoid misunderstandings.
If no palette is defined use the standard one.
Maybe implemented camera operator for a smooth scrolling like as PICO-8?. If the camera operator is not specified in the user program(script), use the only map operator for backward compatibility.
Make a tool to configure keyboard and gamepad buttons mapping.
Save the mapping settings in local storage.
Lua script works without problems.
Moonscript example, which certainly works in the editor:
--[moonscript]
export TIC=->
cls 8
print "sum: "..sum(10,20)
export sum=(x,y)->x+y
Sorry for my bad language, I'm french ! :)
I requesting to change axis buttons (left,up,right,down).
I think, it's would be more user-friendly if btn(0) and btn(1) return a integer variable for axis pressed:
In fact, on a joypad NES joypad reference, it's impossible to press left and right in same time.
But with the current buttons configuration, I can do this:
if btn(2) and btn(3) then x=x+1 end
With -1 to 1, we can moving object in TIC axis:
-- 'hello world' demo
function btnAxis(which)
if which==0 then --x axis
a=2
b=3
elseif which==1 then --y axis
a=0
b=1
end
if btn(a) and btn(b) then
return 0
elseif btn(a) then
return -1
elseif btn(b) then
return 1
else
return 0
end
end
t=0
x=104
y=24
function TIC()
--[[ old dummy code :)
if btn(0) then y=y-1 end
if btn(1) then y=y+1 end
if btn(2) then x=x-1 end
if btn(3) then x=x+1 end
--]]
-- new super function
x=x+btnAxis(0)
y=y+btnAxis(1)
cls(12)
spr(1+(t%60)/30,x,y,-1,4)
print("HELLO WORLD!",84,64)
t=t+1
end
I thinking about add select, start, L trigger, R trigger buttons, but I think it's to much.
How about add just start button ?
Currently TIC only runs on OS X 10.12 (Sierra). If possible, please compile binary with support for 10.11 (El Capitan) as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.