Log In  
Follow
wallgraffiti

14 year old person who... exists

Squiddy (PICO-1k Jam)
by zep
RGB plasma
by rez
PICO-RAY V1.0
by electricgryphon
SHOW MORE

Cart #lj_ge-0 | 2022-08-23 | Code ▽ | Embed ▽ | No License
9

Lava Joe is a fun game to play to kill time. Its simple gameplay loop allows you to play it while putting most of your focus on something else, and that's exactly why it's my go-to game to play on the side while doing stuff such as watching YouTube and things like that. However, over time, certain things in the game started to bug me, and while it was fully understandable that the game wasn't the most polished thing in the world as it was made for a game jam, I still had a little voice in me telling me to change it to my likings. And so, recently, I did just that.

The main issue that bothered me was the fact that all enemy types give the same amount of points(50). To me, this makes no sense as the later enemies prove to be quite a pain to deal with before the lava flood gets you. As such, I have modified the system so that starting with the snake, each new enemy would give an extra 25 points for its defeat. So, the little blue guy is still 50 points, the snake is 75, etc.

Next, I added something completely unnecessary, that being a slam. Pressing the down button on the DPad will now immediately turn your vertical velocity to the minimum it can be, sending you straight down. This can be useful when you've just jumped to get an item and the lava flood is very close to you. In such a scenario you can slam and quickly get to the ground, saving you some time to jump to the next platform.

Expanding on the slam, I also added a stomp. A stomp will occur when you slam into an enemy. A stomp will immediately kill any enemy, but will give you significantly less points. Jumping within 5 frames of a succesful stomp will double the jump height, allowing you to skip a platform. This mechanic is especially useful if the lava is about to catch up to you and you need a quick boost to survive.

I've also made the camera shift slightly with the player's horizontal position to make the camera feel a bit more dynamic.

This is the version I've been using for the last week or so, and personally, the scoring fix and the added mobility have made the game a lot more fun for me. You may prefer the original, and that's fine, but I hope you still enjoy this version of the game. Cheers!

P#116177 2022-08-23 18:50

SHOW MORE

I'm working on a version of VMap which fits into a Pico 8 Education Edition cartridge (for showing to my computer science class). This, of course, required a significant amount of minification to fit into the encoded 2040 character limit. I did, however, manage to do this with a combination of hand written changes and using Pahammond's GEM. However, when I try to save to @url, it provides me this error:

I may be misunderstanding the way URL saving works, but you can clearly says that it failed, even though the character count is below the limit. Apart from the code (found below), I have a single 24×16px sprite located at sprite 0. I would appreciate if someone could help me out here.

a=add r=rnd _a=true _b=true m=false
_c=128 _d='1.2.2' function _e(tb,v)
local _f={}
for vl in all(tb)do
_f[vl]=true end
return _f[v]end
d={[0]=0,0,1,1,2,1,13,6,2,4,9,3,13,5,8,14} _g={3,6,7,9,10}
_h={}
cs=split('𝘣𝘤𝘥𝘧𝘨𝘩𝘫𝘬𝘭𝘮𝘯𝘱𝘲𝘳𝘴𝘵𝘷𝘸𝘹𝘺𝘻','')
vs=split('𝘢𝘦𝘪𝘰𝘶','')
for v in all(vs)do
for ov in all(vs)do
a(_h,v..ov)end end
for c in all(cs)do
for v in all(vs)do
a(_h,c..v)a(_h,c..v..'𝘯')end end
function gn(l)
local _i='' local l=l or 3
for i=1,flr(r(l)+2)do
_i..=r(_h)end
return _i end
_m=gn(2)
cn={}
for i=1,flr(r(2)+2)do
a(cn,{gn(1),false})end
r(cn)[2]=true
_n={{7,6},{15,9},{11,3}}
_o={,,{2,4}}
ps={}
bm={}
for i=1,flr(_c/27)do
a(bm,{x=r(96)+16,y=r(96)+16,c=r(_n)})end
for i=1,flr(_c/54)do
a(bm,{x=r(96)+16,y=r(96)+16,c=r(_o)})end
for x=0,4do
a(bm,{x=x*31.75,y=0,c=})
a(bm,{y=x*31.75,x=0,c=})
a(bm,{x=x*31.75,y=127,c=})
a(bm,{y=x*31.75,x=127,c=})end
function _j(x1,y1,x2,y2)
local _p=sqrt(((x2-x1)^2)+(y2-y1)^2)
if(_p<0)return 0x7fff.ffff
if(_p>=0)return _p end
function _k(x,y)
local _q=0x7fff.ffff
local _l=nil
local _r=0
for i=1,#bm do
if _j(x,y,bm[i].x,bm[i].y)<_q then
_q=_j(x,y,bm[i].x,bm[i].y)
_l=bm[i]
_r=r(bm[i].c)end end
return _r end
for i=1,_c do
local px=r(128)
local py=r(128)
a(ps,{x=px,y=py,c=_k(px,py)})end
for c in all(cn)do
_s=nil
while not _s do
_t=flr(r(_c)+1)
p=ps[_t]
if(_t%2==0and r()<0.25and p.x<100and p.y<110and _k(p.x,p.y)!=12)_s=_t
end
p.n=c end
function _l(x,y)
local _q=0x7fff.ffff
local _l=nil
local _r=0
for i=1,#ps do
if _j(x,y,ps[i].x,ps[i].y)<_q then
_q=_j(x,y,ps[i].x,ps[i].y)
_l=ps[i]
if(not _a)_r=i&0xff
if(_a)_r=i%2==0 and _l.c+_l.c*16 or 0xcc
end end
return _r end
cls()
for p in all(ps)do
pset(p.x,p.y,p.n and 10or 6)end
for p in all(bm)do
pset(p.x,p.y,8)end
spr(0,51,62,5,3)
print('\#7v' .._d,52,80,0)
print('\#7travelling to:',73,1,0)
print('\#7' .._m,128-#_m*4,7,0)
for i=0,15do if not _e(_g,i) then pal(i,128+i,1)end end
for y=127,0,-1do
for x=127,0,-1do
fillp(0b0101101001011010)
local _v=_l(x,y)
rectfill(x,y,x,y,_v)
if(btnp(🅾️))m=true
end end
fillp()
for i=1,flr(_c/2.4)do
for x=0,127do for y=0,127do
if(r()<0.025and pget(x,y)!=0)circfill(x,y,1,pget(x,y))
end end end
function _u()
if _b then
for p in all(ps)do
if p.n then
pset(p.x,p.y,8)
print('\#d' ..p.n[1],p.x+2,p.y+2,p.n[2]and 10or 0)end end end end
function _w()
print('\#7' .._m,1,122,0)end
for x=0,127do for y=0,127do
sset(x,y,pget(x,y))end end
function dt()
for x=0,127do
pset(x,x%2,d[pget(x,x%2)])
if(x>1)then
pset(x%2,x,d[pget(x%2,x)])
if(x<126)pset(x,127-x%2,d[pget(x,127-x%2)])
pset(127-x%2,x,d[pget(127-(x%2),x)])end end end
dt()
if(not m)_u()_w()
if(m)menuitem(1,'s: show name')menuitem(2,'d: hide all')menuitem(3,'f: show nations')
::_::
if m then
if(btn(⬅️,1))_w()
if(btn(➡️,1))_u()
if(btn(⬇️,1))cls(12)spr(0,0,0,16,16)dt()
end
goto _

P#113920 2022-07-03 08:28

SHOW MORE

Cart #puzubineko-0 | 2022-01-22 | Code ▽ | Embed ▽ | No License
5

I decided to mess around with trig functions and came up with this. It's simple, but looks fairly convincing in my opinion.
The code is a mess, I should probably fix it sometime soon.

P#105511 2022-01-22 14:23

SHOW MORE

Cart #wg_ps_bugged-0 | 2021-09-24 | Code ▽ | Embed ▽ | No License

I am working on a productivity suite of sorts for PICO-8, and this is the very early version for the text editor.
The bug comes from scrolling with up and down. To reproduce, do the following:

  • Type some text on the top line, press enter
  • Type some text on the second line
  • Scroll as far down as possible
  • You should see the entire second line.

  • Delete all
  • Leave top line empty, press enter
  • Type some text on the second line
  • Scroll as far down as possible again

You should now see that the top two rows of pixels of the second line are not visible.
My code does not measure the length of the text, but the length of the table containing all lines, separated by new line characters. I have tried to debug, but that has not yielded any results.

P#97757 2021-09-24 18:06

SHOW MORE

Cart #noclipfinaleextended-0 | 2021-09-05 | Code ▽ | Embed ▽ | No License
4

Decided to extend Finale, and add a bit of a better animation. It evolves as the music goes on, so watch until the end. Enjoy!

P#96893 2021-09-05 13:35

SHOW MORE

So, as demonstrated by my recent post, I have finished my Pico-8 album, noclip. Now I want to export all the music from the cartridges. However, the exporter for music only exports one pattern. If you select multiple, it will simply export the one you just clicked on. Are there any tools made by the community which can export all the music from a cart and reconstruct it? Cheers in advance.

P#96870 2021-09-04 16:57

SHOW MORE

Cart #noclip_finale-0 | 2021-09-04 | Code ▽ | Embed ▽ | No License
4

This is the sixth and final song in my album of short Pico-8 songs, noclip. Enjoy!

P#96863 2021-09-04 12:01

SHOW MORE

Cart #wg_sm_wip-0 | 2021-08-18 | Code ▽ | Embed ▽ | No License
3

I've decided to have a go at developing a Portal/Portal 2 fangame since I'm a big fan of the series. This is the first public version of that, with most of the core engine code finished.

For those wondering, this takes place in the very, very early version of Aperture Science Innovators back when the facility was essentially a spiced up salt mine (hence the name).

Arrow keys to move, (X) to interact.

P#96196 2021-08-18 17:25 ( Edited 2021-08-18 17:26)

SHOW MORE

I've looked around and found out that literally no one has posted anything about attempts to implement BASIC on the PICO-8, which honestly kinda disappointed me. BASIC is, well, basic, so I would have thought someone would have at least tried to implement it... and now I want to do it.

Thoughts?

P#95718 2021-08-06 18:00 ( Edited 2021-08-06 19:55)

SHOW MORE

Cart #yowawefiwi-0 | 2021-07-25 | Code ▽ | Embed ▽ | No License

This brings up an error at line 21. I genuinely have absolutely no idea what it means.

P#95287 2021-07-25 19:30

SHOW MORE

Say a player has a way to design a custom painting in a game. This painting should persist between playthroughs, and be stored on the spritesheet.

I know that this should be done via cstore(), but I simply do not understand how.

function painting()
  -- code for modifying sheet through sset() here --
  cstore(A,A,L)
end

What I actually need is the values for A and L.
Cheers in advance.

P#95272 2021-07-25 16:51 ( Edited 2021-07-25 16:59)

SHOW MORE

Cart #wandered_wip-0 | 2021-07-24 | Code ▽ | Embed ▽ | No License
1

Decided to make a game about exploring a bunch of islands. Obviously needs a lot of work, but it's a start.
Hold S or (<) P2 to see the map.
Use P1 arrow keys to move.
Hold X or (X) P1 and press any of the P1 arrow keys to place/destroy a platform on water.
To do:

  • Add Scenery (e.g. trees, plants, etc.)
  • Add crafting + resource management
  • Make music
  • Make player look not trash
P#95245 2021-07-24 18:08

SHOW MORE

Cart #noclip5_card-0 | 2021-07-24 | Code ▽ | Embed ▽ | No License
4

P#95235 2021-07-24 11:40

SHOW MORE

Cart #rgb_wg-0 | 2021-07-03 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
6

Decided to make a little 64x64 RGB display. 64 colours in total, which means 64x64x64. Neat.
Anyways, yeah. I've messed around a bit, and found some interesting colours. This probably won't be used at all, but it was fun to make, and I'm proud of it.

P#94415 2021-07-03 17:56

SHOW MORE

Cart #pal_theworld-0 | 2021-06-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

Decided to arrange some of the colours from the 32 colour palette, and this was the result. It consists of four gradients. Every colour has been named by yours truly to give some inspiration to the uses, but you can really use it for anything. If you use this for anything, please comment here! I want to see what you create with the colours.

EDIT: Due to SPLORE attempting to preserve explorer colours to keep visibility, it has sacrificed some of the colours in the label preview on native PICO-8. Not a bug, but I'm saying this just so that people don't get confused.

P#93779 2021-06-20 13:16 ( Edited 2021-06-20 13:20)

SHOW MORE

Cart #webkit_proto-2 | 2021-11-01 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9

Long winded explanation:

Before I explain exactly what this is and why it exists, I need to explain the history behind it.

Some of you may have seen the (relatively small amount of) attempts to implement a BBS-type system by taking advantage of the General Use Memory region and it not being cleared by load(). It fascinated me when I first came across it, but I eventually forgot.
Recently, I came back to the concept with a new idea: static web pages. General use memory can contain 4864 32-bit numbers if not using the custom font, which is more than plenty for a page written in a simplified markup language. We can take that even further if we use the breadcrumb string passed to carts through load().

The first step for me was designing the simplified markup language. I decided on something I call PPML, Portable Pico Markup Language. The syntax is the following:

tagname> tag content

A paragraph, for example, would look like this:

p> This is a paragraph

I decided this was suitable and moved on to the next part.
This next part was the renderer for the PPML. This is what you see in the above cartridge, displaying a demo page. The renderer consisted of a list of tags with rendering functions, a Global Render table and a Frame Render table. The Global Render contained persistent stuff like the background colour, while the Frame Render contained things like the cursor position for text. This then took the PPML, contained in the first tab, and processed it into a table for easy use. The _draw() function then simply looped through this content table, calling the tag render functions with the necessary arguments.
It's a simple method, but works pretty well.

The next step would be the networking; loading the cartridge, processing the data it left in General Use Memory and converting it into usable PPML. Then that can be fed into the renderer, and you can see the page.

Of course, this renderer is a proof-of-concept prototype. A lot more tags still need to be added and hopefully a very simple scripting language.

When all this is done, I hope to have a fully functioning browser which would let you browse the PicoWeb and maybe play some small games on Newgrounds-esque sites. But, we can only hope.

Feel free to leave feedback on the renderer/game plan!


UPDATE 0.2:

  • A bit more content to show possible use cases
  • Implemented scrolling with mouse wheel with @Einstein2's tips
  • Now shows mouse
P#93104 2021-06-06 10:52 ( Edited 2021-11-01 09:31)

SHOW MORE

I decided to make a simple class implementation. Here's what I managed to come up with:

function class(c)
    name=c[1]
    _𝘦𝘯𝘷[name]=function(...)
        local initargs={...}
        local obj={___fnccore={}}
        for k,f in pairs(c)do
            if type(f)=='function'then
                obj.___fnccore[k]=f
                obj[k]=function(...)
                    obj.___fnccore[k](obj,...)
                end
            end
        end
        obj.__init__(unpack(initargs))
        return obj
    end
end

The (preferred) syntax to use this with looks like this:

class { 'classname'
    __init__=function(self,args)
        -- Stuff goes here --
    end,
    -- Other functions here with "self" or something like that as the first argument --
}

Here's an example:

class { 'printer',
    __init__=function(self,a,b)
        self.a=a
        self.b=b
    end,
    thing=function(self,c)
        print(self.a..self.b..c)
    end
}
test=printer('one ','two')
test.thing(' three')

The output for the above would be:

one two three

Here is the cartridge containing the above example:

Cart #graffiticlasses-0 | 2021-06-01 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Feedback would be nice!

P#92893 2021-06-01 16:32

SHOW MORE

Cart #smoothcam-0 | 2021-05-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

My test for a smooth camera system. I plan to integrate it into a FNaF style game. Feedback is appreciated!

P#92769 2021-05-29 11:01

SHOW MORE

Cart #wiphorrorshooter-3 | 2021-05-11 | Code ▽ | Embed ▽ | No License
1

I've decided to make a horror shooter. This one has easy to expand multiplayer. Just add as many new_player() statements as you need!

Update 1.1.0:

  • Added map loading from-sprite
  • Fixed a few bugs
P#91803 2021-05-11 18:14 ( Edited 2021-05-11 19:24)

SHOW MORE

So, as most of us know, .p8 cartridges consist of sections. lua,gfx,map, etc etc. Well, I found this other section named gff. I just wanted to know what it did, since it doesn't seem to directly correlate to anything you can edit. I'm just asking since I'm making a cart generator in Python so I need to know if gff is an important memory region.

P#91334 2021-04-30 18:09

View Older Posts
Follow Lexaloffle:          
Generated 2024-03-19 07:41:43 | 0.142s | Q:85