Showing posts with label english. Show all posts
Showing posts with label english. Show all posts

Friday, August 06, 2021

Testpoints and borders

 Testpoints are the oldest check technique I've been using to implement collisions in my games. From Calimero to Bilou and even Crazy Brix. The idea was simply to check the color of a specific point on screen to decide whether it is solid or not. In Calimero, white was solid, and black was not. In Bilou (QuickBasic), pixels with all their 4 lower bits set were non-solid. Everything else was.

But by 2000, it was no longer sounding sufficient. I had a long technical discussion with Gedeon by then, who was enthusiast about Crazy Brix, but pointed out that ball/bricks collisions were imperfect. I had found (by browsing and floppy-swapping- and printing and reading) mask-based techniques for sprite-to-sprites collisions through shifting and masking. But I was still missing a way to do the same for ground and walls.

Then I came up with a paradigm shift: instead of doing checks on a bitmap, I could have a vector-based description of the level boundary and wrote a letter to Gedeon to present him how I'd do it.

There are still testpoints associated with sprite positions, but now they can be attached to the closest level boundary. They can be split in 4 casts depending on whether they should block as floor, ceiling or walls. Once a testpoint is associated with one border, checking whether we're in or out is trivial. One test, and that's it.

My idea was that we could build a graph or a network of boundaries for each cast, so we can switch from one boundary to its neighbour.

I had high hope to use that in my Ultimate Game Maker, but it although I said to Gedeon that navigating the 'network' shouldn't be that hard, just having a Mario-pipe in the level and falling below its height would make our 'right wall' (initially far away) become very near, and possibly skipping many other obstacles that are "shadowed" by the pipe.

edit: by re-typing this on 2021, it turns out that the solution to boundaries network might simply be to use something inspired by the 'portals' used in 3D engines (Ogre ?): above my Mario-pipe, you'd have an "empty" right-wall. That means when you're jumping and have no walls in front of you, the scanning is halted by a 'right-portal' that just serves the purpose of saying 'there's a pipe right below me'. Only when you go past the horizontal position of the pipe, you unlock the wall-boundaries that are further away.

Ah. Bin c'était supposé être un post de traduction d'un vieux post pour le tag-de-la-semaine et à y re-réfléchir, j'en viens à me dire que la clé, pour pouvoir utiliser ces bordures, c'est de rajouter des bordures-portail pour prolonger les bordures réelles. ça conserve le potentiel de décrire la structure du niveau avec moins de données qu'une tilemap, mais par contre il risque d'y avoir du travail pour l'édition de niveaux...

Et en cherchant un peu (autre chose), je retombe sur des illustrations qui doivent dater d'après la lettre à Gédéon, mais d'avant la tentative de moteur 3D pour Bilou.





Saturday, January 27, 2018

J'adore le mauve

 Parce que dans Fez, le mauve est synonyme de mystère et d'intrigue. Généralement une petite pièce qui semble en-dehors du monde "normal", une atmosphère de trans-dimensionnalité... du fez quoi.

I love than purple shade of mystery Phil introduced in his Fez game. He mostly used it in small, indoors location that feel a bit disconnected from the "overworld". It usually looks bigger inside than it should be given the exteriors' dimensions. We first encounter it in the strange place where the cube gives us power, and it was absent completely from the village, to find it again just when we cross the door to "the world beyond" the village.

L'introduction du personnage à son nouveau pouvoir se fait dans le mauve, couleur presque absente de son village. On la retrouve pourtant derrière la porte qui mêne "au monde au-delà du village.

Et quel monde! les cascades tombent de nulle part, les blocs flottent dans les airs, il y a des portes partout et pourtant elles n'ont nulle part où mener (enfin, ça devrait chaque fois être une autre porte vers la même salle qui fait au mieux deux fois la chambre de gomez, mais en fait non. Ici, l'intérieur, c'est l'extérieur).

That first hub is the goal of our game: we want cubes to open those doors. The mystery color is used again, which makes the room feel unique, with floating blocks and Cascadas flowing from nowhere. There seems to be which echoes the duality of the gameplay: the normal, outerworld is for exploring, and the purple, inner world is for riddles.  Indeed, past that first hub, purple rooms will mostly be locations where we took for anti-cubes.

Il y a donc deux couches de réalité dans Fez: le monde extérieur, propice à l'exploration, et le monde intérieur, mauve, propice à ...

Eh bien propice aux énigmes. On va essentiellement le retrouver dans des salles "cachées" où il va falloir faire quelque-chose pour faire apparaître un anti-cube. C'est d'ailleurs probablement dans ces salles que vous avez le plus de chance d'y trouver votre premier si vous n'avez pas encore jeté un oeil sur la liste des "achievements" du jeu.

Un des aspects du jeu qui m'avait vraiment plu dès ma première "vraie" partie, faisant un peu écho aux puzzle qu'on pourrait trouver dans un Zelda.

Mais le mieux, c'est que le jeu nous met la puce à l'oreille. une salle-mauve en-dedans a sa porte d'accès sur un mur mauve au-dehors. De quoi provoquer l'anticipation du mystère mais aussi pouvoir la repérer plus facilement parmi les autres portes d'un noeud (on ne peut pas parler de monde ni de niveau pour fez) et simplifier un peu le back-tracking.

One clever design idea about those riddle-rooms is that their purple status tends to contaminate the outerworld. The door to the room itself will be purple as well, and sometimes, even some of the bricks around are purple, too.  This helps quickly identifying the right door when we backtrack to riddles we had not yet solved.
 

Some level of backtracking is impossible to avoid with Fez, but to be honest, the more you can focus on the things immediately reachable, the best. I wished I could close doors towards rooms I couldn't understand, To reduce the amount of trials when I'll have to go there again.  understanding how the map system works was a Key factor in bearing he game, and I eventually. picked up a sketchpad to take notes of my progress, and scribble anything that could be useful later, like the location of owls, obelisks and interesting paintings. without it, I think I would still be running that maze for final cubes. Likely, I should have depicted the secret doors as well.

Bien que, je vous l'avoue, j'avais déjà fait l'expérience assez désagréable de constater que Fez est beaucoup moins pratique quand on doit retourner quelque part que quand on y fait son premier passage. En fait, il aurait été pratique de pouvoir refermer une porte quand on se rend compte qu'elle mène vers une énigme qu'on ne sait pas encore résoudre, de sorte qu'elle apparaisse comme "à faire" au prochain passage.

Si bien que l'on doit assez vite apprendre à se servir de ce qui tient lieu de "carte" pour ce monde. garder un oeil sur ce qu'il y a à l'arrière-plan quand on tourne le monde dans telle ou telle direction, vérifier si la salle marquée d'un '?' est bien sur la "face" visible, s'il y a plusieurs portes sur cette face, etc. (et tenir compte du fait que la carte s'autorise à changer la position d'une porte si elle est sur la face par laquelle on arrive dans le noeud). Sans ça, c'est l'effet labyrinthe garanti.

Et oui, j'ai finalement pris un carnet à spirale pour y prendre note des choses sortant un peu de l'ordinaire (en particulier dans les salles mauves) y compris par où on y parvenait pour pouvoir y retourner facilement.
J'aurais probablement dû faire pareil avec les "portes dérobées" (marquées d'un double-carré) qui ne marchent que dans un sens la première fois mais qui offrent des raccourcis en cas de re-parcours.

Monday, September 21, 2015

L'avis de Zim: définir l'animation

Deuxième point du feedback de Zim:

Mon conseil serait de mieux faire comprendre par l'animation du perso sa panoplie de mouvement, développer les actions d'attraper et sauter, supprimer celle de frapper (peut-être courir), et de faire en sorte que tout cela soit impeccable (actions qui sortent de manière fiable, pas de bugs de collision, etc.). Un jeu de plateforme est excellent lorsque c'est un plaisir intuitif et immédiat de manier son personnage, il faut vraiment insister dans ce sens.
- attraper en l'air est possible vers le bas (je l'avais compris avec les nuages), mais pas vers l'avant, même si on n'a pas encore ramassé le power-up
- attraper pourrait être boosté en l'action rendant multi-directionnelle (si vers le bas et les côtés, pourquoi pas vers le haut) et également peut-être en augmentant sa portée au moins un peu

Avec ces mains-en-plasticine, c'est vrai que Bilou ne montre pas particulièrement fort ce qui se passe lorsqu'on essaie d'attraper quelque-chose. En relisant les propositions de Zim, je me rends compte aussi qu'il peut y avoir confusion entre ramasser et s'aggripper, qui sont en réalité deux actions distinctes mais proches au niveau du gameplay. Un "air grab" permet de faire l'un ou l'autre selon l'objet considéré. Un "ground grab" ne fait
Ramasser, premier essai. Trop lent.
Ramasser, version actuelle. colle bien au hit-boxes de l'action.
Attraper en l'air, qui se concentre sur la direction "vers le bas"
Pour le "gros poing", la main de Bilou enfle et ne laisse aucun doute sur l'interprétation du mouvement, mais ici, la main utilisée pour "attraper / ramasser" pourrait aussi bien mettre un uppercut. Ma première réaction est "oui, mais le gros poing est un pouvoir spécial. Il faut que Bilou sans ses pouvoir ait l'air de ne pouvoir compter que sur son astuce et son courage".

What if Zim@alexzone and I do not have the same understanding of a "multi-directional" action. I thought so far that 'AIRGRAB' is multi-directional in School Rush, because when you press B mid-air, there are 3 directions checked for something to grab: in front of you, below you, and behind you. Those three areas are supported by the places where Bilou's hand move during the attempt to grab things. But multi-directional could also mean "you pick which direction the action takes place using your d-pad".

This is clearly not the case for air-grab. It would make sense for a wider-range grab, which Zim is advocating for: the animation could take place in a limited area (good for reading), and still reaching further pixels. You could need to do "UP/RIGHT + B" to reach some sponge bop and "DOWN + B" for some others, though.. and time your button press accurately to grab something. In comparison, current GRAB is a proximity action: move your player next to the item to grab and hit when you're close. That's all I require.

Enforcing the direction with the keypad also allows to draw a larger hand, that better conveys the idea that we're grabbing things. Ideally, we could understand what the move does by watching it in the void. Like you check kick and punch buttons on a beat-em-all before you follow the "GO->" arrow for some action. 

A mieux y réfléchir rien n'interdit que Bilou ait déjà le pouvoir de soulever des choses plus lourdes dans ce jeu-ci, qu'il le conserve de façon permanente et que ça se traduise par une main qui devient plus grande quand il veut attraper les choses. Des doigts visibles, légèrement écartés, pour maximiser les chances d'avoir ce qu'on veut... c'est sans doute ça qui exprime le mieux l'action, comme on l'aurait fait dans une BD.

Voyons le côté "multi-directionnel", maintenant. J'ai tendance à penser que le "grab" est multi-directionnel parce que quand je presse sur B, Bilou attrape ce qui est devant lui, sous lui ou au même endroit que lui. Mais ça fait une animation où il est difficile de voir la main. Multi-directionnel pourrait aussi vouloir dire "dans n'importe laquelle des directions choisie" (avec le D-PAD).

Ça représente malgré tout une modification assez importante. Je pense que je vais dans un premier temps essayer que Bilou puisse s'accrocher par-dessous une éponge (y compris lorsqu'il la touche par le côté) avant de commencer à faire ce genre de changement.

Sunday, July 05, 2015

Design Stories by Juicy Beast

Lately, I've been reading through the posts relating the design of "Toto Temple" by Juicy Beast studios. I especially focused on "Designing a “playable” UI that secretly teaches how to play" and "evolution through iteration" posts, in which the author meets my own "no tuto" guideline.

In their game, going without a tutorial phase means that anyone can easily join the game (a 4-player catch-the-flag) without having to be taught the rules first. Because they're doing play-testing at conventions, it also means that people can play together without requiring a "game owner" to explain them how to play.


Ç'aurait pu être la couverture de la "gazette de Bilou 2015" si on était pas en pleine canicule. Je n'ai plus de google reader, mais mes contacts twitter m'apportent de temps en temps une chouette lecture malgré tout. Merci à l'équipe de Juicy Beast qui a pris le temps de quelques articles sur la conception et l'évolution de leur jeu "capture-de-drapeau" au thème sympathique, réalisé dans Unity tant bien que mal et qui rejoint mes propres tentatives de design sur l'organisation des menus.

Ici aussi, les actions du menu sont en réalités commandées par le personnage. Pas de curseur abstrait ou de cases à cocher. Mais les développeurs de Juicy Beast vont un cran plus loin en s'assurant que le joueur aura été confronté aux mécaniques principales de leur jeu avant de se lancer dans l'arène.

Coming this summer on OUYA, Xbox 360, WiiU, PS4 and Steam.
Another interesting similarity with my own games so far is that they dropped abstract menus-with-cursor in favour of a game interface where everything (selecting your level, teaming up, etc.) is manipulated with the game's own controls. Stickers on those screen will tell you to use X+<=> to hit the next/prev level buttons, for instance. Meanwhile, you can hop and dash just like what you'll do in-game.
 
PS: I've also read through the more "technical" posts on platforming. They were essentially working around oddities of the collision engine of Unity and detailing how the "raw", analogous input of the directional mushroom are converted into impulses through pre-processing rules such as "if the mushroom gets at rest while we're approaching a cliff, let's step on the breaks and avoid falling". ...
That sheds (yet) another light on those thousands of lines of code just to control the behaviour of Rayman (Origins).

Thanks for sharing, Alex. ^_^

Tuesday, June 30, 2015

Reading: Ken Kutagari.

Avec le recul, ça pourrait être mon "life-changing book: 4/3". Une lecture très enrichissante qui dépasse la simple annecdote de playhistoire pour nous donner une idée assez précise des enjeux de la conception d'un équippement électronique de pointe. Complexité d'approvisionnements, choix marketting, ... comment le fait d'utiliser moins de robots pour placer les puces sur la carte-mère est la meilleure option pour baisser les coûts (et enterrer la Saturn de SEGA). De quoi quitter un moment l'artisanat du homebrew pour découvrir "le vrai monde" de la production électronique de masse, parce qu'en électronique, si on a pas la masse, on y est.

Another Great Read at Pix'n'Love editions, but this time, you too, English-readers, can enjoy it, and not only the French-Folks. Because Reiji Asukara wrote it in English under the title "Revolutionaries at Sony", published by Mac-GrawHill, obviously. It goes well beyond telling the tale of Nintendo and Sony teaming up, then splitting, then fighting to death. It gives you a complete overview of how a technical tour de force has been converted into a successful mass-market product. Retrospectively, I realise that everytime I have to understand why some idea to hack around some existing hardware to extend functionalities cannot be integrated into a finished product, I end up mapping the situation to one of the key decisions of Ken Kutagari in the PlayStation design story.

Le côté technique est malgré tout un peu léger. J'aurais aimé voir en vis-à-vis le schéma général de la PS1, voire l'organigramme de son CPU/GPU basé sur le System G... Pour ça, il me faudra faire l'étude du "psx-tek" comme j'ai étudié les DS-tek et GBA-tek, encore qu'il est probable que je laisse ça à mon ancien étudiant qui avait réussi à s'acheter une "Net Yaroze" d'occasion... Peut-être que Ce que vous avez toujours voulu savoir sur la Playstation (par Joshua Walker)
.txt donnerait quelques raccourcis, celà dit.

I would have loved the book to go a little bit more into the technical details, though. It is nice to have this discourse over the hardware evolving towards lower manufacturing costs and how it was decisive in the race against the Sega Saturn. It would have been much better to show together the motherboard layouts over the evolution. The book kind of assume that you've teared down a PSX already or that you don't want to depict the chips in your mind when it tells about it.

There's very little being said about the actual engineering of the GPU, the component that made the PSX so unique. Because it is architectured along the (now classic) model of a command FIFO and hiding the video memory from the CPU altogether, even showing the register map do not reveal a single detail about how things are structured to make the rendition of 360,000 polygons per frame possible for the first time except two words: massively parallel. There's not a single example of what "the framework" that PSX developers had to use. For the first time, afaik, a gaming console was made using a CPU that had a "kernel mode" and a "user mode", unlike microcomputers-derived CPUs in NES-SMS-Genesis-SNES. I'm left guessing the kind of functions / construction blocks might be in there, but it shed light about misunderstandings concerning the "BIOS" of the playstation line of products: magazines may have messed up BIOS, kernel and framework countless times.


Je comprends néanmoins qu'une grande partie de ce qui était présenté à l'époque comme le "BIOS" de la PS2 (pour faire bouger les cheveux) était sans doute plutôt un composant du "framework", cet ensemble de fonctions toujours grandissant mis à la disposition des développeurs de jeu pour qu'il puissent se concentrer sur leur développement. Pas uniquement des bouts de code présent sur tous les systèmes ni même des bouts de code destinés à être embarqués sur CD, mais aussi les outils de développement qui vont avec ... peut-être p.ex. un encodeur vidéo pour 3DSmax qui utiliseraient au mieux le décodeur vidéo hardware présent sur la console.

NB: je n'ai jamais eu de Playstation ni cherché à en avoir une. Aucun des jeux que mon frangin me montrera sur la sienne (après Y2K) ne me convaincront. Seul m'aura plus Rayman, que j'ai eu en version PC (, avec un pad plus capricieux mais mieux adapté à mon historique de jeu.

Monday, June 29, 2015

book stack ...

A few days after releasing the playable version of Bilou : School Rush, I started encountering ideas for one ultimate level, one where you climb up to the top, rather than running horizontally. Something much more along the lines of the "original" deep-ink-pit although not expecting any specific game physics.
What was nice with that was that it turned the otherwise purpose-less "school rush" into something backed by a story (simple, I admit, but a story nonetheless). It opened nice opportunities to have hand-drawn pictures as support for a "game ending / credit" moment, too... and last but not least I found a nice way to ensure that this last level is available only in "amiga" or "arcade" mode, but not in "casual" (which is meant for training and teasing, as you remember).

A sketching pause was more than welcome, and now I have some concept art and some tiki-books for the background to change the atmosphere of the ultimate level. I'm under the process of converting that to pixel art. With a size of over 800 individual tiles, it is clearly the biggest piece i've addressed with my sprite editor. I had to chunk it into 64-pixels slices, resisting the temptation to redesign the UI of the editor, but I'll allow myself to add a "live mockup construction mode" before I'm done.
I first opted for 32-indexed colours in Gimp, thinking that I'd paint over the lines, but the shapes are too far from pixel-friendly angles, and "cleaning up", adding highlihgts could turn out to be my best approach. Yet, I'm already raging against my own self:

  • clicking '+' on the quick palette widget insert the selected colors, shifting existing colors to make some room, collapsing places they come from ... but I couldn't find that documented anywhere;
  • '!' (replace current color by its closest match) acting only on the grid is too restrictive for such pieces
  • '!' and '?' (search for color closest match and occurence of the color in the tileset) are disabled after we load something on the grid. I have to shift the pixels around before the buttons work again.
  • losing the content of the 32x32 grid when entering palette screen or touching one 16x16 block on the tilesheet should never occur again.
PS: please excuse french/english hopping again: it's another i'm-sick-and-blogging week.

Wednesday, June 24, 2015

Pac In Time sur GameBoy

Dans la liste "Prêtés à Pype" de mon frère, il y a depuis un moment "Pac In Time", comprenez pour les anciens possesseurs de machine Commodore "Fury of the Furries moddé par Namco". Je me refais un petit essai ce soir avant d'aller dormir. Pour la micro-machine de nintendo, l'animation est fluide, les graphismes parfaitement lisibles (GameBoy advance micro, avec un perso rouge sur décor gris) le son de bonne qualité. La physique des personnages est parfaitement rendue. En fait, il suffirait presque de faire un rom hack pour ré-ébouriffer la boule de poile vedette pour retrouver le "bon vieux jeu de Kalisto Atreïd Concept" (sur une licence qui n'était pas à eux :P)

I'm playing Pac in Time, borrowed from my brother. Yes, that's it, a game boy color cover of my puzzle-platformer reference game: Fury of the Furries, but de-vamped with a pacman character. Animation is smooth, graphics are readable and sound quality is quite great. The gameplay and physics are perfectly aligned with my memories of the Amiga/PC game. I cannot tell the tale of how an almost-original concept turned recycled into a franchise, and that's typically the kind of things that make me sad for people who try and be creative.

Instead, allow me to point out two major drawbacks of the conversion. First, with sound design. It is not uncommon to die a lot in Fury of the Furries and even when you don't, levels tend to be fairly short, at least at the start of the game. In this context, the 5-second pacman jingle repeated everytime you enter the level tend to break game immersion, considering that Moby's soundtracks were long and varied enough so that they could loop and keep you entertained. Even worse, pressing "pause" mutes the song altogether.

Comment "Fury of the Furries" a-t'il pu se faire dévisager en "Pac In Time" ? J'aimerais beaucoup avoir le fin mot de l'histoire, bien sûr. Disons que comme pièce à conviction, j'aimerais que la cour prenne connaissance de la spritesheet de la zone du chateau. Le jeu est plein de clins d'oeil du genre "pop culture", mais il se peut que les éditeurs aient estimé qu'on était trop près d'un plagiat des personnages de Pacman pour oser une sortie sur console ... voire que Namco, irrité des fantaisies sur micro aient exigé réparation avec une "vraie licence" où ils recevraient une part des ventes du jeu.

Deux points noirs, cependant. Niveau sound design, d'abord, avec le jingle de pacman qui prend 5 secondes avant le début de la musique, et qui casse l'immersion là où FoF d'origine nous gardait le thème du niveau en boucle. Idem quand on met la pause qui nous plaque un gros silence radio...

Niveau game design ensuite. Qui dit Fury dit "changer de pouvoir régulièrement". Dans la version PC, ça s'accompagne d'un petit son sympa lorsqu'on maintient le pad vers le bas alors que notre perso est au sol. on sélectionne son pouvoir avec gauche/droite, on valide avec le bouton de pouvoir. Nickel. Sur gameboy, tout ça se fait par l'intermédiaire de l'écran de pause, forçant des coupures régulières dans le gameplay. Ça casse l'ambiance... dommage.


http://hol.abime.net/635/gamemap

Enfin, il y a la taille de l'écran. Dès que les niveaux deviennent un rien exigeant, les panneaux "attention danger" de FoF ne suffisent plus. On doit faire des sauts sans pouvoir voir la fin des pics qu'on cherche à éviter ... et ça c'est quand on peut voir les pics au moment de commencer à sauter. L'écran de la gameboy fait la moitié de la largeur du 320x200 d'un Amiga. Ça tue le plaisir de retrouver le jeu...

The second drawback comes with game design. Playing Fury of the Furries implies that you're frequently switching between characters to pick the special power you need to progress (block-chomping, fireball-throwing, ninja-roping or swimming). In the PC version, you'd do that without interrupting the game by pressing *down* while your character stands on ground and then switch character with left/right. Here, it happens in the "pause" screen. You lose contact with the world (a blank screen and muted soundtrack), and the ambiance is broken every time you use what defines the game the most.

Finally, compared to the original game, most hitboxes are very rough compared to the original, and several baddies feel unfairly dangerous compared to their look. Yet, the game is made much more accessible by the fact that *every* level now has a corresponding password, where the floppy version only granted you a save state every 6 levels


edit: deux cachets d'aspirine plus tard, je suis au niveau 2-6. Les maps de HOL me permettent d'aller voir ce que ni l'écran ni ma mémoire ne peut me dire. Certains ennemis ont été supprimés, mais le système de collision "au pixel près" a été remplacé par des hitbox grossières (sans doute faute de puissance de traitement sur le Z80 du gameboy), et il vaut mieux résister à la tentation de se faufiler entre les ennemis. Les limites de temps sont beaucoup plus serrées que dans la version originale, mais le système de mots de passe niveau par niveau permet de revenir à la charge (une sauvegarde automatique tous les 6 niveaux avec assez peu de vies dans l'original). Les niveaux bonus auraient-ils complètement disparu ?

Tuesday, June 23, 2015

Twinbee Rainbow Bell: la face cachée.

Vous vous souvenez de "Twinbee: Rainbow Adventures" sur SNES ? Moi oui. C'est toujours un de mes "platformers" préférés. Grâce à BananaMaster et à l'émission "SpeedGame" de Nesblog, je viens de découvrir une face de ce jeu que j'ignorais complètement: la version japonaise du jeu contenait une dimension d'exploration qui m'étais totalement inconnue.

I've been surprised to hear Banana Master presenting Twinbee: Rainbow Bell Adventure as an obscure, unknown platformer. After all, it's among my favourite titles on Super NES. I've been playing it, watching it, fan-covering it and playing it again ...But I was even more surprised to learn that the "European" version did not have the same overall game design as the Japanese version. Or maybe Pascal "Kameah"'s K7 featured an import of the Japanese version ?

Voyez plutôt: la map en version Européenne. Une sortie par niveau, une sorte de grosse spirale du début à la fin. A chaque niveau, il n'y aura qu'une seule sortie, bien sûr.

European game is linear. You find the exit of each level and you unlock the next one. The fact that you're moving on a map is purely cosmetic. The Japanese version, instead, has a kind of meta-game where you explore levels in a route you plan yourself. I'm not sure how the game decides that you may enter final levels, though. Personally, I prefer the original "Japanese" game design, which is closer to the kind of world map that my brother used to draw for our own "Bilou's adventure".

La version Japonaise, en revanche, aura une map avec plusieurs sorties dans un nombre important de niveaux, avec une dimension d'exploration "mais par où est-ce que je dois sortir d'ici pour continuer à progresser?" ...
Ce système n'est pas sans rappeler le design des niveaux de notre propre "Bilou's Adventure", même si mon frère avait plutôt en tête un système de "morceau de map" à récolter ici et là dans le niveau avant de se diriger vers une sortie unique plutôt que d'avoir plusieurs portes de sorties comme dans NSMB ou DK:Tropical Freeze.

Wednesday, June 17, 2015

Cave Story sur (3)DS.

En 2004, après 5 ans de développement en solo, si on en croit la légende, Pixel offrait au Web Cave Story, ce que je considère personnellement comme le point de départ du jeu indé moderne. Un retour au sources graphiques et de gameplay à quelque-chose à cheval entre NES et SuperNES. Noël dernier, Je reçois de mon frère une surprise épatante: une version boîte de Cave Story 3D!

Built by a single person in 5 years, looking retro but with stunning gameplay and intriguing story revealed as you play, it turned famous and praised by the Web. I'm tempted to consider it the root of the current indie game fashion. It was surprising succesful for a 2D game 2 years before New Super Mario Bros. It is the game that made me realize that I could build Bilou's Adventure the way we dreamt it back in '94 and the look wouldn't matter if it was done right. Yes, I'm talking about Cave Story.

Somewhat 7 years later, Cave Story -- initially free on Windows -- is available on most video game consoles as official games. Sometimes as downloadable game, and sometimes as a real cartridge, like with the 3DS remake I received this Christmas. Surprised it took me so long to blog about it ?

Il a été assez difficile de m'y mettre: comparé à un Super Mario, Cave Story est un jeu exigeant de la patience, et vu mon niveau, il faut réessayer et encore réessayer. L'inertie forte du personnage combinée au pad-champignon mou et aux plate-formes miniatures d'un bloc de large mettent ma dextérité à mal. Du coup, je peux difficilement me permettre des parties de 10-15 minutes à côté de ma fille. Elle va me mettre la pression parce que j'échoue et au final, le jeu aura déterioré l'état de mes nerfs au lieu de l'améliorer. Inacceptable pour un Super Papa Bros.

Nowadays, when I play some game, it's usually as a way to entertain my kids that's also fun and relaxing for me. Something between reading a book (which I do too, even excerpts of D. Eddings, J.K. Rowling or J.RR. Tolkien) and letting them watch a cartoon... That works well with Rayman (because I know the game) or Mario (because it's designed not to trap you), but it was not working with Cave Story 3D. So I'm playing the game only in the evening, and not progressing as fast as usual.


Côté graphisme, on sent bien que le studio Nicalis n'a pas lésiné lors du portage, mais on perd malheureusement beaucoup en lisibilité de la situation. Le gameplay -- autrefois précis et nerveux -- devient flou et approximatif.

The visuals are appealing for sure. Revamped to the bones so that it works well with the stereoscopic screen although the level maps were completely flat. Not much room to move the player between front and back planes. So instead, the depth is used so that you know which part of the 3D world can be walked on, and which part is just decorative. And this is where we lost most of the requirements for fast-paced action.

Comparé à l'original, plus de séparation des plans sur base des couleurs. La seule chose qui peut véritablement servir d'indice, c'est la profondeur. Le hic, c'est qu'en mode 3D, la lecture est encore un peu plus complexe avec les effets de reflet et la nécessité de régler avec précision l'angle de vue.


It is quite hard to focus on encounters with monsters when you have to guess which platform you can land on. It gets even tighter when some sand ground hides monsters and you barely distinguish the sand from the regular ground.

Au passage, il y a moyen de choisir entre nouveaux modèles 3D (normal mode?) et stretching pathétique des sprites d'origine sur des textures à plat (story mode), ce qui ne donne vraiment pas de bons résultats lorsque le moteur décide de zoomer sur les personnages dans certains couloirs.

J'apprécie par contre le respect apporté à la bande son originale.

Definitely, for one expecting to play "the real cave story with real buttons on the go", Cave Story 3DS will be disappointing. The musics have been kept quite original. I'm not 100% convinced that the "classic" mode where you play with scaled sprites over the 3D world works much better than playing with the 3D models. In some levels, it gives a nice "original" feeling, but in other levels, where the camera zoom in to keep some secrets away, artifacts of pixel-art-to-texture conversion ruin the experience.

Autorisez moi une petite soirée de nostalgie sur le projet de Ravenworks qui aura dû s'effacer au moment du premier portage de Nicalis sur Wii (iirc).


Sunday, June 07, 2015

School Rush : Casual / Amiga / Arcade

At last, here's an updated version of School Rush starring Bilou in the School Zone.

https://sourceforge.net/projects/dsgametools/files/latest/download?source=navbarYour goal is to clear 4 levels of fast-paced jump-and-run, using either your skills or the natives of the School Zone to beat the challenges you'll face.


Voici la première version complète de mon 2eme jeu DS présentant Bilou : School Rush. Vous avez 4 parkours à couvrir dans une école en folie, avec de l'encre qui monte, qui monte ... et qui vous met la pression. Ressortez vos talents de platformeurs ou utilisez les "habitants" de cette école à votre avantage.

Controls

  • (A) button makes you  use your feet (jump/bounce/float) and (B) button makes you use your hands (grab, throw, punch). 
  • The Punch Power-up allows you to stun most ennemies, including the pendats, without having to carry dumbladors around. When you got it, you'll need to use "DOWN + B" to pick up objects. 
  • The Float Power-up allow you to defy gravity. Press (A) twice mid-air quickly to trigger it and then hold A to float to the next location.
  •  Up/Down let you look at what's around you.
  • R shoulder makes you run. You can also use Kirby's double-tap on a direction button to run if you prefer.


Select your destiny
The "Casual" mode is an alternative to tutorials. You have unlimited time to reach the end of each level, allowing you to experiment with mechanics of the game. Since the ink does not rise, you'll find safety nets in many places.
Le mode facile (casual) vous propose une prise en main du jeu, une découverte des mécaniques. L'encre ne bouge pas, vous aurez bien assez de possibilité pour vous tirer d'affaire en cas de faux-pas.

The "Amiga" mode is a bit more demanding. Ink raises slowly, pushing you forward. Some safety path are now sunk and unavailable. Missing a jump is more likely to kill you, but the "obvious" path can still be walked down to the end of the level. (you're welcome to run to get some headroom, but that's not even required).
Les choses deviennent plus sérieuses avec le mode "Amiga". Même si les niveaux sont toujours passables sans courir, un petit sprint ici et là sera sans doute le bienvenu. Avec l'encre qui monte vos faux-pas risquent d'être punis plus durement. Mais ce n'est pas ça qui vous arrêtera, parce que vous savez maintenant où se trouve le prochain power-up ;)

And then, you've got the "arcade" mode. You'll have to be twice as fast as in the "amiga" mode. You'll need to master game mechanics and plan your path ahead so that you can make it through despite the fact that some platforms have now disappeared in the ink.
Enfin, le mode "Arcade". Les choses sérieuses. Il faudra presque un entrainement de speedrunner pour boucler les 4 niveaux en 3 vies...

Cannot find data files
Homebrew is a bit different from official DS development. One major difference is that our games are files on a media card (microSD). If you play on emulator and get stuck with a black screen on the top and an error log like this on the bottom, you're missing something like "--gbaslot-rom=self". The keyword for that configuration is "DLDI". See below.

Playing on the Real Thing
You need a DS and a linker device that can play homebrew files. With most linkers sold after 2007 (that support DLDI), all you'll have to do is drop the .nds file somewhere on your media card and launch it as any game.

With older linkers, you need to patch the .nds file manually using the driver compatible with your hardware. If your hardware need patching and you haven't patched, you'll see the bottom screen displaying only purple background with the words "NODA!" written in the middle. (and other boot info around).


Si vous n'avez pas de DS prête pour les jeux homebrew, le mieux est d'utiliser l'émulateur DesmuMe, et d'aller dans Emulation/GBA slot pour indiquer à l'émulateur d'utiliser le fichier .nds à la fois comme ROM nds et comme contenu de la cartouche supplémentaire où le jeu ira chercher les musiques et les images.

Playing on an emulator
You're suggested to use desmume and follow these instructions to set the "GBA slot image" as being the .nds file itself. Other emulators (notably iDeaS, patch as R4TF) will require manual DLDI patching (see above). You'll get a better experience with a SNES-like gamepad.

edit: newer builds of desmume have the option for DLDI in Config | gba slot... oh well.

Thursday, May 28, 2015

Pendat turned dizzy (done)

Got it working ^_^ Pendats turn dizzy when they're jammed at some place they don't belong, and while they dizzy-walk backwards, they either fall to their doom or return to a place where they can safely walk.
Now I need to ensure they react to ink pits and don't try to walk there.


Nous y voilà. Forcez un crayon-soldat à quitter son chemin de ronde et le mode "titubant" lui permettra d'y retourner (ou de tomber encore plus bas). Le dernier hic, c'est le comportement ridicule lorsque le crayon atterit dans l'encre en bas du niveau. Je voudrais qu'il puisse alors s'y enfoncer et disparaître (comme les taille-crayons) mais sans pour autant sombrer dans l'encre qui monte à moins d'en avoir jusqu'au yeux.

remaining todo items:

  • [done] ink droplets no longer stopped by spongebop ? why? wrong flags for collision test
  • [script] Pendats drown in ink
  • [done] Bilou can grab with DOWN+HAND even when facing left
  • [code] Bilou don't get that deep in the ink, please.
  • [done] Fix carried bladors
  • [done] Show Bilou's hands when carrying SpongeBop
  • [code] Intuitive difficulty selection
  • [code/gfx/script] Some sort of scoring

Monday, May 25, 2015

Pendats get dizzy

Première étape vers des crayons "plus autonomes": le compteur de désorientation est implémenté. N'ayant pas encore transféré l'animation "titube", j'ai repris celle où le crayon est éjecté (quand il cogne un mur, par exemple). Le résultat n'est vraiment pas celui attendu :-/

I wrote some gobscript to enforce a "dizziness counter" on pendats. They should be able to walk for 2 blocks after they turned back if they don't want to end up dizzy. But since I haven't transferred the animation itself to my PC, I used "stunned bounce" as a placeholder. The result is some very emergent behaviour, possibly due to some incoherence in body-boxes of the pendat.

Sunday, May 24, 2015

The Ultimate Scrolling Analysis.

Huge thanks to Itay Keren for having written his essay that creates a clear nomenclature of camera techniques in (mostly) platformer games, ranging from Pac-land's position locking to Mario's platform snapping to linear interpolation and beyond.

Grâce au développeurs de Frogatto, j'ai pu découvrir l'existence d'un excellent article sur le scrolling des jeux de plate-forme publié il y a quelques jours sur Gamasutra. Eh oui. C'est ça, l'après Google Reader. Je ne vais pas repasser en revue toutes les techniques qu'il présente, du premier platformer à nos jours -- pour ça, il y a l'article d'origine, mais j'en profite pour mettre à jours mes propres références.

Lerp in action. (C) Itay Keren.
Back then, when I started researching how to move Bilou's camera, my colleague Cyril suggested "an elastic string that would draw back the camera to Bilou's position". One close match is Donkey Kong Country's linear interpolation technique. It still has some "wobbly" effect but much less nausea-inducing than when you lock to the player's position. But this is far from being the only camera mechanic in DK games. Anyone who played the game has noted that some areas of the level are apparently "scripted" with cameras behaviour and that entering some hitbox may suddenly allow the camera to move past some artificial barrier, revealing a hidden area. More subtly, this can also be used to enforce "bottom-locking" in some part of the level, or change the horizontal tracking to the type of gameplay (rush, explore, climb...) of a specific area.

Commençons par une technique que j'avais laissé sur le côté quand elle m'avait été proposée par Cyril -- une "sorte d'élastique qui ramènerait la caméra vers Bilou" -- que j'avais tenté d'implémenter avec le code de poursuite des BerryBats. J'aurais mieux fait de procéder comme dans Donkey Kong Country avec une "interpolation" linéaire qui déplace la caméra d'autant plus vite qu'elle se trouve loin de son point de destination.

When I tried myself to analyze the horizontal scrolling of Super Mario Bros, I thought that there was two 'push-the-screen' positions, depending of the speed at which Mario moves. The reality is a bit different.
two triggers in SMB. (C) Itay Keren.
There is indeed two trigger positions, one -- walking barrier -- that forbids Mario from entering the rightmost part of the screen, and a second that smooths camera movement when Mario starts running. The "early-scroll" trigger doesn't try to keep Mario at its left, though, so he eventually "escapes" to the walking barrier.


Passons ensuite à SMB1, avec son interdiction de revenir en arrière. Ici pas de soucis pour faire demi-tour, mais Miyamoto a quand même pensé à nos jeunes estomacs et a ajouté un démarreur de caméra deux blocs avant la position 'naturelle' de Mario. On y gagne pas pour autant en visibilité pendant la course comme je le pensais au départ, mais on évite un départ trop brusque de la caméra si on revient en courant.

This is what smooth out the movement of the camera by reducing the instan(aus)eous acceleration of the image. I'd be tempted to say screen will move at walking speed until the real barrier is hit. I guess with more CPU cycles and memory, miyamoto's team could have even tried to linearly over time in that region rather than having two-steps, but I doubt most of us would notice the difference, so it's not bad to keep it simple. But no, you don't really have more headroom when running in SMB.

Finally, Itay's model of Super Mario World's camera nicely complement the video document I already found (and not yet re-blogged so far). The camera here clearly has multiple mode, that Shaun categorizes as "platform-snap", "bottom-locked" or "free-moving". I tried and mapped these as an UML state machine, but it lacks one component: the fact that in some levels/parts of the level, some transitions are forbidden -- e.g. in some levels, you will not enter platform-snap and stay bottom-locked.

Les différents mode de suivi vertical de Super Mario World, j'avais déjà étudié par l'entremise de Shaun. Le code est assez sophistiqué pour mériter une machine d'état à lui tout seul. En plus de ça, certaines transitions sont interdites dans certains (morceaux de) niveaux, forçant par exemple la caméra à rester au niveau du sol à moins que Mario ne s'envole dans les niveaux plats. 


What Itay adds to that, is a clear illustration that the camera in SMW has a direction state of its own (moving leftwards or moving rightwards) distinct from Mario's movement. In each direction, there is one barrier that will make you push the screen if you try to go past it, and a trigger that will switch to the other mode if you touch it. When the camera is "heading right", the two yellow lines are active -- Mario is confined within 2 blocks. As soon you hit the dashed line while turning back, the camera switches to "cyan mode", and then you have the screen adapting as quickly as the camera's max speed tolerates because you're about 64 pixels away from the push barrier for that direction (still picture shows a point in time where such catch-back occurs).

L'analyse de Itay est plus précise en ce qui concerne le scrolling horizontale. Il illustre parfaitement le mécanisme des deux "poussoirs horizontaux" décentrés (un pour chaque direction de caméra) et les déclencheurs qui forcent la caméra à changer de direction quand Mario a fait demi-tour de plus de 2 blocs. Il semblerait qu'on ait ici aussi utilisé une "interpolation linéaire" pour adoucir le mouvement de la caméra quand elle atteint à nouveau la position de Mario.

With this scheme, the player always have at least 1/3rd of the screen in the direction he face and half-a-screen-plus-one-block in most of the cases. That works quite well with exploration games like Commander Keen, imho.


If you're doing game design in some way, I strongly recommend you to spend some of your "research points" reading Scroll back : the Theory and Practice of Cameras in Side Scrollers.


Tuesday, May 19, 2015

Life-changing books [3/3]

1998. Bilou devient la cerise sur le gateau du projet "Ultimate Game Maker". Pour le réaliser, j'ai attaqué très sérieusement la lecture des documents (et les sources) de TRAN sur le mode protégé du 80386, les moyens de passer en mode "unreal" (code 16 bits avec données 32 bits) et ce genre de choses en ligne droite de la démoscène PC.

Many game development studios faced a hard time switching to 2D to 3D at the end of the 90's. Things were quite troublesome for my little self too. I had at last access to massive knowledge about VESA, sound cards and newer tools such as DJGPP compiler and early mikmod player source code ... but it was clear 320x200 MS-DOS games were gone for good. My quest for an improved Game-Maker software turned into a quest for a better operating system to run both game engines and game development tools. Filesystems that would make sharing of samples across a large bank of tracked songs trivial, etc. The cornerstone book for that shift is Andrew Tanenbaum's book on operating system, found somewhere in the university's library, and it will stay at my home, studied dailynightly as the Clicker 32 operating system project shaped up.

Je tombe ensuite sur un bouquin à la bibliothèque universitaire qui présente les structures de système d'exploitations avec environ 2 ans d'avance sur la matière dans mon cursus. Pendant à peu près 8 mois, le bouquin sera emprunté presqu'en permanence, et je remplis des carnets entiers de notes de lectures, d'idées pour aller au-delà des techniques habituelles avec l'idée de construire un système idéal où les politiques de gestion de mémoire et de temps CPU peuvent être échangées en temps réel (comprenez, lors du démarrage ou de l'arrêt de Bilou pour revenir au game maker).

Je vais ensuite tomber sur une description assez détaillées de Linux pour me permettre de définir les objectifs avec assez de précision, et identifier les aspects originaux de mon propre design. Un grand nombre des idées de base visent à donner une sensation de programmation Amiga sur une plate-forme multi-threads x86, avec les pilotes de périphériques vus comme des sortes de co-processeurs. Cette quête va m'occuper l'esprit jusqu'à mon travail de fin d'études et au-delà.

A second book, detailing the internals of the Linux system further refined what I did not wanted to have. Like a monolithic system, purely based on function calls. I wanted to give the programmer in the Clicker operating system the feeling to work on a virtual Amiga-like platform, with programmable co-processors for virtual memory, sound mixing and window compositing tasks, where you could hot-swap the process scheduler.

All this started 100% assembly, but that project taught me to use the C language for what it is and to avoid assembly whenever possible. The reason was you are too much bound to what you write. Do you realize there's a mistake in your algorithm ? you'll be to go through registers allocation planning and pipeline optimization once again.


Le projet Clicker sera aussi celui qui me fera lâcher l'assembleur pour chercher à comprendre le véritable fonctionnement du langage C grâce au bouquin de Kernighan & Ritchie. Les algorithmes utilisés pour la gestion de la mémoire deviennent tout simplement trop sophistiqués pour rester écrits en assembleur. Corriger une erreur de conception dans un code de recherche "best fit avec back-tracking" revient à reprendre le design d'une page blanche, re-réfléchir à l'affectation des registres et revoir tous les efforts destinés à assurer un comportement optimal sur le double pipeline du Pentium. C'est tout simplement intenable.