Log In  

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

I've been looking for a coding project to fiddle with on the go. Discovered that as a Voxotron owner I also own Pico-8, which was a generous bonus (ありがとうございます!)I use a Surface Pro 2017, and the lightweight nature of Pico-8 is perfect for this tablet size with the on-screen keyboard. However there are a few points that need addressing:

  1. On-screen keyboard arrows don't work. (hoping someone can confirm? Makes the editor a drag to use)
  2. Headphones are ignored. All other apps play sound through headphones but Pico-8 forces everything through the Surface Pro speaker. See below.
  3. Touch to interact with the editor window requires a double-tap where a single mouse click works. Basically the touch input just doesn't feel natural, as when changing toolsets or positioning the text editing cursor.

Hoping that there are API abstractions on Windows platform that can be adopted for "get touch support for free!" (he said, understanding that nothing is ever so simple)

東京に住んでいるので、そろそろピコピコカフェに行くつもりです!
素晴らしいアプリを作って大変ありがたいです。

2 comments


Hey,
I finally managed to tie all the loose ends together in my Outrun-esque racer. There's only one route, but the controls have some nuance which should make for healthy competition.

I know very little about 3D and projection and stuff, so most of the tech is from this excellent article:
https://codeincomplete.com/posts/javascript-racer/

Have fun! And what's your best time?

Cart #55231 | 2018-08-16 | Code ▽ | Embed ▽ | No License
112

112
26 comments


I noticed that if there is a file named "splash.png" in PICO-8’s directory, it will be displayed at launch before the boot sequence. This also works with cartridges exported as binary.

1
20 comments


by
Cart #55227 | 2018-08-16 | Code ▽ | Embed ▽ | No License


Hi all,
I finally found the time to tie together all the loose ends in my Outrun-esqe racer. It is just a single level, but there's some nuances in the controls which should make for health competition!

What's your best time?

0 comments


Cart #55225 | 2018-08-16 | Code ▽ | Embed ▽ | No License
1

Just testing out some sprite art that I made. Don't look directly at the code without personal protective equipment.

1
0 comments


EDITED 2/14/2020

I came up with several functions that I think would go good in pico8 and would reduce file size for larger games

--math

function ldx(d,l)  --stands for lengthdirx
    return cos(d)* l or 1
end
function ldy(d,l) --stands for lengthdiry 
    return sin(d)* l or 1
end
function ptl(x1,y1,x2,y2) --stands for point length
    return sqrt(((y2-y1)^2)+((x2-x1)^2))
end
function ptd(x1,y1,x2,y2) --stands for point direction
    return atan2(y2-y1,x2-x1)
end
function wrp(v,l,h) -- stands for wrap
    local o=v
    while(o < l) o += (h-l)
    while(o > h) o -= (h-l)
    return o
end
function rng(v, l1, h1, l2, h2) -- stands for range
    return l2 + (v - l1) * (h2 - l2) / (h1 - l1)
end

--vectors

function vec(vx,vy) --stands vector
	local m=

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


Cart #55423 | 2018-08-20 | Code ▽ | Embed ▽ | No License
2

I'm going to call this the beta version, I'll show it at the boston indies showcase tonight and hopefully catch whatever bugs might be left.

Cart #55418 | 2018-08-20 | Code ▽ | Embed ▽ | No License
2

Most certainly the last iteration before release.

Cart #55364 | 2018-08-18 | Code ▽ | Embed ▽ | No License
2

[ Continue Reading.. ]

2
9 comments


how to create smoth gridmovement for player?so he smoothly moved to the side of the grid cell?

6 comments


Cart #55986 | 2018-09-01 | Code ▽ | Embed ▽ | No License
34

Cart #55673 | 2018-08-25 | Code ▽ | Embed ▽ | No License
34

Cart #55556 | 2018-08-23 | Code ▽ | Embed ▽ | No License
34

Cart #55197 | 2018-08-15 | Code ▽ | Embed ▽ | No License
34

[ Continue Reading.. ]

34
23 comments


can someone tell me why my objs.add() function isn't working?

its supposed to let the user pass in a table or object struct and create and store a instance of it.
however it seems to overwrite the instances with the most recent call so they always get created with the last call's paramaters.

--class tab
local objs={}
local obj =
{
	 --team
	 team=0,

		--state
  state=1,
  level=0,
  timer=0,

  --stats
 	shield=100,
		energy=100,
		weapon={},

	 --tile
	 t =0, --tile
	 to=0, --tile offset
	 ts=0, --tile skip
		tw=1, --tile width
	 th=1, --tile height

		--movement
		x=0,
		y=0,
		r=0,
		v=0,
		vx=0,
		vy=0,
		vr=0,
		vv=0,
		fx=1,
		fy=1,
		fr=1,
		fv=1,
		maxvel=3,

	 --shoot
		firetimer=0,
		firedelay=4,
}

--obj manager
function objs.add(o,...)
	o=setmetatable(o or {}, {__index = obj})
	o.base = obj
	if o.init != nil then o:init(...) end
	add(objs, o)
 return o
end

function objs.tick()
	for i=1, #objs do 
	 o=objs[i]
	 o.base:tick()
		if o.tick != nil then o:tick() end
	end
end

function objs.draw()
	for i=1, #objs do
	 o=objs[i] 
	 o.base:draw()
		if o.draw != nil then o:draw() end
	end
end

--base obj
function obj.tick(o)

	--fric
	--o.vx*=min(o.fx,1)
	--o.vy*=min(o.fy,1)
	--o.vr*=min(o.fr,1)
	--o.vv*=min(0,fv,1)

	--vx and vy
 o.vx=cos(o.r/360)*o.v
 o.vy=sin(o.r/360)*o.v
	o.vx=mid(o.vx,-o.maxvel,o.maxvel)
	o.vy=mid(o.vy,-o.maxvel,o.maxvel)

	--vel
	o.x+=o.vx
	o.y+=o.vy
	o.r+=o.vr
	o.v+=o.vv

	--wrap
	o.x=wrap(o.x, 0, 127)
	o.y=wrap(o.y, 0, 127)
end

function obj.draw(o)
 local t=o.t+(o.to*(o.ts+1))
	sprr(t,o.x,o.y,o.tw,o.th,o.r)
	--rint(o.x..", "..o.y,63,63,7)
end
1 comment


Inspired by watching tutorials from Bridgs, MBoffin and Gruber. Scenery collision is a bit hit and miss (lol), but I'm scratching an itch with it right now. This one is 2-player only, sorry - but my goal is a bigger map and a decent single-player mode. Oh, and the next production will have a little more polish to it (including a proper 'death' animation ha ha).... and I'll learn about writing 'optimal' Lua code

Objective
Player 1 and Player 2 get to drive around one of 4 maps, blasting each other. Shots can ricochet off the mountains but will travel over water. The harder difficulty adjusts the rate of reload and your speed in relation to shots.

Cheers
Robsoft

Cart #55149 | 2018-08-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

6 comments


Hi there, this is my first post.

I wonder how can i execute a command when a music or sfx is done (i mean when it has been played).
Do you have any suggestion ? thanks in advance

2
2 comments


Just came across this recently. Fortunately I had backed my program up under a different name.

Bring up PICO-8.
Save filename, "my-8bit"

The entire system hangs and you must manually remove PICO-8 from the tasklist.

Any ideas as to what is causing this ?

1
9 comments


Cart #55130 | 2018-08-14 | Code ▽ | Embed ▽ | No License
1


Press X to start
Down Arrow Key To see Characters Positions
Z and X for Left and Right doors

1
2 comments


Hi,

Change between 0.1.11b and 0.1.11g makes our game Micro Murder freeze (on the newer version obviously).

Not sure how to debug it (would be nice to be able to see which line was being executed when escape is pressed) but it is very easy to reproduce: get the game from Splore, set both players as CPU and start game. It will freeze as soon as the AI starts thinking.

I am not sure which version introduces the change, those are the only two versions I have lying around.

4 comments


Cart #55121 | 2018-08-14 | Code ▽ | Embed ▽ | No License
2

You're a clod.

No, literally, you're a lump of earth.

A ball of mud. Sentient mud.

How? Probably through magic... Like a golem?

Anyway, that's not important.

What is important is that you're on a quest-

a transformative journey- to become shinier.

You must collect every fragment of the

P H I L O S O P H E R ' S S T O N E

to make your muddy dreams come true.

Will you be able to navigate the rooms

while managing your ever fluctuating size

and avoid danger?

Clod's Quest is a submission for the Ludum Dare Game Jam 42, you can rate it here: https://ldjam.com/events/ludum-dare/42/clods-quest

2
4 comments



My love Niarkou and I made this for Ludum Dare in 72 hours!

Objectives: Feed your cats by filling their bowls. The more they eat, the more points you get! But too many cats and you will run out of space.

Controls:

  • Pause: P or Enter
  • Navigation / Player controls: ◀ ▲▼ ▶
  • Menu validation / Take something / Pour something into the bowl: W / Z
  • Throw away something: X

LDJam link: https://ldjam.com/events/ludum-dare/42/cat-lady-simulator

7
3 comments


Cart #55341 | 2018-08-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

Hey all!

I just recently discovered Pico-8 and am eagerly working on my first game - Picoplex!
If you recognize the game, that's because this is a clone of one of my favourite games of my childhood - Supaplex.

The goal of the game is to collect all of the "Infotrons" in a level in order to proceed to the portal and into the next level.

There are only three levels so far. Hence - WIP!

Controls:
U/D/L/R - MOVE
X - SLURP
O - DEBUG VIEW
X+O - RESTART LEVEL

Slurp mechanic is also from Supaplex - it lets you slurp either Scum or Infotrons beside you without moving. That's pretty important for lots of puzzles.

Just wanted to share what I have so far :)

Thanks for being such an awesome and fun community to be a part of!

Cheers,
Prog

--Version History--
0.1 - First Commit
0.2 - Fixing a duplication bug (thanks to dw817 for reporting this!)
0.3 - Added a menu and end screen, more sound effects, and an extremely annoying/repetitive background track
0.35 - Worked on the music a bit to make it a bit longer and therefore less repetitive. Not quite there yet!

5
9 comments


Cart #55128 | 2018-08-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
111

Help Valdi escape the icy maze, despite a shadow's efforts to thwart your progress.

Controls:

Arrow keys to move Valdi
"Z" to reset a level (levels reset automatically if you are stuck)

Tile types:

White tiles - disappear after one step
Gold tiles - never disappear
Red tiles - step on one of these and all red tiles will disappear
Green tile - level escape portal

111
20 comments


Cart #55079 | 2018-08-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
7

7
2 comments




Top    Load More Posts ->