Live data from Hacker News

Snake in a QR Code

itsmattkc.com

71–80 of 83 posts

Re: Snake in a QR Code

#71

If you want to see a variation of this concept in the wild, in active use by lots of people, check out PICO-8 cartidges. PICO-8 is a virtual game console. I.e. it's an emulator for an oldschool game console that doesn't exist in reality. It's designed to be easy to code for while maintaining the limits and aesthetics of old game computers PICO-8 games are, of course, distributed on cartridges. However because it's a…

I don't know if I'm stupid, but those anyone have an example PICO-8 PNG? I can't find one in either of the two links you sent, nor on the internet. Am i missing something here?

Click "Cart" on the bottom left of the BBS entries.

E.g. on https://www.lexaloffle.com/bbs/?tid=29967

Takes you to https://www.lexaloffle.com/bbs/cposts/4/44467.p8.png

Re: Snake in a QR Code

#72
post #51

Earlier quoted context omitted.

The most interesting applications I've seen of QR-codes have been the most wildly impractical or useless. When I still used my Pebble watch, my favorite watch face was just a QR-code of the time. So to tell what time it is, you have to scan your watch with your phone.

I love that idea. I couldn't resist mocking one up in Python: https://pastebin.com/erFSAUvH

I love that it updates every second. It makes it that much harder to actually use.

Re: Snake in a QR Code

#73
post #67
post #59

Earlier quoted context omitted.

But the snake in a QR code probably works offline

A javascript: URL can work offline. Try this: javascript:document.write("hello world"); Note that if you cut and paste into Chrome it may delete the "javascript:" part and you will have to add that back.

Can a QR code convert to JavaScript like that? i.e. instead of opening a webpage it just executes some JavaScript.

Re: Snake in a QR Code

#74
post #45

Earlier quoted context omitted.

That's what I thought about as soon as I read this. Seems like a great malware installation vector. Just print out stickers and put them up at restaurants, stores...

For which 99.99999% of users will be using mobile clients to scan the QR code that have no capability of executing the code...

Yet. :D

Re: Snake in a QR Code

#75

If you want to see a variation of this concept in the wild, in active use by lots of people, check out PICO-8 cartidges. PICO-8 is a virtual game console. I.e. it's an emulator for an oldschool game console that doesn't exist in reality. It's designed to be easy to code for while maintaining the limits and aesthetics of old game computers PICO-8 games are, of course, distributed on cartridges. However because it's a…

Nintendo back in 2001 came out with the e-Reader that would plug into a Gameboy Advance and read cards with data printed on them. You'd have to scan a few "stripes" of data, but it there were several NES games that you could run if you had the right cards. The cards held the data for the games, rather than them being already on the cartridge https://en.wikipedia.org/wiki/Nintendo_e-Reader

Re: Snake in a QR Code

#77

If you want to see a variation of this concept in the wild, in active use by lots of people, check out PICO-8 cartidges. PICO-8 is a virtual game console. I.e. it's an emulator for an oldschool game console that doesn't exist in reality. It's designed to be easy to code for while maintaining the limits and aesthetics of old game computers PICO-8 games are, of course, distributed on cartridges. However because it's a…

that 'top-down adventure tutorial' is great. basically teaches you everything. thanks for sharing pico-8.

Re: Snake in a QR Code

#79

If you want to see a variation of this concept in the wild, in active use by lots of people, check out PICO-8 cartidges. PICO-8 is a virtual game console. I.e. it's an emulator for an oldschool game console that doesn't exist in reality. It's designed to be easy to code for while maintaining the limits and aesthetics of old game computers PICO-8 games are, of course, distributed on cartridges. However because it's a…

You should turn this comment into a blog post. Your writing is captivating. You made this ecosystem sound a lot cooler than the web pages you linked to.

Thanks! I'm humbled :-)

That said, I think the PICO-8 ecosystem is a lot cooler than I made it sound :-)

EDIT, try watching this demo for example: https://www.youtube.com/watch?v=UR3MXKIefAI It's a demo, not a game, so not interactive and hence youtubeable. Tell me that isn't cool (and remember, it fits in is cartridge png).

Re: Snake in a QR Code

#80

Don't worry. There is no malicious code contained within this QR code!

That's what I thought about as soon as I read this. Seems like a great malware installation vector. Just print out stickers and put them up at restaurants, stores...

I've been working on a virtual machine where this wouldn't be a problem: https://esolangs.org/wiki/RarVM#Jumping_processes

(small process snapshot sizes and sandboxing capabilities)

Using the WebAssembly VM would be a good alternative for real applications.

Post reply on HN