Log In  

BBS > Superblog
Posts: All | Following    GIFs: All | Postcarts    Off-site: Accounts

Cart #flocking-0 | 2024-04-06 | Embed ▽ | License: CC4-BY-NC-SA

This is a work in progress simulation or particle system, based on The Coding Train video Coding Challenge #124 https://www.youtube.com/watch?v=mhjuuHl6qHM

Controls:

  • If left mouse button is clicked, the particles will avoid the mouse.

I'm open to any change to boost the performance of the simulation (Quadrtree?). I plan to use it in a fishtank wallpaper or so, if anyone finds another use, feel free to play with the code!

0 comments


Cart #gigeburoyu-1 | 2024-04-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
1 comment


Cart #wzrargo-0 | 2024-04-06 | Embed ▽ | License: CC4-BY-NC-SA
1

Picotron started crashing when I run my new project, usually a few seconds after I start running it.

I can't figure out how to upload my cart, it keeps saying it's not valid

EDIT: Uploaded the cart
It seems like the .png file doesn't have the same issue when embedded here

Here's the crash report:

Translated Report (Full Report Below)

Process: picotron [37034]
Path: /Applications/Picotron.app/Contents/MacOS/picotron
Identifier: com.lexaloffle.picotron
Version: 0.1.0e (0.1.0e)
Code Type: ARM-64 (Native)

[ Continue Reading.. ]

1
6 comments


I've been trying to wrap my head around saving and loading in Picotron.

As always feel free to correct or improve, I'm always happy to learn.

2 main concepts to understand

As far as I know there is no automatic allocation of space for persistent userdata like in Pico8. You save your userdata as you would in other conventional game engines as an extra file. This makes it a whole lot easier.

This data is best stored as a table, so try player_vars={"Tammo",{"Sword",1},}. That data structure is internally stored as a .pod, which can be saved or read via store and fetch respectively. (Otherwise you'll have to arrange your data and pod it before saving just to unpod it after loading it.

Now you'll just need a place to store your data. It is good practice to create your own folder inside /appdata with mkdir. For example mkdir(save_dir)

These files can be opened and read, but this is fitting for our open community. Let's imagine the easiest possible usecase. We want to keep track of the highscore. We need to check for any existing high scores on _init and load them if they exist. If not we'll just start with the default value.

[ Continue Reading.. ]

10
0 comments


The Jelpi demo included with PICO-8, but with a cheat menu that can do some pretty funny stuff.

Cart #kogasobiro-0 | 2024-04-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

Cheats

Page 1:

  • RESTART LEVEL: Restarts the current level. Unmodified from the original version.
  • THANOS SNAP: Activates the glitch mushroom effect, but way more intense. Destroys the game pretty much instantly.
  • MAKE BREAKABLE: Makes all of the tiles in the current level breakable.
  • SKIP LEVEL: Skips the current level.

Page 2:

  • INVINCIBILITY: Activates the invincibility power-up effect for the duration of the current level.
  • INFINITE CHARGE: Disables the cooldown on Jelpi's charge attack, allowing him to go very, VERY fast.
  • TOO MANY GEMS: Turns the breakable blocks and some background objects into gems.

[ Continue Reading.. ]

3
0 comments


Cart #foxrun-1 | 2024-04-21 | Embed ▽ | License: CC4-BY-NC-SA
4


Cart #foxrun-0 | 2024-04-06 | Embed ▽ | License: CC4-BY-NC-SA
4

Guide the fox through the forest avoiding obstacles and collecting butterflies. Controls are up,"w" and down,"s" on keyboard or controller.

Updated in version 2

  • Fixed keyboard issues with 0.1.0f
  • Improved game over
  • Added support for "w" and "s" keys for movement
  • Improved any key detect
4
1 comment


his name is zoot
but you already knew that
he's everyone's favorite!

2
0 comments


Cart #petri_v1-1 | 2024-04-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

Petri

Petri is a chill cellular life simulator. Witness the rise and fall of countless living cells all trying their best to survive and reproduce.

Behavior and ultimate fitness are governed by stats, mutations, and a move-set, all of which are encoded into rudimentry DNA that is passed down to offspring.

Cells that consume enough food become healthy enough to reproduce. Reproduction weakens a cell, but allows it to pass its DNA (with potential mutations) on to the next generation.

Controls

❎ (X): Cycle through display modes
Enter/Pause: Display pause menu and adjust various game parameters

Additional Info

Stats

Each cell has three stats: strength, agility, and speed.

  • Speed determines how likely a cell is to move
  • Strength determines how likely a cell is to consume energy each time it moves
  • Agility determines how likely a cell is to change direction each time it moves

Move Sets

Each cell has a move-set consisting of a list of numbers, 1-4, representing a cardinal direction.

Display Modes

The default display mode will output the number of living cells, the number of total births, the number of total dead cells, the amout of food currently in the environment, and the highest generation achieved.

The text-based display mode outputs the stats of the most recently birthed cells. Move-sets for each cell are indicated by a band of pixels, each color representing a different direction.

Sounds

There are only two sounds effects in the game, one to indicate a birth, and one to indicate a death.

5
2 comments


based on the tutorial from here https://docs.coronalabs.com/tutorial/data/shuffleTable/index.html

local cardDeck = {"AS","AH","2S","3S","KH","QD","QS","KD","4D","10H"}

math.random(flr(rnd()))

local function shuffleTable(t)
	if (type(t) ~= "table") then
		print("warning")
		return false
	end
	local j
	for i = #t, 2, -1 do
		j = math.random(i)
		t[i], t[j] = t[j], t[i]
	end
	return t
end
cardDeck = shuffleTable(cardDeck)

local currentIndex = 1
local function drawCards(num,deck)
	local cardsDrawn = {}
	for i = currentIndex, num do
		cardsDrawn[#cardsDrawn+1] = deck

[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=145857#p)
0 comments


Cart #ccdownside-1 | 2024-04-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

Celeste Downside

This is a mod inspired by Linj's map from newleste strawberry jam, "Summit downside".

You can press down to stop moving on the ground.

we take no responsibility for any harm caused to the player (you) and/or their desk as they play this mod. no financial compensation will be given for any property destroyed as a result of playing this mod. Thank you for understanding.

Updated to fix final level, making it less terrible

5
3 comments


Cart #external_log-0 | 2024-04-05 | Embed ▽ | License: CC4-BY-NC-SA
1

ExternalLog
A basic Log window that can be used with any windowed cart
Running this will open a readme.txt with this same text in it
Look inside to find the actual ExternalLog.lua file
Also see 'Example.lua' to see how to use this

Simple Usage

  1. Place ExternalLog.lua into the same directory as your main.lua
  2. Inlcude the ExternalLog.lua file with: include("ExternalLog.lua")
  3. Call ExternalLogWindow() in _init()
  4. Call Log("Hello World") to add a log message

Other Features
PassPrintToLog():
Call this in _init to be able to use print() to send Log messages
(you can also pass 'false' as a parameter to disable regular printing)

[ Continue Reading.. ]

1
0 comments


Cart #ac-0 | 2024-04-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

This is one of the collection of simple games based on different genres, this one is action, hello, this is a translator, thanks for watching my game, it took me 4 days, I'm new and I hope to improve, thank you

5
0 comments


tbh I'm trying to program a digital oracle deck of cards for personal use, and I can't seem to find a way to code for "picking card(s)" without doubles. Maybe with some keyboard entry for indicating the program to choose x items from the randomized array.

1
2 comments


version: 0.1e
Os: Windows 10

How to reproduce:

  • run following code
a=vec(1,2,3)
b=vec(1,2,3)
print(0.5*(a+b))
  • picotron crashes to deskop with:

Exception thrown at 0x004A231E in picotron.exe: 0xC0000005: Access violation reading location 0x00000000.

Workaround #1:

a=vec(1,2,3)
b=vec(1,2,3)
print((a+b):mul(0.5))

Workaround #2:

a=vec(1,2,3)
b=vec(1,2,3)
print((a+b) * 0.5)
1
0 comments


Cart #bubblesgopop-0 | 2024-04-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
7

Bubbles go pop

Some small game I made in like a few hours. Just popping some bubbles.

Note: I haven't tested on mobile, but I consider a mouse to be necessary for the best experience.

Edit: It is actually slightly more Fun on mobile. As long as you don't drag.

7
0 comments


Bouncy Ball

Cart #bouncyball-3 | 2024-05-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
35


v3 2024-05-14:

  • skarrmann hidden palette added
  • increased chance of seeing secret unlockables

"The depressing thing about tennis is that no matter how good I get, I'll never be as good as a wall."
    - Mitch Hedberg

Game Guide

It takes a steady paddle...

The paddle imparts its speed on the ball, so keep it steady or use this to your advantage to control the ball.. if you can keep up with it!

Modifiers

Modifiers will refresh along the back wall every 5 bounces. Some will give you an advantage, others a disadvantage. Be careful what you land on!

[ Continue Reading.. ]

35
4 comments


@zep It would be hugely helpful if we had a -home [path] commandline parameter for Picotron. I'll describe how I currently have it set up for PICO-8, so you can see how it would be helpful for Picotron:

> Computer lab environment, with each computer having Google Drive installed. (Installing Google Drive locally is like Dropbox, but for Google Drive. Basically gives you a G-Drive on your computer that is direct local access to your Google Drive files and folders, so you can, say, save directly from Notepad into your Google Drive.)
>
> PICO-8 is installed on each computer, but the desktop shortcut to launch PICO-8 uses the -home commandline parameter to point the home folder to c:\pico8 instead of the user's profile folder. Inside c:\pico8 are folder symlinks for carts and images that point to corresponding folders in G:\My Drive\pico8. Then the c:\pico8\config.txt points desktop_path and root_path to ./images and ./carts, respectively.
>
> This means no matter which computer they use, c:\pico8\carts always points to their carts folder in their G-Drive. And because their carts are saved to the cloud, they're not locked to using a specific computer and they can even access carts from home.

[ Continue Reading.. ]

5
1 comment


Over a week or so in late March and early April, we've been working on instrument.txt - a detailed (~4.6k words) guide to Picotron's built-in instrument editor, designed for musicians who have Picotron but know nothing about synthesizer sound design. In this guide (currently version 2.0) (html version, web version), we:

  • Detail the Picotron instrument editor UI;
  • Explain how each element - output mixer, oscillators, envelopes, and effects - works; and
  • Guide you through putting this to practice by making a series of simple instruments, including organ sounds, 'piano' sounds, kick drums, snare(-adjacent) drums, and cymbals and hi hats.

If you've been wanting to play with Picotron's tracker but not known how to make it work, we hope this sets you up to make lots of sounds.

Changelog

2.0:

  • added info on the space bar halt-sound control and the random and looping envelope options.

[ Continue Reading.. ]

42
9 comments


Guide to Making a Picosite:

1
0 comments


Cart #teapot-0 | 2024-04-05 | Embed ▽ | License: CC4-BY-NC-SA
1


From the Piconet Explorer

1
1 comment




Top    Load More Posts ->