Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: BreakOut starting project

  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    BreakOut starting project

    Thanks again to Petr geniality we have a project that can be used as a starting point for many BreakOut clones.
    I will post very soon source code to play with.

    [youtube=425,350]MAmjpN5qKf4[/youtube]


    All code is interpreted on the fly. No compilation, no intermediate code, nothing. Just pure script parsing.

    Thanks again Petr.

    ADD: source code included in this post. It requires thinBasic version 1.2.0.1
    Attached Files Attached Files
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: BreakOut starting project

    Hi,

    when you'll have look at collision code,
    you will recognize it si not so hot with my geniality

    Good idea to make it rotate wild, there are some nice cube-passes-by moments

    But I must say I was nicely surprised with speed thinBASIC performs the calculations


    Bye,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: BreakOut starting project

    Wow, absolutely amazing demo. So much going on, everyting rotating, the nice wired grid, the red ring paddle, the yellow ball and all those cubes. Hard to believe that is all on a scripted language like thinBasic. Great job guys!!
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: BreakOut starting project

    Source code attached to first post here.
    Compared to video version, this source code has improved the following:
    • every cube have its hit speed
    • every cube will fade away in random direction


    A little challenge

    • improve ball movements to be able to cover all possible positions on moving planes. Now ball moves mainly from one corner to the opposite one.
      Maybe when ball hits a cube, a different angle can influence next ball direction
    • add user key pressing for rotation, zooming. Maybe some key can influence ball movements
    • add special effects on cube hit
    • add special cubes that perform special actions (like explosion destroying all cubes near it
    • other ideas ...



    psssss
    quite ready new thinbasic version with about 10% more speed overall ...
    shhhhhhh: secret

    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  5. #5
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: BreakOut starting project

    Thanks Eros, also liked the secret message in lemon juice ink, luckilly I know to hold the paper up to a hot lightbulb
    I liked what I read!!

    The bmp texture file is missing Eros with the attachment for the script. It still runs fine without, but just wanted to mention it.
    That is so awesome to watch, you guys really put together an amazing demo!!!
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  6. #6
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: BreakOut starting project

    Sorry, sample script updated with missing texture now.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  7. #7
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: BreakOut starting project

    Hi,

    just tiny modification to mark collided cubes.
    Eros, idea with cubes "leaving" on various axis and speed was very nice !


    Bye,
    Petr
    Attached Files Attached Files
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  8. #8
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: BreakOut starting project

    Hi Petr,

    you are now moderator of this forum.
    Please be free (if you like) to substitute my attached example in first post of this thread with your (sure better than mine).

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  9. #9
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: BreakOut starting project

    Hi Eros,

    thanks a lot,
    I will not substitue orignal sample yet, as my new version has no key additions, it is just idea how to visualise moving cubes


    Bye,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  10. #10
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: BreakOut starting project

    Petr,

    your new version merit a video. Here it is
    Some of the cubes seem real rockets ...

    [youtube=425,350]pTVelIDRtiU[/youtube]

    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Page 1 of 2 12 LastLast

Similar Threads

  1. I made a start on Breakout
    By Michael Clease in forum TBGL Scripts and Projects
    Replies: 7
    Last Post: 28-02-2009, 09:40

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •