Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Tanktris - a Tetris clone [RC2 & Sourcecode released]  (Read 28565 times)

0 Members and 1 Guest are viewing this topic.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #15 on: July 04, 2008, 11:00:51 am »
Quote from: "Xylankant"
lolz..."cheated" out by developer ;)
But yes, I imagined this new feature to make making points faster *g*
...Operation gelungen, Patient tot ;) (sry, don't know an english expression for that)

I never cheat, like Mindiell. ;) I was just able to keep a fair amount of time at level 12, had a big tower and two 4-liners. ;)

@dabo:
Absolutely true! If you want to become a master at a game, program it yourself. ;)

l0calh05t

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #16 on: July 28, 2008, 01:57:40 pm »
the dl link seems to be down

Daazku

  • Hero Member
  • *****
  • Posts: 896
    • View Profile
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #17 on: July 28, 2008, 02:26:48 pm »
True...
Pensez à mettre le tag [Résolu] une fois la réponse à votre question trouvée.
Remember to add the tag [Solved] when you got an answer to your question.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #18 on: August 09, 2008, 02:53:47 pm »
I'm sorry, I've accidently deleted the files from my server. I uploaded the new release candidate, namely 1.0RC2. Included are a pause feature, instant drop[tm] and rotating blocks counter-clockwise. Also some changes have been made in gameplay, mostly the delays between dropping and getting new blocks.

Be sure to take a look at the included README file to find out about the controls.

Download

Tanktris 1.0RC2 Win32 (12.6 MB)

The link in the initial post has also been corrected. Included in the self-extracing archive are the SFML 1.3 runtime libraries together with the OpenAL runtime libraries setup program. Hopefully this works on mostly every system without the need for other libraries.

The Options menu has been dropped, since I'm currently working on the SFMLGame lib to get some more generic menu functionality. Up to then, there'll be no in-game menu for configuring controls etc.

dabo

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://www.dabostudios.net
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #19 on: August 09, 2008, 04:23:58 pm »
Just got 73500, looks like I need to practise :)

EDIT: 112800 is my best now :)

Is the "block dropping"-speed based on score or time?

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #20 on: August 10, 2008, 08:35:43 am »
112800 is very good, I'll check mine when I'm at home and post it. ;)

The falling speed changes at each level.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #21 on: September 11, 2008, 03:54:36 pm »
Since the game is nearly (except options & key configuration) complete, and I'm not planning to do any more coding on it, I've finally released the sourcecode. I've also packed a Linux binary archive.

Visit the Tanktris Wiki page for downloads.

dabo

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://www.dabostudios.net
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #22 on: September 12, 2008, 02:50:32 am »
I'm gonna check it out.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #23 on: September 13, 2008, 11:00:21 am »
It would be very nice if someone using Linux Debian (or derivates, like Ubuntu) and the SFML libraries from the repositories could compile from the sources and try to start a new game.
Someone's experiencing problems with a floating point error when choosing New Game.

Avency

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #24 on: September 13, 2008, 11:22:37 am »
This someone is right:
Code: [Select]
Floating point exception
This might help you to fix the problem:
Code: [Select]
==10696== Process terminating with default action of signal 8 (SIGFPE)
==10696==  Integer divide by zero at address 0x63655045
==10696==    at 0x4040FA7: sf::Randomizer::Random(int, int) (in /usr/lib/libsfml-system.so.1.3)
==10696==    by 0x805F4D0: MoverProvider::applyRandomTemplate(Mover&) (moverprovider.cc:77)
==10696==    by 0x8056CB2: InGame::createNext() (ingame.cc:402)
==10696==    by 0x8058E99: InGame::onEnter() (ingame.cc:249)
==10696==    by 0x8061CC0: Tetris::setState(State*) (tetris.cc:119)
==10696==    by 0x8061EFB: Tetris::startGameState() (tetris.cc:143)
==10696==    by 0x80624FE: Tetris::run() (tetris.cc:73)
==10696==    by 0x805B146: main (main.cc:7)

christoph

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • http://www.christoph-egger.org
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #25 on: September 13, 2008, 11:23:13 am »
Also there is no offical 1.3 in any current Ubuntu Repos (as Intrepix was frozen too early) there are the exact packages that will enter Ubuntu from the debian side after 8.10 is out on my launchpad ppa:

Code: [Select]
deb http://ppa.launchpad.net/christoph-egger/ubuntu hardy main
deb-src http://ppa.launchpad.net/christoph-egger/ubuntu hardy main

https://launchpad.net/~christoph-egger/+archive

@Avecy:
This someone is me ;)

Are you debian? Debian SFML or selfmade?

Avency

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #26 on: September 13, 2008, 11:30:26 am »
Quote from: "christoph"
Are you debian? Debian SFML or selfmade?

Ubuntu, SFML is compiled from the repository.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #27 on: September 13, 2008, 01:22:16 pm »
That's really strange. I've just compiled SFML myself (when 1.3 was released, there were no Debian package) and it builds fine (I hope it still does, I've done a system upgrade some days before (Debian Lenny) and did not recompile since then).

To be honest I can't see any reason why there should be a floating point exception. The game crashes when using Random() -- with integers. Also, up to the point where it crashes, no "serious" floating point operations take place. I'm just wondering what causes that exception.

Also it crashes in the initialization part of the game. Everything gets loaded in InGame:onEnter(), then this method calls InGame::createNext() to create the next block -- which utilizes applyRandomTemplate() to get a random block type with random graphics, using sf::Randomizer::Random. I really can't see anything from up to that point.

I'll be at home tomorrow and will recompile the whole code under my Debian Lenny, which got updated the last days. If I'll get that exception too, I highly suggest that there's something wrong with other libraries (after some googling, I found out that newer versions of the libc6 are making trouble; but also ATI graphics cards seem to not work together with some programs under special circumstances)

What graphics card do you have, Avency? And thanks for your bug report.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #28 on: September 13, 2008, 01:24:45 pm »
Bah, okay, I should open my eyes a bit more:
Quote
Integer divide by zero at address 0x63655045


I think this is something to be able to start with. :)

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Tanktris - a Tetris clone [RC2 & Sourcecode released]
« Reply #29 on: September 13, 2008, 01:37:13 pm »
Alright, before uploading packages, they should really be double-checked.. The problem was that the "data" directory was missing in both the Linux and sourcecode archive.

I'm sorry for the inconveniences and thanks again for the bug reports. I hope everyting's working now, the archives have been re-uploaded.

Edit: Laurent, would it be a good idea to implement division by zero checks for Random()?

 

anything