1Kusai by Shinra [web]
screenshot added by PulkoMandy on 2018-03-19 10:21:38
platform :
type :
release date : march 2018
release party : Forever 2018
compo : 8bit 1k
ranked : 2nd
  • 22
  • 2
  • 0
popularity : 55%
  • 0.92
alltime top: #8778
added on the 2018-03-19 10:21:38 by PulkoMandy PulkoMandy

popularity helper

increase the popularity of this prod by spreading this URL:

or via: facebook twitter pinterest tumblr


Hi there,

No NFO file because I'm lazy, but here is some tech info. A more detailed writeup may come when I recovered my normal sleep schedule and fixed Shinra website.

So, the idea was to fit Hokusai's The Great Wave off Kanagawa in 1K.

I worked from an SVG file and removed a lot of details until it would fit the allocated space (packed with zx7). Eventually it ended up too small after some late minute changes to the code which improved the compression. Oh well.

The SVG was converted to bezier curves using NanoSVG, then a custom Lua script to convert the usual bezier curves definitions into a form more suitable for computation. Normally a Bezier curve is defined by X and Y equations which look like this:

x = A(1-t)³+3B(1-t)²t+3C(1-t)t²+Dt³

We can rewrite this as:
Z + t(Y + t(X + Wt))

Z = A
Y = 3B
X = 3C - 6B
W = D - 3C + 3B - A

So in this form we need only 3 multiplications.

The computations are done using CPC firmware which provides neat floating point math support. I compute 256 points along each curve (this could be adjusted to less points for faster drawing, at the cost of slightly less smooth curves) and draw lines between them. Then the system FILL routine is used to fill the closed shapes.

The sound of waves and thunder you can hear is just the Y or X coordinate (I don't remember, whichever sounded best) sent to the AY noise register (again using the CPC firmware, because this is the most space efficient way). I tried to write some music using the free bytes left but did not manage to do anything very convincing. Next time I'll try to spend more effort on the sound side.
Procedural gfx on CPC. Yeah :)
rulez added on the 2018-03-19 11:30:34 by Beb Beb
rulez added on the 2018-03-19 12:16:09 by g0blinish g0blinish
awesome =D
rulez added on the 2018-03-19 12:32:35 by noby noby
Nice job :)
rulez added on the 2018-03-19 14:11:49 by voxy voxy
rulez added on the 2018-03-19 16:07:09 by MuffinHop MuffinHop
I enjoy procedural generation stuff !
rulez added on the 2018-03-19 17:44:05 by norecess norecess
Great !
rulez added on the 2018-03-19 18:28:41 by krusty krusty
rulez added on the 2018-03-19 19:53:11 by Optimus Optimus
rulez added on the 2018-03-19 20:11:21 by sensenstahl sensenstahl
rulez added on the 2018-03-19 20:17:54 by roudoudou roudoudou
rulez added on the 2018-03-19 20:52:33 by exocet exocet
rulez added on the 2018-03-20 01:20:44 by Buckethead Buckethead
I like your theme/idea.
rulez added on the 2018-03-23 19:19:05 by Overflow Overflow
Video please!
added on the 2018-03-24 02:31:37 by AntDude AntDude
rulez added on the 2018-03-25 12:07:04 by Iapetus Iapetus

it's a joke with Okusai, but do you know that "kusai" means "it stink!" in japanese? :D
rulez added on the 2018-03-27 11:15:20 by rez rez
Very nice!
Note that you can compute bezier curves without multiplications at all:
rulez added on the 2018-03-30 23:02:18 by baah baah
ouhaou !
rulez added on the 2018-03-31 22:54:40 by freemac freemac
rulez added on the 2018-04-01 16:45:35 by rexbeng/PA rexbeng/PA
CPC needs more procedural GFX.
rulez added on the 2018-12-15 16:54:33 by SuTeKH/Epyteor SuTeKH/Epyteor
great concept and execution!
rulez added on the 2020-04-16 00:42:12 by RufUsul RufUsul
rulez added on the 2021-03-08 19:07:51 by ham ham
nice one
rulez added on the 2021-06-11 19:47:53 by Blast! Blast!

submit changes

if this prod is a fake, some info is false or the download link is broken,

do not post about it in the comments, it will get lost.

instead, click here !

[previous edits]

add a comment