Log In  
Follow
DivergentClouds
[ :: Read More :: ]
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.

P#143951 2024-03-20 15:05

[ :: Read More :: ]

Cart #parens8_repl-1 | 2024-03-22 | Code ▽ | Embed ▽ | No License
2

A REPL for PARENS-8 v3 by Siapran. Uses PicoTerm v1.10 by me for the UI.

For information on using PARENS-8 see the Github repository, all extensions and builtins are enabled.

To clear the screen run the clear function or press ctrl-l. To print to the terminal use the echo function. To clear the current line press ctrl-u.

Special thanks to @Siapran for making a special PARENS-8 version for this project.

PARENS-8 is licensed under the MIT license.


MIT License

Copyright (c) 2023 Katherine Miller

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

PicoTerm is licensed under the BSD-3 Clause license.


Copyright 2024 DivergentClouds

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

P#143760 2024-03-19 14:45 ( Edited 2024-03-22 17:03)

[ :: Read More :: ]

The left side is cut off on user profile pages as well

(sorry if this is the wrong subforum, couldn't find one that worked great)

P#143004 2024-03-14 22:39 ( Edited 2024-03-18 21:23)

[ :: Read More :: ]

Cart #tiny_edit-0 | 2022-06-15 | Code ▽ | Embed ▽ | No License
2

A text editor in under 512 characters. Made for Pico-8 512-Char Jam.
Also on itch.io

P#113192 2022-06-15 15:59 ( Edited 2022-06-15 17:17)

[ :: Read More :: ]

Is it possible to request a username change? I emailed [email protected] about changing my username a few months ago and followed up a week ago, but I've gotten no response? Does anyone know another way of getting in contact with Zep?

P#98026 2021-09-30 04:55

[ :: Read More :: ]

Cart #picoterm_v1-12 | 2024-03-21 | Code ▽ | Embed ▽ | No License
7


PicoTerm is a PICO-8 CLI template. It can be used as a basis for command-line games and programs.

See tab 3 for the functions that are called whenever a character or line is entered. See tab 2 for functions to call to interact with the terminal.

Pressing ctrl-u or ctrl-l will clear the current line of input or the screen, respectively. The up and down arrows allow you to scroll through input history.

If you use this in a project please follow the license terms at the bottom of the post. I would also appreciate being notified, however that is not mandatory.

If you do not use a feature in your project you can modify this remove it to have more tokens.

Known Issues:

  • Pressing ctrl-u does not clear the line from the input history.

Changelog:


1.10

  • Added ctrl-u and ctrl-l keyboard shortcuts for clearing the current line of input and screen, respectively
  • Added init_hook() and moved editable globals to default_init_hook()
  • Added arrow_hook() with input history traversal in default_arrow_hook()
  • Fixed max_lines being inaccurate for values over 19
  • Fixed cursor position breaking with max_lines being too large

1.9

  • Fixed bug where pressing backspace on an empty line would briefly move the cursor backwards
  • Rewrote a lot of code
  • Other various bug fixes
  • Added character hooks

1.8

  • Fixed bug where cpu usage would skyrocket with enough lines

1.7

  • Fixed bug where line wrapping wouldn't work if a previous line had been wrapped

1.6

  • Major line wrapping bug fixed
  • Fixed pressing ESC sometimes printing a dot

1.5

  • Fixed bug where the cursor would persist at the start of a line after pressing return

1.4

  • Added blinking cursor

1.3

  • Prohibited glyph characters in input to prevent doublewide characters from messing up the screen scrolling

1.2

  • Made it so that the prompt is mixed in with the log rather than being stuck at the bottom of the screen

1.1

  • Made it so pressing ESC won't print a character

1.0

  • Released

License:
BSD 3-Clause


Copyright 2024 DivergentClouds

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

P#93811 2021-06-21 17:28 ( Edited 2024-03-22 16:50)

[ :: Read More :: ]

Trying to export a binary or html file from a file that doesn't have the

_init() _update() _draw()

loop will result in a screen like in the picture. This particular image was from the code

print("test").
P#78046 2020-06-13 22:09 ( Edited 2020-06-13 22:10)

[ :: Read More :: ]

Please add a flag when launching a cart from the command line to make the cart path relative to the PICO-8 carts folder rather than the current directory of the command prompt/terminal. In addition, a feature to launch within a certain PICO-8 subdirectory rather than the root folder would be nice.

P#77906 2020-06-10 20:03

[ :: Read More :: ]

If you multiply a fraction that isn't a power a number greater than 1 the returned result will be incorrect (for example PICO-8 returns 9.9991 from print(0.1*100)). I'm aware that this is a problem inherent to fixed point numbers, however some special cases would be greatly appreciated.

P#68160 2019-09-26 21:05

[ :: Read More :: ]

When pressing a button on the keyboard with devkit enabled while paused through Splore the keystrokes will register and take effect when unpaused.

P#62989 2019-03-24 05:22 ( Edited 2019-03-24 05:40)

[ :: Read More :: ]

Cart #textedit0_4-0 | 2019-06-03 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

Text Edit
v0.4

Changelog:
0.4
[+] Total rewrite
[+] Word wrap (Credit: @Jusiv)
[+] Line wrap
[+] Lowercase letters
[-] Moveable cursor (Temporary)
[-] Scrolling text (Temporary)
[-] Tab (Temporary)

0.3
[-] Escape not working in Splore
[-] Arrow keys activating twice
[-] Escape creating a space

0.2
[+]SCROLLING TEXT
[-]pressing p more than once pauses in BBS

Implemented:
Typing with your keyboard
Backspace
Word Wrap
Line Wrap

Todo:
Saving files
Loading files
Undo/redo
Selecting text
Copy/paste
Tab
Moveable cursor (use arrow keys)
Scrolling text
(Possibly) on screen keyboard
And more...

Credits:
Jusiv for the word wrap function

P#56382 2018-09-07 16:14 ( Edited 2019-06-04 15:59)

[ :: Read More :: ]

Similarly to how you can enable the devkit mouse it would be nice if you could enable the keyboard for use in carts. This would allow for things like text adventures and keyboard shortcuts for things like roguelikes.

P#56210 2018-09-05 00:15 ( Edited 2018-09-05 07:00)

[ :: Read More :: ]

Cart #55867 | 2018-08-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

A 2-player pong variant with lasers

Left and right change laser color

-Red speeds the ball up
-Orange slows the ball down
-Yellow changes the ball's y-direction
-Green changes the ball's x-direction

Catching a laser with your paddle will increase your ammo by 1

If player 1 wants to use a keyboard and player 2 wants to use a controller, then you must launch PICO-8 with the following command

<PICO-8 path> -joystick 1
P#55868 2018-08-29 18:16 ( Edited 2018-08-29 22:20)