Live data from Hacker News

Snakisms

pippinbarr.github.io

51–60 of 148 posts

Re: Snakisms

#52

Great game, but why does it consume soooo much CPU?

JavaScript, probably. More serious answer: it's using HTML5 canvas, which is quite inefficient as rendering APIs go. For example, if you use n colours when rendering a frame, and your game runs at m frames per second, you are invoking the browser's CSS parser n×m times a second, because CSS colour strings are the only way to express colours, and it is an exclusively immediate-mode API. The engine in use might be laye…

If you're willing to forgo the built-in drawing primitives, you can get access to the underlying buffer and draw directly to that. That way you avoid the CSS parser.

Edit: in particular, getImageData and putImageData.

Re: Snakisms

#55

Existentialism performed exactly like I imagined. Endless banality of reality symbolized by continuing borders. I had to switch it off because I started to project myself to this small square pixel that elongates in the backdrop of pitch dark oblivion staring back into my empty soul.

You must be a true Existentialist then. I quickly committed suicide out of curiosity.

"Il n'y a qu'un problème philosophique vraiment sérieux: c'est le suicide" I guess.

Re: Snakisms

#58

This is delightful. I only wish that someone would put it into a nondescript arcade cabinet in a hallway somewhere, so that people could stumble across it unprepared. Edit: Naturally, it turns out that Mr. Barr has a PhD in this sort of thing, and that his thesis has to do with how we demonstrate our values during the course of playing video games. http://www.pippinbarr.com/academic/Pippin_Barr_PhD_Thesis.pd...

It's not so much focused on demonstrating your own values so much as it's about UI and the conduct that the UI is able to generate through cause and effect. Like in GTA, do you try to talk our your problems or do you shoot first and ask questions later? The UI will repeatedly encourage you to shoot first and players will learn that, because if you won't, your enemies will. This is the definition of value they're usin…

[deleted]

Re: Snakisms

#59
post #48

Earlier quoted context omitted.

Wow, that's a faithful reproduction. Did you use a translator or are you doing this totally by hand? The reason I ask is that even the effects like the Sun showing a reaction when hit by a banana is nicely reproduced. Edit: If you have the source online, link please. I would love to make it networked :-)

I did it by hand by reading the original QBasic source code. One reason I did it was to reacquaint myself with QBasic, the first programming language I learned. Another was the challenge of converting a program which relied on blocking behavior to HTML5, which shuns anything of the sort; the solution I used was generators to simulate my own "IO monad." The IBM EGA font came from an image someone kindly had of the com…

Could you apply what you learned to improve this qb js interpreter? http://stevehanov.ca/blog/index.php?id=92 Fairly useless but would be a nice nostalgia trip to be able to run some of the 90s qbasic code that's still lying around in unswept corners of the internet :)

Re: Snakisms

#60
So good, abstract concept art in such a cute video game package. I can't play it for that long, but getting through the list feels more meaningful than if I'd spent two weeks mastering an amazing high score.

I think romanticism had me laughing the hardest.

Post reply on HN