Log In  

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

Hi,
I would like to do oop... but I need setmetatable and self.__index.
Please, can you add them?
Regards,
jihem

p={}
function p:new(o)
  o=o or {}
  setmetatable(o,self)
  self.__index=self
  self.x=o.x or 0
  return o
end
function p:add(n)
  self.x=self.x+n
end
q=p:new({x=10})
q:add(5)
print(q.x)
1 comment


Cart #18384 | 2016-01-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
30

This is my second cartridge (even if the first one is not finisehd yet)
i wanted to try play with lights and random levels

You play a girl who try to go deeper into some strange cave.

Avoid the inhabitants or they'll hit you, try to find the exit portal of each level

Arrows to move
C for a useless particles spell
X for a level reset

30
9 comments


Whenever I type export ("this.wav") or export "this.wav" or export "this.wav%d" - it simply saves NOTHING. I'm on a Mac with 0.104D.

2 comments



Here's a small exemple for pico-8 Fanzine Special Roguelike

29
3 comments


Cart #18371 | 2016-01-20 | Code ▽ | Embed ▽ | No License
2


Extremely WIP. Run around with arrow keys, swing a sword with Z. Climb up and down stairs or ladders with X.

Fixed the wraparound bug-- kind of. At least in a way it shouldn't occur any more.

Cart #18359 | 2016-01-19 | Code ▽ | Embed ▽ | No License
2

2
1 comment


Cart #18354 | 2016-01-18 | Code ▽ | Embed ▽ | No License


Testing to see how this works.

1 comment


Cart #18381 | 2016-01-21 | Code ▽ | Embed ▽ | No License
23

Current state: Final (1.0)

For Little Awful Jam 2016 (Theme: "Chill")
http://www.awfuljams.com/little-awful-2016

Code: https://github.com/buffis/LittleAwfulJam2016

Music by Pizza (http://pizzamakesgames.itch.io/)

23
10 comments


Cart #18340 | 2016-01-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

Work in progess. Need to work A.I. and some more stuff, but it is nearly done!

2
0 comments


flr x

Returns the closest integer below x
flr(-0.3) returns -1.0
Same as (x%1) for positive values of x

print(flr(1.3)) --> 1
print(1.3%1) --> 0.3

Same as (x - x%1) for positive values of x

This should be corrected in the manual.

2 comments


Cart #18330 | 2016-01-16 | Embed ▽ | License: CC4-BY-NC-SA
2

2
2 comments


Hi.
Is there a way to get a the numeric value of a character?
Something like the lua function string.byte():

string.byte("a") --returns 95

Thanks.

1
4 comments


Cart #18327 | 2016-01-16 | Code ▽ | Embed ▽ | No License
8

Oh no you've been thrown in the dungeon and have to escape!

Controls:
Direction Keys to move
Z to open a door you're facing, if you have a key.

Changelog:

v0.3 updated to latest version of Pico-8, added title screen, expanded map, sfx for doors and keys - 899/8192
v0.2 minor bugfixes, expanded map - 912/8192
v0.1 initial upload - 875/8192

Known Issues:

  • The sound when trying to open a door without an appropriate key loops as long as you hold down the Z key
    (I may not even have to worry about this when I change door opening to be contact based)

[ Continue Reading.. ]

8
10 comments


Cart #18299 | 2016-01-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
27

Select a cup with <left> and <right> keys
Reveal its content with <up> key

Increase your score will add random penalties.
My best score is 40

27
4 comments


Cart #18283 | 2016-01-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
12

Just a little Flood It implementation. Uses 8 colors, 14x14 grid, and 33 turns

12
6 comments


i see the function mget() that will return the sprite index of the map coordinates, but i need to get the sprite index of a sprite that is drawn to the screen using spr(). how can this be achieved in the simplest way?

Thank you in advance!

2 comments


Cart #18277 | 2016-01-13 | Embed ▽ | No License

Similair to Forest and I hope you will see updates; please report bugs

0 comments


Hey guys ^-^ I am DatOneBuilder on my friends news account and he can use Quicksilver fully (and he created it) and I will confirm on my DatOneBuilder account ^-^

1 comment


Are there solutions for the puzzles that the players have posted here? If yes, where are they and how can I have access?
I don't see the option of pasting a solution in these puzzles, you know, like in the original ones, where you can paste and replay the solution for any of the 40 puzzles of each level.

0 comments


Cart #18258 | 2016-01-13 | Code ▽ | Embed ▽ | No License
18

CRASH THE CAR!! BY ALL MEANS! CRASH IT!!!

Directional arrows to control the car. That's it.

There is a total of 20 levels and they should be rather quick to finish.

This game was supposed to be made in 4 hours as a personal challenge but I liked it so I took my time and finished it in approximately 5 hours and 30 minutes.
This is also the first time I do not-procedural level design so please do tell me what you think about that and all the rest!

The collisions are broken. I am aware of it.

Have fun!

18
9 comments


Having recently caught the Windows bug (I'm actually a Mac OS X and GNU/Linux user) again,
I decided to try and run a Pico-8 demo inside an XAML Webview container this morning.

While the setup itself was straight forward enough (I simply exported cast.p8 to html5 and made the generated cast.html the source for the WebView of an empty Windows 8.1 C# app template), the resulting performance turned out to be abysmal.

I get approximately 1/6 the framerate of the same file running inside Internet Explorer 11 (which rather surprised me, as I previously thought the WebView inside WinRT was merely a wrapper on top of the sandboxed Internet Explorer that is part of Windows Modern -- AKA Metro).
The same is also true for any carts I tested while surfing the Pico-8 section of this website, inside the WebView.

Strangely, most other HTML5 content works fairly well. Including WebGL content and, strangely (as I assumed this might've been the problem), other ASM.js/Emscripten applications.

Is there anything that can be done about this? Has anyone here tried porting their game to Windows 8.1/Windows 8.1 Phone before? The only "solution" I can come up with myself would be targeting Windows 10. But that would severely limit the potential player base.

PS: I've also tried running the demo inside a WinJS app. Same result and the debugger didn't reveal any errors short of WebAudio API related ones (WinRT prior to Windows 10 apparently doesn't support WebAudio).

0 comments




Top    Load More Posts ->