Hello !
I'm trying to find a setup where I can edit the files inside of a cart with an external editor like VSCode.
In the filesystem documentation it's suggested that you use the following commands
mkdir /live_cart mount /ram/cart /live_cart folder /live_cart |
However this doesn't work in the current version because you can't mount a folder that already exists (here /ram/cart)
Running rm /ram/cart
then trying to mount it does work, however trying to load
a cart seems to override the mount so you can't edit it.
Copying the content of the cart from ram/cart into a folder, then mounting that folder into /ram/cart, then trying to run the cart doesn't work either because the editors will save their content into ram and override the files in your cart.
Has anyone found a reliable solution for this use case ?
Thanks !
A simple trashbin.
Drag some files and drop them in the trashbin.
The trashbin icon uses the theme colors for icons.
Add the following lines to /appdata/system/startup.lua
:
create_process("/desktop/trashbin.p64", { argv = { config_path="/appdata/trashbin.pod", trash_dir="/trash" } }) |
Modify the values for config_path
and the trash_dir
at will.
The trash_dir
will be generated and a trashbin icon will be set in the metadata.
Double-click on the trashbin will open the configured trash_dir
in the filenav app.
You can drag and drop the trashbin and it is saved immediately in
the pod configured in the config_path
.
changelog
1.1.1
- fix issue with missing theme pod
in web player
1.1.0
- use current theme colors for icon
- instead of right-click, a double-click
now opens the configuredtrash_dir
- more dynamic sprite for the
trashbin (thanks to @washburnello) - set icon in metadata of
trash_dir
1.0.0
- drag and drop files into the trashbin
- right-click on trashbin opens
configuredtrash_dir
- drag trashbin to change
position (thanks to @cubee) - new position will be saved in a
pod configured withconfig_path
function _draw() cls() print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n") -- 19 newlines end |
costs 0.1 cpu according to ctrl-p
.
however,
function _draw() cls() print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n") -- 20 newlines end |
costs 0.47 cpu. Each additional newline after that adds around 0.46 cpu usage. This happens with seperate print
calls as well. Supplying coordinates to the print
call will prevent the cpu from spiking. Note that the 20th newline is when print
will scroll the first line off the screen.
Please enjoy this very necessary desktop wallpaper.
This is 0.1 and not 1.0 because performance is a major issue: this will run at 60fps if you have no windows open, but will drop to 30fps or possibly lower if anything at all is running on top of it. When that happens, (WARNING) you may get some flickering, especially if some windows overlap desktop icons.
Despite the fact that this is basically just a reskin of the other wave sim I posted - using a different rendering effect to keep it compatible with the default palette - I still think it's kind of neat. Hopefully I'll find ways to get this running more smoothly over time. Or, failing that, maybe just ways to pause it if anything else is open.
A two player TRON lightcycle game. Try not to crash before the other player does!
From picotron, type "load #picotrontron-0" to load the game
On a PC, Player 1 controls are the arrow keys. Player 2 controls are WASD. The second player doesn't seem to work on the web for some reason, but should work when run within picotron itself.
How To Play
Click on white carrots! (don't ask me to elaborate)
Behind The Scenes
I'm really enjoying PICOTRON, and here's a little interactable demo I made in abt an hour, seeing what I can do in PICOTRON! Enjoy!
Version History
V0.7 (3/26/2024)-
-Added a new scoring system
-Added hungry bunny (top-left)
-Added icon + info
The Picotron Wiki
This is a viewer for the online Picotron wiki
(https://github.com/Picotron-Software-Developers/Picotron-Wiki)
If you'd like to contribute to the Wiki please make a pull request on the GitHub. The interface and capabilities will be updating soon!
(Just wanted to get this cart out today)
Here's a guide on how to contribute: https://www.youtube.com/watch?v=_8zS45cHeRA
Warning: This cartridge may not work in the web player
You can run load #picotron_wiki
to use it inside Picotron
Just checking web player timings. Please ignore.
(Just to note, this uses really crappy math for getting the seconds, so if it overlaps the current minute's seconds, the numbers will be overlap incorrectly. Just start it again near the beginning of a minute.)
But @zep, check these timings. The web player is running super fast.
This is a fun, simple wallpaper. I was trying to keep it from being too annoying, but also still look cool. At some point I may have it follow the current theme colors. But for now it just uses the spritesheet. It runs idle at around 0.3% CPU and maxes out around 4% or 5% CPU.
You can add this to your Picotron wallpapers by typing this in Terminal (which assumes you've already created a /appdata/system/wallpapers
folder):
load #hexpop save /appdata/system/wallpapers/hexpop.p64.png |
If you want them, I also made three other variations: Fire, Rainbow, and one that follows your theme.
Shunting Master!
Congratulation, you got a new job and it is your first day at the shunting yard. Your first task is to collect 100 rail skids.
After collecting 5 skids you have to hang them at the skidrack(press x).
But don't be lazy, time is tickin' and you will get tired soon...
The game is almost done now, I guess at the end it is quiet difficult and you need some luck to avoid long distances.
Diagonal movement is adjusted and jittery movement is eliminated for almost 98%.
last update
-bunnies added
-locomotive added
previous update:
-npc coworker
next:
-fix screenshake
Controls
◀ ▲ ▼ ▶: move player/make choices
z/o: interact with world
x/x: show/hide minimap
Story
It has been 3 years since darkness has left the land. Your brother has been missing since the darkness was lifted. Many rumored he defeated the four evils and brought peace back to the land. Now darkness is returning. You have the hero's blood, so you are the next hope.
Explore the 64x64 resolution world with a cozy 63 screens map.
Discover the secrets to your brother's disappearance. Learn more about yourself and gain insights.
Initial Inspiration
My inspirations for this game are games like Zelda and Undertale. I wanted to include dating sim style gameplay as well because I think it is fun. I was interested in the idea of this being the second time the boss monsters have interacted with heroes. I thought this gave a cool dynamic to the bosses and gave them the opportunity to give their perspective of heroes running in and breaking stuff.
A portion of my notebook is dedicated to 1-2 page game drafts. These can be as short as a name and a couple of sentences of ideas or filling the entire space. I really enjoy making rapid fire game concepts. The 2 pager for this game had the viewscreen being 64x64. After I saw the game SokoBird, I knew I wanted to try something low-rez. After deciding on a game idea I want to pursue, I'll move to the section in my notebook where I can write multiple pages and have room to blog my progress. I enjoy looking back at the draft page to see what ended up being altered or abandoned.