bertelli.name

I miss the pixels

MetaRogue

November 19th, 2008 | Português(br)

Idea for a mix between the game genres roguelike and interactive fiction, using metadefinitions

Concepts

Considerations

Roguelike games, despite the seemingly crude interface (there are graphical versions but they do not stand up to common visual effects in modern games), offer depth of gameplay, incredible replayability, and sometimes hundreds of different possible interactions between the player, the environment, the enemy creatures and the items found in the game. Not to mention the randomness: every new game played is completely different from the previous one, because parts of the “world” will be dinamically generated for that player. That’s why they continue to gather fans and keep those fans loyal to this game genre, even after decades of enjoyment. Even after playing the same game for years it can still be possible for one to discover a new way to combine items, deal with creatures, interact with the environment, or even just play the game with some self-imposing limitation that changes entirely one’s gameplay style, just for the fun of discovering new ways of doing things. However, even the most intricate of roguelikes will have a limit to these possibilities - the imagination of its developers. It may be possible, sure, that the rules devised by the developers in the game code open way to doing something else that wasn’t in the developers minds, but still the game won’t itself create or infere new rules for the game world.

Screen of Nethack, a roguelike game. I'm the @, the brown d is a coyote, the white d is my dog.

Screen of Nethack, a roguelike game. I'm the @, the brown d is a coyote, the white d is my dog.

Another notable trait of roguelikes are their strict relation with the positioning of its elements; the player, the creatures and other elements “live” inside a square grid, and all their possible relations are directly connected with their position in this grid. Of course, this serves well just as another rule for the game world, one that is easily grasped and dealt with. And although there are some exceptions and alternative ways (mostly in some concept roguelikes) to move inside a grid world, the basics are the same. So a roguelike could be adapted to other kinds of interfaces (character based, tile based, 3D, etc.), but the grid would always be there because it’s an intrinsic concept of the genre, and the game needs the grid to work. More on these thoughts later.

Interactive fiction games are very different of roguelikes, unless for the fact that they also rely heavily in text, ignoring computers’ graphics capabilities. And the fact of relying only in text doesn’t detract from this game genre not even a bit - some IF games have a plot as deep or even deeper than a good novel. Not to mention that there are IF stories in a whole variety of themes, ranging from adventures to horror to fantasy. In short, playing an IF game is very much like reading a book - only that you’re free to really interact with the world presented by that book, you can’t just skip chapters to see the end beforehand, and the story wouldn’t advance unless you take the right steps. I believe these traits define well why this game genre is so interesting.

Anchorhead - interactive fiction game

Anchorhead, an excellent interactive fiction game of lovecraftian horror. I recommend.

Also, differently from roguelike games (at this point I think I should beg the reader’s pardon for insistently comparing two such different game genres, and I know they actually have nothing in common so there’s no way to even think about comparing them, but please keep with me), Interactive Fiction games doesn’t put the player inside a grid; it is common that the map of an IF game places resemble a grid (or is actually one) but this isn’t needed for the game to work; you can walk from place to place without actually worrying about how these locations are disposed one in relation with another. Let me clarify this: in some games the locations are logically positioned in relation to the others - think the rooms inside a house - so they work with that positional logic, but again that restriction isn’t intrinsic for this kind of game; you could have, say, three adjacent rooms in line, and just because the middle room is of no interest to the particular game being played, the player could move directly from the first room to the third one; the middle room would be ignored or the game could just say “you go to the third room passing through the second one” but that action would be done in just one movement. So the “physical” (if I can use this word) structure of an IF game is free of usual constraints found in our world. It hasn’t to resemble a grid, a plain structure, a 3D structure, or even conform with euclidian geometry - it may just be anything the author’s imagination wants it to be.

Also, an IF game can be completery different of any other IF game, just like a book can be completely new in its own style. The rules of the game world - concerning movement, object interaction, or anything else - may be defined by the author as he pleases. And still it will be recognizable as an IF game. This degree of freedom is expected in this game style, and the limits of actions and interactions are defined by the game itself, as well as it explicites the possible interactions. Usually with just some minutes of story the player will be aware of the game world rules and go on exploring it by himself. And here, like the roguelike genre, exploring is part of the fun.

And, just like I pointed in the roguelikes case, IF games have the inherent limitation of just letting the player go where the author thought it could go (with maybe some little degree of freedom, going a little further than the author had imagined, but not much beyond that). Of course, we won’t expect the game program to create or invent itself new rules and situations.

So, after considering these thoughts, one may ask: ok, so roguelikes and interactive fiction games are interesting and fun and complex in their own ways, but what the heck have one genre to do with the other? And the answer is - absolutely nothing, apart from the loose comparisons I did here, and for being two non mainstream game genres. But the imagination exercise of comparing the two lead me to the idea I present next.

Idea

So after all this introduction, the idea, in short, is to mix together characteristics of these two game genres, and at the same time throw in the mix the capability of generating interaction rules automatically, based on metarules defined by the game author. How to mix the game genres and keeping the result playable and how to realistically define interaction rules based on metadefinitions in a way that works is the subject of the (future) comments on the subject. But I will add that I was thinking of this while trying to learn how to code in Lisp, and thought of building some kind of text game to learn better Lisp’s capabilities.

Posted in Computers, Personal Tags: , , , , , | No Comments »

Matrioshka

November 9th, 2008
De Miscelânea

Lenin, Stalin, Brezhnev, Gorbachev, Yeltsin

Posted in Personal | No Comments »

Rogue’m Up

November 2nd, 2008 | Português(br)

Linux Application Development book
Two years or so ago I bought the book Linux Application Development at bargain price, but I still didn’t finished reading it. This always happens with all technical books I bought: I sit down to read the book, and before I finish even a chapter, I shift my attention to something else and drop the book.

I decided to change my strategy: now I’ll try reading the chapters out of order, selecting chapters by its themes, looking for something I’m interested in reading at that moment. Then I found that this book had a chapter about the S-lang lib. S-Lang provides an abstraction of the terminal (console), easing the programming of console applications. Traditionally the ncurses lib is more used and talked about, but S-Lang seems to be updated more often.

So I’ve finally advanced a little more in reading this book, and also spent some time playing with the S-Lang functions, enough to make a small game - a lateral shooter. The ship is an @ character and the enemies are, let’s say, somewhat familiar to anyone who ever played a certain character-mode game. And so I named this little experiment Rogue’m Up - from the wordsRoguelike and Shoot’em Up.

Rogue'm Up

Rogue'm Up

In other words, it’s a character-mode shooter. Don’t expect anything nice, this was just a result of an afternoon’s play with the S-Lang lib functions. Move the ship with the keys wasd or hjklyubn (all lowercase), shoot with the spacebar, quit with Q (uppercase). Every time an enemy collides with you, you lose 2 HP.

Download source code

Posted in Computers, Downloads, Personal, Projects Tags: , , , , , | No Comments »

O país do pião

October 9th, 2008

Li um artigo da época das olimpíadas, onde um repórter brasileiro comenta a qualidade do atendimento hoteleiro na China. Hotel para repórteres estrangeiros fazendo cobertura dos jogos olímpicos, fique bem entendido. Basicamente, o repórter comentou que o hotel era muito novo, luxuoso, cinco estrelas, mas o atendimento deixava a desejar: poucos funcionários do hotel falavam outra língua além de chinês, todos tinham ‘trainee’ no crachá, e a maioria tinha chegado de distritos rurais na semana anterior para trabalhar no hotel. De acordo com o repórter, até pedir uma coisa simples como um sanduíche de queijo era difícil: os funcionários não sabiam o que é sanduíche, não sabiam o que é queijo, e não sabiam o que é hóspede. E o detalhe de só falarem chinês, por sinal, é coisa do regime deles mesmo: não sabendo línguas estrangeiras, eles não se comunicam com estrangeiros, e portanto estão “protegidos” (de idéias estrangeiras, entende?). O hotel pertence ao governo, ou seja, ao partido comunista.

E foi assim até que o repórter descobriu como ser bem atendido - era só invocar o poderoso nome do partido comunista. Nas palavras do repórter: “Quero uma banana.” “Não há bananas, senhor.” “Então liga pro partido e pede uma banana, que eu preciso de uma.” A banana aparecia. “Preciso de um táxi.” “Não há como chamar um táxi aqui, senhor, isto é impossível.” “Então liga pro partido e pede um táxi, que eu preciso de um com urgência.” O táxi aparecia.

Daí eu me lembrei de uns detalhes que fiquei sabendo sobre a África. Em alguns países de lá, quem manda é quem grita mais. A lógica é mais ou menos assim: você, um estrangeiro trabalhando em um país da África, é abordado na rua por um policial. Você mostra seus documentos e até seu passaporte, tudo certinho, tudo em dia, mas ainda assim o policial implica com você e fica falando alto contigo, querendo encontrar algum motivo para te intimidar (e se brincar, é possível que você perceba que ele não sabe ler e está fingindo ler seus documentos). Bom, você é estrangeiro na África, o cara é autoridade e está te intimidando. Qual a reação correta? Se você for ocidentalmente educado e tentar argumentar com ele de forma civilizada, é até capaz de ir detido, nem que seja para ser solto logo em seguida. Mas de qualquer forma vai perder tempo. Então qual a reação correta? Mostre os documentos e fale alto com ele, como se você fosse mais autoridade que ele, e como se estivesse certo e ele errado. Seja ríspido, demonstre-se insatisfeito e expresse sua indignação por estar sendo atrasado sem motivo.

A lógica do africano nesse caso aí é mais ou menos assim: “se esse cara está falando assim comigo deve ser porque ele pode”. E a atitude de intimidação some, e você é bem tratado. Manda quem fala mais alto. Herança do tribalismo. A coisa pode chegar ao ponto de, por exemplo, um ministro do país delegar uma tarefa a um subalterno e o cara não fazer nada na ausência do ministro; não por preguiça, mas porque a herança cultural diz a ele que ele precisa do chefe da tribo ao lado dele pra ir dizendo o que ele deve fazer, e ele, obedientemente, vai fazendo. Mas pensamento independente, mesmo que seja em cumprimento a ordens, é pedir demais.

Democracia, então, nem pensar. Isso só funciona se os cidadãos de um país forem bem instruídos e capazes de pensamento crítico. Quantas pessoas com pensamento crítico você conhece aqui, no nosso país? Qual a percentagem dessas pessoas com relação à população votante inteira? É suficiente para eleger candidatos que realmente façam diferença, e cobrar compromisso desses candidatos? Nem eu mesmo faço isto. Entende onde estou querendo chegar?

Na China, não rola pensamento independente porque a população foi ensinada assim. Séculos de cultura contrária. E além disso, claro, o governo comunista e controlador. Em alguns lugares da África, também não rola pensamento independente , devido à herança cultural, mesmo que a estrutura política do país já seja de abertura. Países diferentes e com culturas diferentes, mas com um mesmo tipo de problema milenar.

Bom, o nosso país é (em tese) democrático, nós escolhemos nossos governantes, e podemos cobrar deles as ações que queremos ver. Só não fazemos isso. Nosso povo, particularmente nas classes “menos favorecidas”, não gosta muito dessa coisa de pensamento independente; dá muito trabalho. E depois, eu vou votar mesmo é em quem resolver meus problemas: no candidato que me der um emprego, me arranjar um óculos ou dentadura novos, uns dois sacos de cimento pra eu terminar o puxadinho do lado da casa. O programa do CQC outro dia desses entrevistou uma pessoa na rua, antes das eleições, sacudindo a bandeira de um candidato, e espertamente perguntou se ela estava fazendo aquela propaganda toda porque tinha ganhado grana do candidato. A resposta? Claro que sim, disse ela, tô ganhando 600 reais aqui. “E eu voto nele porque ele me deu emprego!”

Democracia pra quê? Eu quero é clientelismo. Sistema de governo, sistema judiciário, pra quê? Quem tiver mais influência manda mais. Substitua “influência” por “fala mais alto” ou “tem mais munição monetária” e a verdade se mantêm.

E eu ainda nem toquei em outro aspecto, o de que, se estivéssemos mesmo exercendo nosso papel de cidadãos, iríamos votar em quem? Aqui no Brasil, hoje em dia, virtualmente todos os partidos são iguais - não há mais diferenças ideológicas. Qualquer candidato de qualquer ideologia partidária irá ter um governo virtualmente igual aos outros. Não faz diferença. O choque que se esperava do presidente Lula na economia e no governo não veio, basicamente estes dois mandatos foram uma continuidade dos governos anteriores. As mudanças que há de um governo para outro não são tão grandes assim e não têm nada a ver com a ideologia pregada pelo partido, mas sim com a conveniência.

Soma agora todos os assuntos… China, África, democracia que precisa de pensamento crítico e educação pra funcionar, panorama pólítico sem muita chance de mudança… e daí eu fiquei pensando… quem seria o melhor líder para este país? Numa situação em que todos os candidatos devem ser iguais, que tal jogar um “coringa” no baralho pra ver se muda alguma coisa?

OOOÊÊÊÊÊ!!!

OOOÊÊÊÊÊ!!!

O melhor candidato possível, dadas as condições, seria… o Sílvio Santos. Pensa bem - ele já ganha grana demais com as empresas dele mesmo, não ia ter muito interesse de participar de roubalheira. E depois, já tá acostumado a fazer a alegria do povo, o mesmo povo que aparenta não ligar pra democracia, mesmo. Satisfaz a necessidade popular de espetáculos. Reafirma nossa política absurda, institucionalizando o clientelismo e, de quebra, o messianismo político. Ou seja, não ia mudar nada.

Imagina:

OooOOÊÊÊ, brasileiros e brasileiras, BOA NOITEEmm! Tudo bem com vocês? Eu venho aqui para falar de um assunto muito sério: a situação do sistema de SAÚDEmm e da EDUCAÇÃO PÚBLICAmm! A coisa não vai bem, a coisa não vai bem. Eu tenho aqui 10 bilhões de reais pra investir em uma ou outra. São 10 bilhões de reais em barras de ouro que VALEM MUITO MAIS DO QUE DINHEIROOOmmm! Eu tenho aqui 10 bilhões de reais, vou investir 10 bilhões de reais em educação ou na saúde pública. Aonde é pra investir, na educação ou na saúde? Na educação ou na saúde? O pião vai decidir. Patrícia, RODA O PIÃOOOmm!

Clique para rodar o pião!

Pião da Casa Própria

Pião da Casa Própria

Posted in Personal Tags: , | No Comments »

Things to do in Emacs 22: regexp

September 28th, 2008

Stevey’s Blog Rants: Shiny and New: Emacs 22

It’s just like a normal M-x {query-}replace-regexp, but you’ll prefix any lisp expressions in the replacement string with the sequence `\,’ (i.e., a backslash and a comma). In this case, we match the whole word, and invoke the Emacs-Lisp function `capitalize’ to capitalize the word we just matched:

M-x replace-regexp
Replace regexp: \(\w+\)
Replace regexp with: \,(capitalize \1)

Posted in Computers Tags: , , | No Comments »

Movie: Wanted

September 15th, 2008 | Português(br)


Things I’ve learned with this movie:

  • Candle wax is an extremely powerful curative medication.
  • If a person’s heart accelerates until 400 beats per minute, this person will become faster and nimbler, instead of dying of stroke.
  • The medieval weavers not only already knew binary code, but also already knew the ASCII table[*].
  • Never, EVER stand over the x spot.

[*] if it was EBCDIC I would understand… ;-)

Posted in Personal Tags: , | No Comments »

Plonq

August 14th, 2008 | Português(br)

Some time ago I found a little game called Qonk. Simple but creative, it requires strategy and quick thinking. Basically, the goal is to conquest a solar system, eliminating the adversaries, conquering more planets, and using the spaceships produced by those planets to conquer others.

Some time ago, I also knew the Lua language. Simple, small, but creative and flexible. And in order to know it better, I installed a variant of it in my Plam Tungsten: Plua. Since the better way to learn a new programming language is to write a program in it, I decided to try making a little game: a Qonk clone. The game isn’t complete yet but already works. I’ve uploaded the game and its source code here:
Plonq

Posted in Computers, Projects Tags: , , , | No Comments »

Pac-Man explained

August 4th, 2008 | Português(br)

Remember the Pac-Man movie rumor a while back? Well, this is not connected to the movie, but this probably could be the only rational explanation behind Pac-Man’s story…

http://www.chrisroberson.net/2008/05/pac-man.html

I want a T-shirt with that pic.

Posted in Personal Tags: , | No Comments »

Separated at birth?

July 29th, 2008 | Português(br)

Beetlejuice (Michael Keaton) & Joker (Heath Ledger) ?

Well, the two are, ah, mortally funny…

Beetlejuice and Joker

Posted in Personal Tags: , | No Comments »

Tataraneto do Johnny 5 faz sucesso

July 16th, 2008

WALL-E e Johnny 5A Pixar acertou em cheio de novo. WALL-E, tataraneto do Johnny 5, é um robô, uma máquina, e ainda assim consegue ser um personagem extremamente cativante. Não vou contar a história aqui, assista e confira. Recomendo.

Só vou fazer uns comentários: o começo do filme me lembrou o Eu Sou A Lenda, com a terra vazia, transformada em sucata (literalmente). E se aqueles moluscos humanos são o epíteto da vida confortável moderna e do capitalismo levado ao extremo, então… pára o mundo que eu quero descer…

Posted in Personal Tags: | No Comments »

« Previous Entries