samedi 18 décembre 2010

Fictions interactives

Je travaille depuis quelques semaines à ce qu'on appelle une "fiction interactive".

En gros, un jeu d'aventure textuel, pas forcément entièrement textuel (il peut y avoir des illustrations) mais dont le fonctionnement, le gameplay, sont entièrement basés sur le texte.

Un monde dans lequel les événements, les personnages, bref, tout est décrit par du texte, et où le joueur entre des commandes textuelles pour agir.

Ça peut sembler ultra primaire, mais les capacités des ordinateurs actuels, par rapport à ceux des années 80 – où sont sortis les grands standards de ce genre, par exemple, sur CPC, La Secte Noire, Omeyad, Sram 2, Orphée – et les possibilités offertes par les langages modernes de programmation, comme Inform7, que j'utilise, rendent les jeux quasiment infinis en terme de taille et de complexité.

Ainsi j'en suis, pour l'instant, car ça va encore grandir, à pas moins de 520 lieux où le joueur peut se déplacer. Rien ne m'empêche, à part le temps de travail, d'en ajouter encore le double ou le triple, ou dix fois, pour créer un monde ou une ville riche et explorable dans ses moindres recoins. Avec un nombre tout aussi virtuellement infini de personnages non-joueurs et d'objets à manipuler, de missions et d'intrigues secondaires, bref, comme sur Zombo.com il n'y a pas d'autre limite que l'imagination.

Évidemment, je ne détesterais pas avoir sous la main un illustrateur au cerveau directement branché sur le mien, qui donnerait une existence objective, immédiate, visuelle, à ce que j'essaie maladroitement de traduire en phrases. Mais avoir un outil aussi puissant qu'Inform7, et aussi simple d'utilisation, est déjà inespéré.

Le langage de programmation ressemble au langage humain. Sa syntaxe est assez rigoureuse, mais une fois qu'on a pris certains réflexes, ça va tout seul.

Exemple : 

MaisonChefChambre is a room. It is north from MaisonChefCouloir. The printed name is "Dans la chambre à coucher". The description is "[if unvisited]Vous entrez dans la chambre à coucher de ce qui fut autrefois le couple Bauer. Les armoires sont ouvertes, leur contenu renversé au sol, profané. Le lit a servi de latrines. Ceux qui sont venus ici ont manifestement tout fait pour souiller ces lieux.[otherwise]Vous êtes dans la chambre à coucher. Les armoires sont ouvertes, leur contenu renversé au sol, profané. Le lit a servi de latrines.".

Code qui définit l'existence d'une pièce (MaisonChefChambre), son nom à l'écran et son texte descriptif, avec des variables (le texte variant si la pièce a déjà été visitée, ou pas). Admirons l'économie de moyens !

Un autre : 

Every turn when the Prostituee is in the location of player:
If a random chance of 1 in 10 succeeds
begin;
say "[one of]La fille vous sourit d[']un air aguicheur.[or]La fille : 'Tu veux venir, mon loup ?'.[or]La prostituée s[']allume une cigarette en soupirant.[or]La prostituée a l[']air épuisée, la nuit va être longue ; vous avez pitié d[']elle.[or]La fille, d[']une voix geignarde : 'T'aurais pas un peu de gnôle ?'.[or]La fille se recoiffe, tenant d[']une main un petit miroir ovale.[or]La fille fait un signe de la tête, discret, à son souteneur qui se tient au loin.[or]La fille sourit aux hommes qui passent, les regardent de la tête aux pieds, sans pudeur.[or]La prostituée passe ses doigts dans ses cheveux, soupire.[or]La fille vous sourit d[']un air un peu triste.[in random order]";
end if.

Code, ici, qui permet d'afficher aléatoirement, lorsque le joueur se trouve en présence de tel personnage non-joueur, des messages d'ambiance, purement gratuits, mais qui installent une impression de vie, d'autonomie du monde du jeu.

Là aussi, code minimal, pour quelque chose qui apporte vraiment au jeu – et dans un langage tellement proche de l'humain qu'il ne nécessite aucun apprentissage en temps que tel. Le manuel du soft est suffisant pour la plupart des cas où la syntaxe pose un éventuel problème.

Je me fais donc plaisir à créer une ville aussi étendue et riche que possible, où le joueur puisse mener une vie absolument non-linéaire. Peut-être essaierai-je (techniquement, c'est un peu plus coton, mais faisable) de prendre modèle sur GTA, dans le genre "liberté totale / pas de fin". Et pourquoi pas travailler sans cesse à augmenter le jeu, en envoyant les updates à mes joueurs, qui pourront, sans perdre leurs sauvegardes, avoir sans cesse de nouveaux lieux à explorer, de nouveaux objets, de nouvelles situations à découvrir.

En attendant qu'un langage soit assez simple et puissant pour générer ces nouveautés tout seul.

*

Ceci étant :

Je considère les fictions interactives comme un authentique genre ludique, à part entière, mais aussi comme un authentique genre littéraire – elles pourraient être au 21ème siècle, ce que le roman fut au 19ème et au 20ème ; un lieu d'exploration du réel et des problématiques humaines, et de réflexion, voire de proposition (politique, philosophique) où une identification encore accrue du "lecteur", et même une forme cyber-bovarisme rendront la chose encore plus efficace.

À condition de faire muter, donc, le roman lui-même, en y intégrant tout ce que les F.I ont de labyrinthique, de variant, d'aléatoire, mais aussi de redondant, de bogué, de limité – parce que c'est aussi , au même titre que la narration traditionnelle, mais à un autre niveau, une image fidèle de la réalité.

J'imagine un livre – peut-on encore dire un roman ? mais au fond quelle importance – dont le texte ressemblerait à un code-source de jeu vidéo.

Une langue économe, précise, systématique, ordonnée, hiérarchique, qui, sans ces foutus effets de style qui pourrissent la littérature – et qui ne sont pas "le style" – instaure un monde.

Un texte qui intègre les différents niveaux de conscience et de réalité que nous traversons tous tous les jours – les actes quotidiens, mécaniques, presque inconscients – la rêverie, les souvenirs – le rêve éveillé que sont les mondes virtuels en 2D ou en 3D, etc.

Il ne s'agit pas de "faire de la science-fiction". Il ne s'agit pas de gadgets ou de procédés littéraire pour être dans l'air du temps.

J'ai commencé ce midi la lecture d'un roman qui en quelques phrases dit ça mieux que je ne le pourrai :

"Le codage, c'est tout ce que la poésie représentait pour moi du temps où nous étions en fac. Précision, éloquence, puissance, exhaustivité. Quatorze lignes peuvent te remplir l'intégralité de l'univers."

Dieu a écrit le code-source de l'univers. Rien ne nous interdit de l'imiter.

Interactive fictions

I've been working for a few weeks on what is called an "interactive fiction".

Basically, a text-based adventure game, not necessarily entirely text-based (there may be illustrations) but whose operation, whose gameplay, is entirely text-based.

A world in which events, characters, in short, everything is described by text, and where the player enters textual commands to act.

It may sound ultra primitive, but the capabilities of today's computers, compared to those of the 80's - when the great standards of this genre were released, for example, on CPC, The Black Sect, Omeyad, Sram 2, Orphée – and the possibilities offered by modern programming languages, such as Inform7, which I use, make the games almost infinite in size and complexity.

So I am, for the moment, because it will grow again, at no less than 520 places where the player can move. Nothing prevents me, apart from the work time, from adding twice or three times as many, or ten times as many, to create a world or a city that is rich and explorable in its every corner. With an equally virtually infinite number of non-player characters and items to manipulate, missions and subplots, in short, as on Zombo.com there is no limit other than the imagination.

Of course, I wouldn't hate to have an illustrator with a brain directly connected to mine, who would give an objective, immediate, visual existence to what I'm clumsily trying to translate into sentences. But having a tool as powerful as Inform7, and as easy to use, is already unhoped-for.

The programming language resembles the human language. Its syntax is quite rigorous, but once you get the hang of it, it works on its own.

Example:

HeadRoomHouse is a room. It is north from MaisonChefCouloir. The printed name is "In the bedroom". The description is "[if unvisited]You enter the bedroom of what was once the Bauer couple. The cupboards are open, their contents spilled on the floor, desecrated. The bed has been used as a latrine. Whoever came here obviously did everything they could to defile this place. You are in the bedroom. The cupboards are open, their contents spilled on the floor, desecrated. The bed has been used as a latrine[end if]".

A code that defines the existence of a room (HeadRoomHouse), its name on the screen and its descriptive text, with variables (the text varying if the room has already been visited, or not). Let's admire the economy of means!

Another one: 

Every turn when the Prostitute is in the location of player:
If a random chance of 1 in 10 succeeds
begin;
say "[one of]The girl smiles at you with a teasing look. The girl: 'Do you want to come along, my wolf? The prostitute lights a cigarette and sighs. The prostitute looks exhausted, the night is going to be long; you feel sorry for her. The girl, in a whining voice: 'Do you have some booze? [The girl brushes her hair back, holding a small oval mirror in one hand. The girl nods discreetly to her pimp, who is standing in the distance. The girl smiles at the men who pass by, looking at them from head to toe, without modesty. The prostitute runs her fingers through her hair, sighs. The girl smiles at you with a slightly sad look. In random order";
end if.

A code, here, that allows to display randomly, when the player is in the presence of a non-player character, some ambiance messages, purely free of charge, but that give an impression of life, of autonomy of the game world.

Again, minimal code, for something that really brings to the game – and in a language so close to human that it requires no learning as such. The manual of the software is sufficient for most of the cases where the syntax is a possible problem.

So I'm enjoying creating a city as large and rich as possible, where the player can lead an absolutely non-linear life. Maybe I'll try (technically, it's a bit more difficult, but feasible) to take a model from GTA, in the "total freedom / no end" genre. And why not work constantly to increase the game, by sending updates to my players, who will be able, without losing their saves, to constantly have new places to explore, new objects, new situations to discover.

Until a language is simple and powerful enough to generate these new features by itself.

*

That being said:

I consider interactive fictions as an authentic ludic genre, in its own right, but also as an authentic literary genre – they could be in the 21st century, what the novel was in the 19th and 20th; a place of exploration of reality and human problems, and of reflection, even of proposal (political, philosophical) where an even greater identification of the "reader", and even a form of cyber-bovarianism will make the thing even more effective.

On the condition that we mutate the novel itself, by integrating into it all that the F.I. has of labyrinthine, of variant, of random, but also of redundant, of buggy, of limited – because it is also, in the same way as the traditional narration, but at another level, a faithful image of reality.

I imagine a book – can we still say a novel? but in the end what does it matter – whose text would resemble a video game source code.

A thrifty, precise, systematic, ordered, hierarchical language, which, without those damn stylistic effects that rot literature – and which are not "style" – establishes a world.

A text that integrates the different levels of consciousness and reality that we go through every day – the daily, mechanical, almost unconscious acts – daydreaming, memories – the waking dream that are the virtual worlds in 2D or 3D, etc.

It is not a question of "making science fiction". It is not about gimmicks or literary processes to be in the air of time.

I started reading a novel this afternoon that says it better than I can in a few sentences:

"Coding is everything that poetry meant to me back when we were in college. Precision, eloquence, power, completeness. Fourteen lines can fill you with the entire universe."

God wrote the source code for the universe. There is nothing to stop us from imitating him.

jeudi 16 décembre 2010

Strange excitement

The other night when I got off work, after spending my day in a chair typing code for my game and spending my time on obsessive pursuits, like "searching for all the photos of Miami available on Google", I found myself in a strange kind of excitement – physical, nervous, mental, even sexual. I know this state that happens to me from time to time, this long mental orgasm, this exaltation without cause or purpose, this torrent of thoughts, fantasies, visions and stories, memories, that overwhelms me.

I was walking through the streets, it was dark and the smallest building porch, the smallest illuminated window, the most miserable garden and the most kitschy illuminated sign delighted me like a whole new world to discover, like promises of infinitely numerous adventures – as if every street and alley, as if every street and alley, every doorway, every corner was waiting for me to explore, to make it my own, as if the whole city and its inhabitants were waiting for me to start stories, as if the whole of life was one big playground to play in.

It must be the GTA Vice City effect or the video game effect in general, I've already talked about it and it's something I'm working on a lot at the moment. I play a lot, by the way, Vice City, The Path, Minecraft, games that are very different from each other, but each one teaches me something about gameplay, about what a game is, about why you play, for what purpose, for what benefit in your life.

I believe that video games and the attention, the curiosity they demand, have a positive effect on real life – far from locking us into a virtual world, they make us more curious and attentive, we start to adopt in real life the "explorer" state of mind we have when we play. It happened to me, while walking in the evening, and while emerging in an unknown district, to feel this exaltation which one also has while discovering new places in a video game. This impression of having a space in front of you to discover and exploit, this impression that you are here and now and that anything can happen, that you are there to make things happen. Who can claim to experience this on a daily basis, naturally? It's the opposite, most of us live on autopilot and don't even see the streets anymore as we move from one point to another, always the same, during our days.

I dream of a new generation of video games that relearn how to live, how to see the world, how to reinvest in it, how to make it a place of adventure rather than the infinite repetition of the same.

*

Talking about this with Eric recently, I joked that if he got into 3D, he would just have to create a kind of infinite forest where we could hide from the modern world and take a breather to think collectively about the counter-offensive - mental, spiritual, that is. The idea did not displease him.

Yes, I believe that we are no longer in the era of leaflets and propaganda papers, nor of meetings or any of the other procedures of the revolutionaries (and the powers that be) in the twentieth century. The official world in which we live, as well as the history we have learned, our values, our ways of life, our collective enemies and fears, our priorities, our way of living and dying, is a narrative, a fiction and an aesthetic elaborated by someone or by no one, but a myth in which we live – and it's normal, Man needs it.

Tomorrow's video games, God willing, will be, among other things, counter-narratives, not only of other worlds, but of counter-worlds with infinitely many functions and purposes.

As I had already written one day, the only true Contemporary Art, according to the very criteria of contemporary art (multidisciplinarity and multimedia, ludic aspect, participation of the public, references to the common contemporary culture, etc), is the video game.

To him therefore to recover also all the functions formerly devolved to all the arts.

We will no longer die to save a cathedral, a painting, or to defend a play, we will no longer go to war to imitate the hero of a novel, we will no longer look for answers to our intimate questions in a novel, we will no longer go to the movies to live adventures by proxy. We will really live them; in front of a screen too, but really. And we will find answers about ourselves.

*

I'm working on a game myself at the moment, an entirely text-based game – instead of images, we have text that describes the places and events that follow one another, and the player types in text to act, for example "go north, open cabinet, search cabinet, take book", etc. I'd like to succeed in programming a real little Matrix, with as many random elements as possible, with characters free to move, with the need to eat, to sleep, with the weather changing, with the possibility if you want to go to the north, to open a cabinet, to search a cabinet, to take a book, etc.

I would like to succeed in programming a real little Matrix, with a maximum of random elements, with characters free to move around, with the need to eat, to sleep, with a changing weather, with the possibility, if you want, to do nothing else but walk around and live, and to establish relationships with the world and its occupants. But also to have adventures if you want. I think I'll be able to do that. This will be my first work as a demiurge.

Excitation étrange

L'autre soir en sortant du travail, après avoir passé ma journée sur une chaise à taper du code pour mon jeu et avoir passé mon temps à des occupations obsessionnelles, du genre "chercher toutes les photos de Miami disponibles sur Google", je me trouvais dans une sorte d'excitation étrange – elle physique, nerveuse, mentale, sexuelle, même. Je connais bien cet état qui m'arrive de temps à autres, ce long orgasme mental, cette exaltation sans cause ni but, ce torrent de pensées, de fantasmes, de visions et de récits, de souvenirs, qui me submerge.

Je marchais dans les rues, il faisait nuit et le moindre porche d'immeuble, la moindre fenêtre illuminée, le jardin le plus misérable et l'enseigne lumineuse la plus kitsch me ravissaient comme un tout nouveau monde à découvrir, comme des promesses d'aventure infiniment nombreuses – comme si chaque rue et ruelle, chaque porte, chaque recoin n'attendaient que moi, que mon exploration, mon appropriation, comme si la ville entière et ses habitants n'attendaient que moi pour que des histoires se déclenchent, comme si la vie entière n'était qu'un grand terrain de jeu dans lequel s'ébattre.

Ça doit être entre autres l'effet GTA Vice City ou l'effet jeu vidéo en général, j'en ai déjà parlé et c'est quelque chose qui me travaille beaucoup en ce moment. Je joue beaucoup, d'ailleurs, à Vice City, à The Path, à Minecraft, jeux très différents les uns des autres, d'ailleurs, mais chacun m'apprend quelque chose sur le gameplay, sur ce qu'est un jeu, sur pourquoi on joue, dans quel but, pour quel bénéfice dans sa vie.

Je crois que les jeux vidéos et l'attention, la curiosité qu'ils demandent, ont un effet positif sur la vie réelle – loin de nous enfermer dans un monde virtuel, ils nous rendent plus curieux et attentif, on se met dans la vie réelle à adopter l'état d'esprit "explorateur" qu'on a lorsqu'on joue. Ça m'est arrivé, en me promenant le soir, et en débouchant dans un quartier inconnu, de ressentir cette exaltation qu'on a aussi en découvrant de nouveaux lieux dans un jeu vidéo. Cette impression d'avoir face à soi un espace à découvrir et à exploiter, cette impression qu'on est ici et maintenant et que tout peut arriver, qu'on est là pour faire que des choses arrivent. Qui peut se targuer d'éprouver ça quotidiennement, au naturel ? C'est le contraire, la plupart d'entre nous vivent en pilote automatique et ne voient même plus les rues où ils se déplacent d'un point à l'autre, toujours le même, au cours de leurs journées.

Je rêve d'une nouvelle génération de jeux vidéos qui réapprennent à vivre, à voir le monde, à le réinvestir, à en refaire un lieu d'aventure plutôt que de l'infinie répétition du même.

*

En parlant de tout ça avec Eric récemment, j'avais plaisanté en disant que s'il se mettait à la 3D, il n'aurait qu'à créer une sorte de forêt infinie où nous pourrions nous cacher du monde moderne et souffler un peu pour réfléchir collectivement à la contre-offensive – mentale, spirituelle, en l'occurrence. L'idée ne lui avait pas déplu.

Oui, je crois que nous ne sommes plus à l'ère des tracts et des journaux de propagande, ni des meetings ou de tous ces procédés des révolutionnaires (et des pouvoirs en place) au vingtième siècle. Le monde officiel dans lequel nous vivons, aussi bien l'Histoire apprise, que nos valeurs, nos modes de vie, nos ennemis collectifs et nos peurs, nos priorités, notre façon de vivre et de mourir est une narration, une fiction et une esthétique élaborée par quelqu'un ou par personne, mais un mythe dans lequel nous vivons – et c'est normal, l'Homme a besoin de ça.

Les jeux vidéos de demain, si Dieu le veut, seront, entre autres, des contre-narrations, non seulement des autres mondes, mais des contre-mondes aux fonctions et aux buts infiniment nombreux.

Comme je l'avais déjà écrit aussi un jour, le seul vrai Art Contemporain, selon les critères mêmes de l'art contemporain (multidisciplinarité et multimédia, aspect ludique, participation du public, références à la culture contemporaine commune, etc), c'est le jeu vidéo.

À lui donc de récupérer aussi toutes les fonctions autrefois dévolues à tous les arts.

On ne mourra plus pour sauver une cathédrale, un tableau, ou pour défendre une pièce de théâtre, on ira plus à la guerre pour imiter le héros d'un roman, on ne cherchera plus dans un roman non plus de réponses à ses interrogations intimes, on ira plus au cinéma vivre des aventures par procuration. On les vivra réellement ; devant un écran aussi, mais réellement. Et on y trouvera des réponses sur soi-même.

*

Je travaille moi-même à un jeu en ce moment, un jeu entièrement textuel – au lieu d'images, on a du texte qui décrit les lieux et les événements qui se succèdent, et le joueur tape du texte pour agir, par exemple "aller au nord, ouvrir armoire, fouiller armoire, prendre livre", etc.

J'aimerais réussir à programmer une vraie petite Matrice, avec un maximum d'éléments aléatoires, de personnages libres de leurs mouvements, avec aussi la nécessité de manger, de dormir, avec une météo qui change, avec la possibilité si on le souhaite, de ne rien faire d'autre que se promener et vivre, et nouer des relations avec le monde et ses occupants. Mais aussi de vivre des aventures si on le souhaite. Je pense que j'y parviendrai. Cela sera ma première œuvre en tant que démiurge.