View Full Version : BreakOut starting project

05-02-2007, 16:21
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.


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

Petr Schreiber
05-02-2007, 22:53

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

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 ;)


06-02-2007, 03:28
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!!

06-02-2007, 08:28
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 :D

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 ...

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

06-02-2007, 09:39
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!!!

06-02-2007, 11:11
Sorry, sample script updated with missing texture now.

Petr Schreiber
06-02-2007, 12:26

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


06-02-2007, 13:56
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).


Petr Schreiber
06-02-2007, 15:41
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 :)


06-02-2007, 18:21

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


Petr Schreiber
06-02-2007, 19:39
Thanks Eros ;D


06-02-2007, 22:44
Super Duper absolutely Wild, WOW!!

Just so mesmerizing to watch and see the power in the code!!!!
Thanks very inspirational work!!!

The particles matching the color of the cubes, very very nice touch!!!

07-02-2007, 00:02
Few little changes:
cubes will now be fired in all directions x, y, z positive and negative
fired cubes will change color to random red variation

Attention: this script needs latest thinBasic preview version


07-02-2007, 05:46
Looks so much like escape pods leaving a doomed space cruiser, so neat to watch. The code is so clean too, when you look at c++ game code for 3d and then come look at thinBasic code, what a difference, like night and day!!

14-02-2007, 00:37
No other ideas?
OK, I got one: adding some initial mouse usage plus sound effects for cubes hits.


Have fun.

14-02-2007, 01:46
I finally saw the whole game field cleared of cubes. Amazing how fast and smooth everything is, handling the input, motions, collisions, effects and sound. My hats off to what you guys have accomplished with thinBasic, tbgl and all the other modules!!

Michael Hartlef
14-02-2007, 11:29
Awesome!!!! the last vid should have a warning on it, could make you seesick at the end ;D

14-02-2007, 12:42
Script can be downloaded. It is attached inside the post.

Yes, I should have set a warning: cat playing with my mouse, mind your eyes!

Petr Schreiber
14-02-2007, 19:44
Hi Eros,

... and I must see it as last one, damned school timetable :D

This is perfect!
Manual camera control is very nice and the sounds add the right arcade mood :)

Thanks a lot!,