Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Block Crusher game template

Discussion in 'Assets and Asset Store' started by OussamaB, Sep 27, 2013.

  1. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470

    A fun and addictive game where your goal is to destroy as many blocks as possible before your screen fills!

    • Edit everything from the inspector without modifying the script.
    • Dynamic system: Create levels with different blocks, speed and style!
    • Three different game modes: Endless mode (Play till the screen fills, no limits!), Score mode (Reach a specific score before your screen fills!), Survival mode (Survive untill time ends!).
    • Mobile ready: All UI elements can fit different resolutions (Dimensions are automatically converted when changing resolution: works with mobile phones, tablets, etc…).
    • Change the theme of the game easily by changing some textures!
    • Comes with many sound effects and textures!
    • Sound and Music management : turn on/off sound or music while playing!
    • Add Power-UPs: to your game: Power-ups are created randomly in some blocks and collected by the player when he crushes these blocks. This kit includes various types of power-ups.
    • Manage the speed of the level easily: Make the speed constant or make it change while playing to make the game challenging
    • Comes with a detailed guide.
    • Fully commented code.
    Demo:
    WebPlayer Demo

    Documentation:
    Online Documentation

    ChangeLog:

    v1.03 - 08/12/2013:

    -Added time counter to the game.
    -You can now make three different game modes: Survival mode, endless mode and play for score mode.
    -Fixed a bug that caused some blocks to freeze.
    -Added sound and music management: turn on/off sound or music!

    v1.04 – 16/07/2014:

    - Changed the style of the game and the positions of the button.
    - Fixed some bugs.
    - Added new types of power-ups.
    - Added new sprites, new sound effects and GUI textures.

    v1.05 - 23/01/2015:

    - Asset now supports Unity 4.6 UI.
    - Asset is now available in both C# and JS.

    v1.06 - 20/03/2015:

    - Fixed a bug in creating blocks/slots dynamically.
    - Fixed a bug in the UI menu.
    - Unity 5 support.

    v1.07 - 15/05/2015:
    - Fixed a bug in playing sound effects after the game ends.
    - Fixed a bug in hiding non-used power-ups when the game ends.
    - Improved graphics.
     
    Last edited: Feb 11, 2017
  2. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    Screenshots:



     
    Last edited: May 18, 2015
  3. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    UPDATE :
    v1.025:
    - Fixed a bug that hides blocks when moving to the left or right.
     
    Last edited: Jul 22, 2014
  4. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    UPDATE: v1.03

    - Added time counter to the game.
    - You can now make three different game modes: survival mode, endless mode and play for score mode.
    - Fixed a bug that caused some blocks to freeze.
    - Added sound and music management: turn on/off sound or music!

    UPDATE AVAILABLE ON THE ASSET STORE!
     
  5. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    You can get Block Crusher Kit from the asset store today for only $10!!
    Only 18 hours left!
     
  6. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    Today, Block Crusher Kit became the top paid asset in complete projects/packs! Thanks everyone!
     
  7. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    Here's a new update!
    Main changes:

    - Changed the style of the game and the positions of the button.
    - Fixed some bugs.
    - Added new types of power-ups.
    - Added new sprites, new sound effects and GUI textures.
     
  8. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    Working on a new update that will support the new Unity UI and a C# version of the asset.
     
    bjornrun likes this.
  9. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    Unity 4.6 UI update is completed. I'm currently re-writing the guide since a lot of things have changed. As always you will be able to use the block crusher kit in different screen resolutions and it now works much faster on old mobile devices thanks to the new UI.
     
  10. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    Unity 4.6 UI update has been submitted along with the C# version of the asset.
     
    Last edited: Jan 28, 2015
  11. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    The new UI update and C# version is now available in the asset store.
     
  12. marvBGE

    marvBGE

    Joined:
    Jul 27, 2013
    Posts:
    1
    Hello, I just downloaded your project and am excited to check it out. However, the start button is not working. I've tried both C# and JS versions. There are no errors, but nothing happens when the button is clicked. Any advice is very much appreciated. Thanks!
     
  13. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    Please make sure that the canvas that has holds the menu buttons has a higher sort order than the one that holds the background and the slots.
     
  14. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    A new version of Block Crusher Kit has been submitted:

    - Fixed a bug in creating blocks/slots dynamically.
    - Fixed a bug in the UI menu.
    - Unity 5 support.

    The update will available soon in the asset store.
     
  15. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    Block Crusher Kit is now available for Unity 4.6.3 and all superior versions including Unity 5.
     
  16. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    Block Crusher Kit has been updated with new graphics, check it out in the asset store!
     
  17. appvillas

    appvillas

    Joined:
    Aug 21, 2015
    Posts:
    14
    Hey I download and import asset but it could not play game. Just Play the main menu i click on start button but no action occur.
     
  18. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    Which Unity version are you using? Another user reported an issue with Unity 5.1.1f which I'm currently looking into.
     
  19. appvillas

    appvillas

    Joined:
    Aug 21, 2015
    Posts:
    14
    Unity 5.1.3f1
     
  20. wrenagade

    wrenagade

    Joined:
    Feb 14, 2015
    Posts:
    23
    Hi,

    I just tried the demo from off the Asset store and there is a problem with responsiveness to mouse clicks.
     
  21. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    Hi, thanks for reporting this issue, I will look into it.
     
  22. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    NEW YEAR SALE: 50% OFF
    Before: $25.00, NOW: $15.50


    To celebrate the new year, Block Crusher Game Kit is on sale! Get it now for 50% OFF!
    Note that the Game Kit Bundle is also on 50% OFF as well!
     
  23. sygaki786

    sygaki786

    Joined:
    Jan 26, 2014
    Posts:
    142
    I just purchased the product. The code is well commented. I can follow most of it. Please can you explain what you are trying to accomplish in the Update function. I am looking at the code below. I mean where it says move first row blocks to the left and right.

    //Moving first row blocks to the left and right:
    for (int t = 0; t < Slot.Length; t++) //Start a loop in the current slots:
    {
    if (t > (BlocksPerRow * Rows) - BlocksPerRow) //Check if thess current slots belong to the first rows.
    {
    if (t >= (BlocksPerRow * Rows) - BlocksPerRow / 2 && t != (BlocksPerRow * Rows) - 1) //If this slot is placed on the right of the first row and not the last slot.
    {
    if (Slot[t].IsTaken == false && Slot[t + 1].IsTaken == true) //If it's not taken by a block.
    {

    Thanks,
    Syed
     
  24. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    For example, when a full column gets destroyed, this part of the Update function handles moving the blocks that are placed next to the empty column (on its right and on its left) till there's no empty space between the blocks.
     
  25. OussamaB

    OussamaB

    Joined:
    Feb 8, 2013
    Posts:
    1,470
    The new year sale has ended, thanks to everyone who purchased the asset!