Author Topic: 2048 (with animations) !  (Read 16989 times)

0 Members and 4 Guests are viewing this topic.

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: 2048 (with animations) !
« Reply #15 on: April 14, 2014, 01:41:34 pm »
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. :P
-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. :P 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. :P

No, people say "Pardon My French" if they swore. As in, cuss.

Look it up. :P
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: 2048 (with animations) !
« Reply #16 on: April 14, 2014, 01:41:57 pm »
Hmm okay.
Oh lol OK. This is better though. Sorry Soru, but I had to post it. :P
« Last Edit: April 14, 2014, 01:44:47 pm by Streetwalrus »

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: 2048 (with animations) !
« Reply #17 on: April 14, 2014, 01:49:42 pm »
ok i'll correct all this bug tonight or tomorrow... i need some time !


anyway thanks for you suggestion :) i think that i go correcte the 1024 and 2048 graphique ! ^^


sorry for my english too :p




i don't remenber who have ask the questions but this game is very easy to programme ^^ but sorry i don"t post my source...
« Last Edit: April 14, 2014, 01:52:20 pm by nikitouzz »
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: 2048 (with animations) !
« Reply #18 on: April 14, 2014, 03:45:23 pm »
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 ?
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: 2048 (with animations) !
« Reply #19 on: April 14, 2014, 04:18:11 pm »
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. :P

And I might put that in my port...if I had one. :/
I STILL need help with the basic SLIDING! :mad:
Can someone please help? None of my implementations are working! :/
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: 2048 (with animations) !
« Reply #20 on: April 14, 2014, 04:39:51 pm »
Your French is better than mine. :P
Well I am French, so... :P

And I might put that in my port...if I had one. :/
I STILL need help with the basic SLIDING! :mad:
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 own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: 2048 (with animations) !
« Reply #21 on: April 14, 2014, 04:43:11 pm »
Your French is better than mine. :P
Well I am French, so... :P

And I might put that in my port...if I had one. :/
I STILL need help with the basic SLIDING! :mad:
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?

I swear, I am trying SO hard.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: 2048 (with animations) !
« Reply #22 on: April 14, 2014, 07:15:36 pm »
Area you using a tilemap? How do you store what your tiles are on? I used the first 16 bytes of L1 to store the blocks.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: 2048 (with animations) !
« Reply #23 on: April 14, 2014, 07:41:45 pm »
Area you using a tilemap? How do you store what your tiles are on? I used the first 16 bytes of L1 to store the blocks.
So do I. I store a 2 tile as 1, 4 as 2, 8 as 3, 16 as 4, etc.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: 2048 (with animations) !
« Reply #24 on: April 15, 2014, 09:33:59 am »
Same, and 0 is no block. The only problem is the animations aren't smooth like nikitouzz's version :/
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: 2048 (with animations) !
« Reply #25 on: April 15, 2014, 10:11:19 am »
Same, and 0 is no block. The only problem is the animations aren't smooth like nikitouzz's version :/
Well, help? :/

The first person to help me will have first access to the game prototypes and all other of my games afterwards.

(Except you, Hayleia. You got that privilege already. :P)
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: 2048 (with animations) !
« Reply #26 on: April 15, 2014, 01:42:57 pm »
pour faire court, j'ai codé que le deplacement vers le bas... ca evite d'en coder trois ! ;)


for short, I coded the displacement down ... it avoids to encode three! ;)
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: 2048 (with animations) !
« Reply #27 on: April 15, 2014, 04:08:39 pm »
Clearer explanation : He coded movement only one way and rotates the board to make the other moves.

C'est bien ça hein, tu tournes le plateau ? :P

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: 2048 (with animations) !
« Reply #28 on: April 16, 2014, 12:55:01 am »
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.

Well, help? :/
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.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: 2048 (with animations) !
« Reply #29 on: April 16, 2014, 09:56:10 am »
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.

Well, help? :/
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)... ^-^
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?