[HN Gopher] 85-Byte Snake Game
___________________________________________________________________
85-Byte Snake Game
Author : bundie
Score : 108 points
Date : 2023-08-04 13:08 UTC (9 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| Tillgg wrote:
| Neat! Its pretty fast and restarts when you press the opposite
| arrow from where you are going - nerve wracking..
| rjh29 wrote:
| I got to a size-5 snake and it stopped giving me apples. Cool
| though.
| Etrnl_President wrote:
| [flagged]
| hyperhopper wrote:
| Pressing the direction you are going makes it stutter
|
| Pressing opposite direction kills you
|
| Inputs aren't buffered so fast inputs are either dropped or kill
| you
|
| Sometimes the snake just randomly grows??
|
| Not a very good implementation
| macinjosh wrote:
| I noticed all these same things as well. It still is impressive
| but not what I would call a playable game.
| poutinepapi wrote:
| Always love these projects with restrictions, they remind me of
| .kkrieger(https://en.wikipedia.org/wiki/.kkrieger), an insanely
| tiny FPS.
|
| I had also never seen a source code example for running an HTML
| embedded DOSBOX, so that was pretty interesting too.
| ctenb wrote:
| Pretty cool, but also pretty unplayable (mainly due to the high
| speed of the snake) :D
| Minor49er wrote:
| Just reduce the CPU cycles in DOSBox
| nwoli wrote:
| Need to add 100x bytes of padding operations to slow it down
| dillydogg wrote:
| Skill issue. But I also agree. It's crazy fast.
| Frenchgeek wrote:
| 4.77MHz ought to be enough for anybody
| svachalek wrote:
| Just press the turbo button, to turn off turbo.
| pmontra wrote:
| Definitely not fast for me, actually it lags a lot and I have
| to press keys well in advance to steer the snake into the food.
| Or is it so fast that I'm seeing only one frame every few
| hundreds and it moves almost one full screen between each
| position I can see?
| abbassi wrote:
| [dead]
| sltkr wrote:
| I would enjoy these posts more if they actually documented how
| the game implementation works, rather than just dumping an
| assembly file for the reader to figure out.
|
| Also, I don't find "fits into a QR code" all that impressive. QR
| codes can contain kilobytes of data (see: COVID certificates),
| which is considered a lot in the demo scene (e.g. Google "256B
| demo" to see some really impressive examples). I bet you could
| implement a fully graphical Snake clone in less than 1024 bytes.
| sijourneyweezer wrote:
| Somehow got 2 on mobile after way more trying than I'd like to
| admit
| ohadpr wrote:
| In 1998 Assembly programmers who typically participated in Demo
| competitions did a series of size coding challenges. The first
| one was a Snake game (Nibbles), all in a DOS environment. The
| winning entry was 48 bytes long.
|
| https://hugi.scene.org/compo/compoold.htm#compo1
|
| There were also some creative attempts that took less than 48
| bytes and got disqualified. One of those encode the entire game
| in a series of empty folders using the folder names.
|
| Edit: the original Hugo size coding competitions were created by
| Claus-Dieter Volko (Alias: Adok).
|
| Edit: Typos
| 5- wrote:
| the winning 48-byte entry isn't really snake (nibbles), as the
| length of the snake grows with every move, rather than with
| every bit of food consumed. looks more like tron.
| postalrat wrote:
| If you enjoy making games in QR codes you should check out
| https://github.com/kesiev/rewtro
| flenserboy wrote:
| Reminds me of the old Beagle Bros 1-line BASIC programs.
___________________________________________________________________
(page generated 2023-08-04 23:01 UTC)