Bug report ! I had on the bottom row, in that order, 2, 8, 256, nothing, and when I pressed right, I had nothing, nothing, 2, 8 and the 256 was offboard. I don't remember what I had on the other rows though.
J'avais dans cet ordre là sur la dernière ligne, 2, 8, 256, rien, et quand j'ai appuyé sur droite j'ai obtenu rien, rien, 2, 8, et le 256 était à côté du plateau. Je ne me souviens plus de ce que j'avais sur les autres lignes par contre.
I'd say that you should just try to make something really stupid, not something geniusly optimized fast and small.. Like a If for each directionnal key and 4 times "the same" code. Then, you'll optimize that if you want. Let's take the left key as an example. What you do is go through your board from left to right, and move the tiles you encounter to the left if they can move. I'd suggest you actually have two boards, one being the board before the movement, and the other one being the board after the movement (and then you store the "after" in the "main"). Same for the right key, except that you go through your board from right to left this time, and you move your tiles to the right, obviously.
Having two boards...I never thought of that...that could help later, too, with animations (possibly)...
And I might put that in my port...if I had one. I STILL need help with the basic SLIDING! Can someone please help? None of my implementations are working!
Are you talking about animations or "just" detecting where a tile should go and whether it should merge with another one ?
I'm having trouble with the actual detection and sliding itself, not the animations. For some reason, all my slides either rotate the board or delete tiles (and don't actually merge, mind you). Help with a basic implementation?
Could you implement game saving ? Like, I quit the game then come back and I continue the previous game and don't have to start over ? __
Tu pourrais implémenter la sauvegarde ? Genre je quitte, je reviens et je continue ma partie au lieu d'en recommencer une ?
Your French is better than mine.
And I might put that in my port...if I had one. I STILL need help with the basic SLIDING! Can someone please help? None of my implementations are working!
There are some indeed : -La instead of le in the first paragraph. -Votre instead of ton, vos/tes, vous/tu, that's like thou instead of you. -Petite is better before suggestion than after, since it's more common that way. -Pas de tuiles se déplaceront => aucune tuile ne se déplacera. -Encore shouldn't be there. -Il n'y avait pas de glissière => il n'a a pas eu de glissement. -Suggestion finalE. A ton of French people make this mistake too. You don't have gender differences for objects though, that's why. -Les 0 et 8 graphiques => les graphiques du 0 et du 8. -ça ne semble pas naturel -ne ressemble pas AU -bon COMME il est -graphismes is better than graphiques (actually the meanings are way different, graphique = graph (yes, the math thing)).
That's about it. Gagné and Perdu mean Won and Lost.
And I got it now, pardon is a French word originally.
No, people say "Pardon My French" if they swore. As in, cuss.
Je voulais dire, vas-tu pour poster la code source?
Sérieusement, je suis coincé sur un mécanisme coulissant pour mon jeu de 2048, et je pourrais probablement utiliser le vôtre (j'ai besoin de votre permission d'abord, bien sûr ).
Aussi, je tiens à signaler un bug, et donner une suggestion petite.
Il est possible d'appuyer sur une touche de direction et pas de tuiles se déplaceront. Lorsque cela se produit, une nouvelle tuile encore peut apparaître. Cela ne devrait pas se produire, cependant; il n'y avait aucune glissière, et la tuile ne doit pas apparaître.
La suggestion final est pour vos graphiques sur les tuiles, en particulier les tuiles 1024 et 2048. Les 0 et 8 graphiques sur le tuile 2048 sont exactement les mêmes; il ne semble pas naturelle. En outre, le 4 qui est sur les tuiles 1024 et 2048, à mon avis, ne ressemble pas du nombre 4 par toute effort d'imagination.
Ne vous inquiétez pas, cependant; votre jeu de 2048 est le meilleur que j'ai vu! Ces deux suggestions, ainsi que le fait que je ne sais pas comment dire "Perdu!" et "Gagne!" en anglais, sont mes seuls problèmes. Prenez mes suggestions à la légère; votre jeu est bon car il est.
Excusez-moi si mon français est mauvais; si c'est le cas, je blâme Google Translate.
Spoiler For English Translation:
I meant, are you ever going to post the source code?
Seriously, I've been stuck on a sliding mechanism for my port of 2048, and I could probably use yours (granted I get your permission first, of course ).
Also, I want to report a bug, and give a small suggestion.
It is possible to press an arrow key while still having no tiles move. When this happens, a new tile may spawn. This shouldn't happen, however; no slide had happened, and so the tile should not yet spawn.
The last suggestion is for your tile graphics, specifically on the 1024 and 2048 tiles. The 0 and 8 graphics on the 2048 tile appear exactly the same; it looks unnatural. Also, the 4 on the 1024 and 2048 tiles, IMHO, doesn't look like a 4 by any stretch of the imagination.
Don't worry about it, though; your 2048 game is the best I've seen! Those two suggestions, as well as my not knowing how to say "Perdu!" and "Gagne!" in English, are my only problems. Take my suggestions with a grain of salt; your game is good as it is.
If there were translation errors, pardon my French (pun intended). I blame Google Translate.
I'll try the new version, but you should make a new screenshot showing its new features, since the one in your sig is outdated (although make sure the new one is small too)
First of all, I only added an Easter Egg; my 2.0 screenshot is pretty much how it looks now. Second of all, I'll change my sig and avatar screenie later. It's just that v1.10 is a petite implementation (I mean, 2KB vs 4KB? 2KB wins. ), and I still want IT in my sig, at least.