Log In  

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

Hello erreybuddy. I don't have a specific project I'm working on or anything, but it's been bothering me that I don't understand how this works. I do have a pixel that oscillates properly, but I do not understand my own code, so I don't know how to approach having the pixel start at a different point in the oscillation cycle, without the amplitude changing. Here's my current code.

f=0
function _update()
 f+=5
	y = sin((f)/100) * 8 +64
end

function _draw()
	cls()
	pset(64,y,7)
end

If any smarty-pantses could explain why this code works to me like I'm a child, or how to have the pixel start at another point along the wave without changing amplitude (the x and y values of the top and bottom of its current pattern of movement), that'd be great.

I do feel bad asking for something without contributing to the community. Hopefully someday I can give back a little. Thank you all.

2 comments


Hi! I'm running PICO-8 0.1.11d on Mac OS 10.11.6.

Writing comments on the very first line of tabs in the code editor, I don't see those comments when I hover over the tabs.

I tried starting moving config.txt and running PICO-8 as well, in case that was it.

1 comment


Is there any memory address on PICO-8 that allows us to load a new, custom charset, without using sprite or map data?

1
8 comments


I'm putting together an arcade cabinet play Pico-8 games powered by a Raspberry Pi. My setup uses a Zero Delay USB encoder that I have hooked up to several buttons and a 4 switch joystick. I used to have everything working as of last week, but after an SD Card failure, I needed to re-install Raspian Jessie and set everything up again. So no problem, I downloaded everything re-set it up. No matter what I do, I've been running into this issue where Up and Down on Joystick not work in Pico-8 on Raspberry Pi. I feel like I've tried everything. I've tried Raspian Jessie, Raspian Jessie Lite, Retro Pie, different versions of Pico-8, updating the firmware of the RPI, updating the OS, updating Retro Pie, modified some .ko files, tried to hex edit the driver, put my SDL definitions in sdl_controllers.txt and nothing seems to work. It kills me because it was all working fine. Does anyone out there have any ideas? Below is my log and as you can see it is a DragonRise Generic USB Joystick, it even seems to get picked up in the log. The joystick works fine in RetroPie as far as playing games and navigating the menus, just that up and down don't work in Pico-8. I appreciate any ideas.

[ Continue Reading.. ]

0 comments


Cart #47246 | 2017-12-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


I updated it again to improve performance and cut on trap updates.



So I made this little game with a bunch of funny stuff. I used the collision code from Collide by Zep because I'm a bit lazy. :P

There seems to be some performance issues online, but on my computer there isn't any problem. I'm not sure why.

Also, one the monsters doesn't load in the game, weird.

Anyhow, have fun with it, you can make a whole new map with the tileset and it's supposed to work without changing the code except for a few things :

-To spawn the monsters, you need to place the first sprite, otherwise the code doesn't recognize it.
-Also, monsters will copy the tile to their left under them.
-The world is 128x36, but you can go beyond, and rooms are set to 16x12. You need to go change the map and camera inputs in the draw function if you want a different room size.
-Victory condition is reaching the bottom of the map, but you can change it in the update function.

You can also change the sprites if you want, but try not to move them, because they have specific uses in the code, like sprite 26 is a spike trap, sprite 56 is a chest that gives bombs, etc.

Anyways have fun making your own little game :).

edit 1 : P.S. : score doesn't work either on traps and doors, weird :c.

edit 2 : This is a repost, because I'm bad at this and posted an older version of the cartridge. It should play fine now. :')

3 comments


Cart #46292 | 2017-11-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
13

Just a small tech demo showing a omni-directional split screen.

13
6 comments


I thought of an idea for a jam


The idea is that no sprites are maps can be used
Tweet finished cart to @SmallTestAcount

Rules
Restrictions
•Text only
•Image hack is not allowed
•No built-in drawing type functions allowed (ex: rectfill, circfill, line, etc...)
•No rule loopholes
•No sprites
•No maps
Suggestions/Allowed
•Cls() is allowed
•SFX and music are allowed
•All file sizes allowed
•Glyphs are suggested
•All colors are allowed
•Dev kit mouse is allowed if you wish to use it

•Remember to use #TOjam
•Must be finished by Dec 31st at midnight

Have fun

--Nov 14--

4
10 comments


I used to see line numbers pretty often with my Pico8 games, but recently I almost always get "Line 0 (Tab 0)" errors.
I'm running Version 11.

Is there a common reason for this? A way to get around it?

1
2 comments


I was thinking about this for a while, but how cool would be having a NEW command, that simply creates a new cart?! For now, I've created an empty cart in my root dir, called it new, and using LOAD NEW, SAVE NAME.

What do you think?

3 comments


Cart #46270 | 2017-11-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

This is a mostly-finished implementation of Game of Life. I might clean up the arrays to make it more easily scalable, or I might just leave it as-is. Enjoy!

2
0 comments



Spritesheet Generator Demo is a cartridge that demonstrates how to save on-screen graphics into a cartridge's permanent sprite memory. Useful for programatically generating sprites. It is not a useful/playable cart; it is intended for use as example code.

Includes a standalone setsprites() function to use in your own projects (which must be followed by cstore() to save permanently to the cartridge). Also includes a replacement circfill() function (not stand-alone) in order to render the intended example graphics.

(Also, my first upload to the BBS.)

3
3 comments


I just got pico-8, am running it in Windows 7, but I can't seem to find an option to either run it in a window, or to choose my second monitor to use it in (or preferably, both options!).

Is there a config file or something that I should be messing with?

Same for Voxatron. Only runs on the main display.

Any help appreciated!

2
20 comments


Cart #46244 | 2017-11-13 | Code ▽ | Embed ▽ | No License
21

Bumble Bots is a difficult puzzle action game. It features sixteen levels, ranging from pure action to challenging puzzles and anything in between.

The game is self-explanatory. You will encounter new elements and learn new tricks as you go along.

Be warned, this is a tough game. I expect only few players to reach the end. Are you one of them?

Challenges:

  • Complete all 16 levels
  • Beat the hi-score
  • Beat the virtual hi-score
  • Complete all 16 levels in one go

Did you reach the end? If so, feel free to share a screenshot of the end screen to proof it.

21
19 comments


****EDIT: I AM JUST PLAIN STUPID. I AM AT THE WRONG COMPUTER. MY FILES ARE ALL SAFE,ON MY OTHER COMPUTER .. #FAIL #IAMJUSTSTUPID

Hi, today I finished a new version of my Pico-8 game and uploaded it to the site.

I wanted to start the game one last time and I used Spotlight Search on MaxOS to start Pico-8.

All my p8 files where gone :( (I have backup of everything so I am fine)

I have two PICO-8 apps on this computer. Is it possible that it started the wrong PICO-8 app and that the app overwrote the pico-8 folder in Application Support ?

Is it something that can happen when you open an older version of Pico-8 ?

It was the last time I will ever start Pico-8 using Spotlight !

1
7 comments


In the following code, the sprite #17 is supposed to be visible during the first "wait(25)" after the collision. It worked in version 1.10C.

Since 1.11D the code sprite ball.spr=17 does not change the sprite after the collision. The sprite juste stay the same.

if ball then
if solid_a(ball, ball.dx, 0) then
if shield then
ball.frame=0
ball.spr=17
cls()
rectfill(0,0,128,128,0)
foreach(actor,draw_actor)
sfx(3)
wait(25)
del(actor,ball)
ball=nil
wait(25)

6 comments


Cart #46225 | 2017-11-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1


A valid description will come later, but in short, I'm computing the minimum spanning tree (in blue) and a solution of the traveling salesman problem (in red).

You can hide the blue tree with btn_4 (<c> on a keyboard).
You can hide the red path with btn_5 (<v> on a keyboard).

1
0 comments


from config.txt:

// Desktop for saving screenshots etc. Defaults to $HOME/Desktop
desktop_path

which works, screenshots are saved to the desktop.
but I tried
desktop path $HOME/Pictures =>** failed to save screenshot
desktop_path $HOME/Desktop =>** failed to save screenshot
well, $HOME is for linux anyway so I tried variations of
desktop_path %HOMEDRIVE%%HOMEPATH%\Pictures =>**failed to save screenshot
what's the correct path?

besides, when it works, pico-8 says "saved screenshot TO DESKTOP"!

4 comments


I've been working on a PICO-8 zine over the past few months as part of a gamedev workshop series I'm doing with PIGSquad. (You may remember my call for art to include in the zine.)

I'm happy to announce that it's now released! We did a run of printed copies for attendees of the workshop, but I've released the PDF version on itch.io for anyone who wants to use it. You can get it from here:

https://mboffin.itch.io/gamedev-with-pico-8-issue1

I'll be doing a second printing via Kickstarter soon. Not as a money-making thing, but rather just a chance for anyone who couldn't make it to the workshop to get a printed copy (or copies).

Anything in the zine with code has an accompanying cart included in the sample code download for the zine. Over the next couple of weeks, I'll be walking through the examples and tutorials from the zine on the livestream I do on PIGSquad's Twitch channel every Tuesday at 6pm PST. These livestreams are saved in PIGSquad's video on demand archive, so people can watch later if they'd like.

[ Continue Reading.. ]

16
6 comments


Cart #46209 | 2017-11-13 | Code ▽ | Embed ▽ | No License
16

Simple 3D renderer that supports triangles, lines and points.
Biplane model made using Blender.

Getting it to stay at 60 fps was pretty challenging! Ended up using electricgryphon's "fast" triangle fill method ;)

16
6 comments


Cart #46202 | 2017-11-12 | Code ▽ | Embed ▽ | No License
5

Saw a Game Grumps episode where they talked about the C64 version of the song, and I loved it. Thought I'd make my own, with some adjustments.

Hope you enjoy!

5
3 comments




Top    Load More Posts ->