Uncategorized

Developing Melody Flow

Melody Flow is my first game, and it is about music, not just using music as a background.

I started by laying the diatonic scale on 2D space: pitches on the X-axis, time on the Y-axis. What you get is a vertically scrolling track, much like Guitar Hero or other rhythm games but with real pitches, not just random or approximated events.

I was not interested in the rhythm gameplay. Instead I created a character that catches notes. It has to be in the right column at the right time, but it’s smooth – you have to glide towards the next note.

I immediately ditched the usual bitmap textures and went for generative shaders. They are much cooler and dynamic than static textures. The math behind shaders is fascinating and I really had a great time learning about glows, SDFs, vertexes and stuff.

After two PoC levels, I realized that I hate creating levels. Moreover I hate playing fixed level games. Where’s the fun if you already know the level? The game would only remain interesting for a week. And I want to play my game FOREVER.

So I started writing a melody and chords generator. I’m a long time musician so I poured all my knowledge into this. This was mind-blowing and a project in itself. Never had so much fun in my whole dev life (which started long ago in the 90s).

Levels also needed obstacles and enemies, so based on the generated music, I wrote code to lay out these elements on the track. And of course I developed enemies and obstacles themselves, randomized using the same seed that governs music generation.

Godot proved to be a fantastic platform. I loved GDScript (apart from typed array hell). I loved the very good deployment to various platforms. I didn’t use much of the editor UI. I prefer code.

Lots of tweaking and striving brought me to the current stage and a demo on Steam. The menu is still basic and will be expanded for the final release. Then I plan to publish on mobile – I kept the game simple enough from the start to be a mobile game.

So here’s Melody Flow on Steam. Please try it and tell me what you think. I still have time to make it better before the final release.

Benvenuto Pieretto!

Carne di porco, ovvero incontro con RaiNet

Ieri ho partecipato a un incontro dal titolo Convergiamo organizzato da RaiNet. Sorvolo sugli inutili dibattiti sulla crossmedialità e altre snobistiche fantasticherie.

Il responsabile tecnico RaiNet ha introdotto di sua iniziativa il problema Silverlight e “hacker”. Vi posso assicurare dal tono e dalle espressioni usate che è un tema “caldo”. Il reponsabile tecnico ha ammesso che le misure di protezione sono continuamente “bucate” da un gruppo di “hacker che fanno carne di porco dei contenuti RAI”. Proprio così. A quel punto ho alzato la mano e ho detto: “Buonasera, sono uno di quelli che fanno carne di porco…” e la sala si è fatta una bella risata! C’è anche una testimonianza con qualche commento. Mi sono brevemente opposto alla connotazione negativa che sembrava insinuare chissà quali loschi fini dicendo che noi “craccatori” siamo solo utenti normali e quelli che vogliono vedere le dirette sul VLC sono una fetta di comunissimi utenti. Ho riassunto rapidissimamente le ragioni per cui c’è un interesse diffuso a vedere le dirette fuori da rai.tv:

  • Silverlight non si può installare su computer un po’ vecchi. Ad es. AMD Athlon
  • Consuma più CPU, quindi scarica molto più in fretta la batteria di un portatile
  • La qualità video è inferiore
  • Le dirette non sono fruibili su device come smartphone e mediacenter.
  • Problemi diffusi di installazione e funzionamento si Silverlight
  • Non ho fatto in tempo a dire: Moonlight funziona solo su Firefox e non su altri browser, ma non so quanto sarebbe stato capito: per i mediaroli presenti in sala usare il Mac è ancora di moda.

RaiNet giustifica i continui tentativi di rendere inaccessibili le dirette al di fuori di rai.tv sostenendo che “non hanno i diritti”. Cioè che i diritti che acquisiscono per alcuni dei contenuti trasmessi sono limitati al sito rai.tv. Un esempio sono state le ultime Olimpiadi invernali per le quali hanno corso, a quanto hanno detto, il rischio di dover sospendere gli stream. Inoltre sostengono di non essere nella posizione di ottenere questo diritto.

Avrei voluto proporre una nuova strategia oltre alle critiche, ma questa notizia sui problemi di diritti e la tendenza a non farmi più intervenire mi ha bloccato. La strategia è semplice.

  • Rinunciare a pubblicità aggiuntiva rispetto a quella già presente in tv.
  • Aprire l’accesso alle dirette e ai contenuti on-demand creando un API documentata e pubblica in modo da rendere possibile a terze parti sviluppare software integrando i contenuti RAI su qualunque sistema operativo e device.
  • Fare reportistica non in base alle pageview e accessi unici del sito. Ma in base agli accessi agli stream.
  • In questo modo possono aggiungere valore alla pubblicità che già raccolgono e migrare veramente la RAI su internet perché l’epoca della TV sta finendo.

Ma insomma, questo presuppone che abbiano i diritti per farlo.

In chiusura ho potuto parlare a tu per tu con il responsabile tecnico. Mi ha anticipato che in vista delle prossime Paralimpiadi, per evitare rischi, useranno il DRM di Windows Media. Questo significa che Linux (e tutto ciò che non è Windows e Mac) sarà escluso dalle dirette. Gli ho anticipato che questo cambiamento non sarà accolto benissimo…

Ho fatto in tempo anche a raccontargli la storia di Matthew che mi ha colpito e spero abbia colpito anche lui. Alla fine, leggermente disgustato da alcuni sproloqui di mediaroli di mezz’età, ho preso il vespone e sono tornato a casa.

Workflow

ciao flavio,

come va? spero bene.
ti invio in allegato un power point nel quale troverai l’info richiesta.
per ulteriori informazioni non esitate a contattarmi tramite email o
a questo numero +39 06 1111-1111

a presto e buon lavoro
nome_gruppo.ppt

Il giorno 19/mag/09, alle ore 16:25, Flavio Tordini ha scritto:

Ciao Gabriele,
ti prego gentilmente di comunicarmi il nome del gruppo o dell’artista
solista
che stai ascoltando. Daniele, che ci legge in copia, ne ha bisogno
per portare
avanti il suo progetto.

Grazie in anticipo,
Flavio

On Tuesday 19 May 2009 16:19:57 daniele wrote:
> Ciao Flavio,
> come va?
> a me bene…….
> Potresti chiedere a gabriele il nome del gruppo che sta ascoltandi
> ora?
> grazie
> Distinti saluti

BookStackOverflowException

Bookstack

Una incursione a Croce con Enrico e due raid alla libreria Tara (da solo e col Tesoriero) hanno causato un picco nel mio bookstack. Ho iniziato dall’ottimo Carlo Ginzburg. Sono tutti libri che vi consiglio, sempre se riuscite a trovarli.

Copyleft wallpaper

A wallpaper I made with Inkscape is currently a Top rated on the Gnome Art website and has been downloaded by thousands of people. Wow! I’m turning into a graphic artist.

Here’s the SVG file, use it directly or open it with Inkscape and export it to the resolution you need.