HOME WORLD FORUMS WIKI VIDEOS
9580 members and stacking!
     Welcome guest, please login or sign up

2 Pages V  1 2 >  
Reply to this topicStart new topic
> TeDiGe-2
PetitPrince
post Nov 11 2012, 11:24 PM
Post #1


Tetris Novice
Group Icon
Posts: 67
Joined: 28-June 09



Hi.

I made another Tetris visualizer.

Project page (Github) | Example | Editor

IPB Image

So, this is a complete rewrite of TeDiGe (actually, I did two, this is the second), because the first version was too slow, nobody used it and didn't offer as much as fumen. And this version still doesn't. It lacks collision & wallkick support, proper keyboard control and an UI that isn't confusing as hell (I'm bad at this).

What it *can* do, however, should hopefully at least raise some eyebrows. See the example.

I've implemented a frame-based animation system (press play on the third example to see it in all its glory). It uses a little bit too much CPU to my taste but it's still usable on my config (Lenovo X220t laptop). There's also a slight memory leak with Firefox if you let the animation loop ad eternam, but it shouldn't crash your browser. Speaking of browser compatibilities, it was developed on Firefox and the examples page works fine in the latest stable Chrome and Opera (I'd even say it runs better in Chrome than in Firefox). Not surprisingly, it fails spectacularly on IE9. You shouldn't use Internet Explorer anyway. I'm too busy to install Win8 at the moment, so trying it on IE10 is not in my agenda. I'm curious about the result nonetheless (I think it *should* work).

On the backend, Myndzi told my where to look to make a fumen converter. Thanks myndzi ! It semi-works: the inactive stack is flawless, but the active piece may be one or column or row off due to some difference in the coordinate of the active piece. Thread carefully.

There's that joystick/button visualization that's kinda neat (totally stolen from THE_TOOL, thanks Jago), but isn't currently linked to the action button, so it is a bit tedious to add it to each frame.

An other nifty-but-half-broken thing is the exportation to image. The exportation of a single frame is flawless (I extensively use the canvas element, and exporting an image from a canvas easy), but the exportation of the whole diagram to an animated gif produce poor colors due to the canvas-to-gif converter I use (everything is client and javascript based; no external server required).

I'm kinda tired working on this, and I consider it sufficient for my needs (needs = writing silly stuff for an upcoming french tetris blog, probably another stillborn project). I may maintain, fix critical bugs and add features (and I am in no shortage of ideas) it if feel like it, but consider this release "as is".
If you want to contribute, learn javascript and fork it. There's plenty of documentation about how I coded it; I hope it is sufficient (ask me questions if you like).

I'd be happy to pull any modifications.


--------------------

Neon TGM Evangelist :: "Tetris the Grand Master is the best (single player) Tetris ever"
I wrote TeDiGe-2 (Github | Bug/suggestion tickets | Forum Thread)
User is offlinePM
Go to the top of the page
+Quote Post
myndzi
post Nov 11 2012, 11:53 PM
Post #2


Tetris Grand Master
Group Icon
Posts: 1,932
Joined: 26-June 09



Nice stuff! Look forward to seeing where this goes, and possibly contributing too Wink.png


--------------------
User is offlinePM
Go to the top of the page
+Quote Post
Paul676
post Nov 12 2012, 12:14 AM
Post #3


Tetris Grand Master
Group Icon
Posts: 2,491
Joined: 22-July 09



this looks so sexy


--------------------
User is offlinePM
Go to the top of the page
+Quote Post
toppingoutivan
post Nov 12 2012, 01:41 AM
Post #4


Tetris Apprentice
Group Icon
Posts: 103
Joined: 12-February 11



I agree. It looks amazing especially with the high-speed animation.
I was really random, wanted to try simultaneous animation side-by-side - it works without a glitch :O
User is offlinePM
Go to the top of the page
+Quote Post
Maske
post Nov 17 2012, 02:24 AM
Post #5


Tetris Novice
Group Icon
Posts: 48
Joined: 27-June 09



Cool

P.S.
IPB Image


this hover text may interfere with user's work a little.
User is offlinePM
Go to the top of the page
+Quote Post
PetitPrince
post Nov 17 2012, 03:39 PM
Post #6


Tetris Novice
Group Icon
Posts: 67
Joined: 28-June 09



True that.
I used the id attribute on the div thinking it was the only valid attribute I could use to store my own data and that I haven't had any other alternative , but then I just saw that you could set up your own data-* attribute in html5. Maybe I'll change that later; currently got to many thing to do for school.


--------------------

Neon TGM Evangelist :: "Tetris the Grand Master is the best (single player) Tetris ever"
I wrote TeDiGe-2 (Github | Bug/suggestion tickets | Forum Thread)
User is offlinePM
Go to the top of the page
+Quote Post
Rosti_LFC
post Nov 17 2012, 03:56 PM
Post #7


Tetris Grand Master
Group Icon
Posts: 1,237
Joined: 26-June 09



QUOTE(PetitPrince @ Nov 11 2012, 11:24 PM) *

joystick/button visualization ... totally stolen from THE_TOOL

Hehe, that was my first thought.

PPrince, on extra thing I think would be cool, and is currently something I think is lacking in these sorts of editors, is a line clear animation of some sort. It makes things far easier to follow imo.

Nice to see you're still around too. Has been a while, or at least feels like it.
User is offlinePM
Go to the top of the page
+Quote Post
PetitPrince
post Nov 17 2012, 05:21 PM
Post #8


Tetris Novice
Group Icon
Posts: 67
Joined: 28-June 09



QUOTE(Rosti_LFC @ Nov 17 2012, 03:56 PM) *

PPrince, on extra thing I think would be cool, and is currently something I think is lacking in these sorts of editors, is a line clear animation of some sort. It makes things far easier to follow imo.

Line clear animations (also totally stolen from jago's work Smile.png ) are already present; press play on the third diagram (the one with a death tetrion) in the example page. So actually it's a bit a pain in the arse to do it (you have to manually draw each animation frame), but it's in the backend. Also, it's illogical for someone to pause in the intermediate frames of the line clear animation... maybe for some future versions.

QUOTE(Rosti_LFC @ Nov 17 2012, 03:56 PM) *

Nice to see you're still around too. Has been a while, or at least feels like it.

I have always been around Smile.png . It's just that I've got nothing to say and/or am not interested in debating about SRS stuff.


--------------------

Neon TGM Evangelist :: "Tetris the Grand Master is the best (single player) Tetris ever"
I wrote TeDiGe-2 (Github | Bug/suggestion tickets | Forum Thread)
User is offlinePM
Go to the top of the page
+Quote Post
Rosti_LFC
post Nov 17 2012, 05:40 PM
Post #9


Tetris Grand Master
Group Icon
Posts: 1,237
Joined: 26-June 09



QUOTE(PetitPrince @ Nov 17 2012, 05:21 PM) *

Line clear animations (also totally stolen from jago's work Smile.png ) are already present; press play on the third diagram (the one with a death tetrion) in the example page

Sorry, my bad. I was speaking based off the fourth example and didn't notice it in the third one, I guess.
User is offlinePM
Go to the top of the page
+Quote Post
PetitPrince
post Nov 28 2012, 11:04 AM
Post #10


Tetris Novice
Group Icon
Posts: 67
Joined: 28-June 09



I've changed to way tedige-2 website is managed; it now mirrors the master branch of the project. It changes absolutely nothing for the end user, but for the developers it means that the JSDoc documentation is now available online.

Note to the admins (Blink ?), I don't mind if you delete harddrom.com/tedige . Nobody uses it anyway.


--------------------

Neon TGM Evangelist :: "Tetris the Grand Master is the best (single player) Tetris ever"
I wrote TeDiGe-2 (Github | Bug/suggestion tickets | Forum Thread)
User is offlinePM
Go to the top of the page
+Quote Post
Maske
post Dec 1 2012, 07:05 AM
Post #11


Tetris Novice
Group Icon
Posts: 48
Joined: 27-June 09



Hmm, it appears that TeDiGe2 can't work properly when importing the Fumen code includes caption Undecided.png
User is offlinePM
Go to the top of the page
+Quote Post
PetitPrince
post Dec 1 2012, 03:22 PM
Post #12


Tetris Novice
Group Icon
Posts: 67
Joined: 28-June 09



QUOTE(Maske @ Dec 1 2012, 07:05 AM) *

Hmm, it appears that TeDiGe2 can't work properly when importing the Fumen code includes caption Undecided.png

Could you give me the steps to reproduce the bug ?


--------------------

Neon TGM Evangelist :: "Tetris the Grand Master is the best (single player) Tetris ever"
I wrote TeDiGe-2 (Github | Bug/suggestion tickets | Forum Thread)
User is offlinePM
Go to the top of the page
+Quote Post
Maske
post Dec 2 2012, 01:32 AM
Post #13


Tetris Novice
Group Icon
Posts: 48
Joined: 27-June 09



OK, I'll pm you.
User is offlinePM
Go to the top of the page
+Quote Post
PetitPrince
post Dec 2 2012, 10:32 AM
Post #14


Tetris Novice
Group Icon
Posts: 67
Joined: 28-June 09



So Maske told me that fumen import was in fact working.


--------------------

Neon TGM Evangelist :: "Tetris the Grand Master is the best (single player) Tetris ever"
I wrote TeDiGe-2 (Github | Bug/suggestion tickets | Forum Thread)
User is offlinePM
Go to the top of the page
+Quote Post
Maske
post Dec 3 2012, 04:13 AM
Post #15


Tetris Novice
Group Icon
Posts: 48
Joined: 27-June 09



Uh-oh!
I want you to import the two into TeDiGe2.






IPB Image
Viewer: http://bit.ly/VnpeVt

QUOTE(PetitPrince @ Nov 18 2012, 02:21 AM) *

I have always been around Smile.png . It's just that I've got nothing to say and/or am not interested in debating about SRS stuff.

Thouhg there is the word "Kakure Kirishitan", I was not aware until now that you are "Kakure SRS believer" Sticking Out Tongue.png

Edit: I've added the image and viewr's link.
User is offlinePM
Go to the top of the page
+Quote Post

2 Pages V  1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

©2009-2014 Hard Drop Community & Forum
harddrop.com is not sponsored or endorsed by The Tetris Company or its subsidiaries.