Page 1 of 1

BreakMeOutOfHere! - a "Break Out" Game Template

Posted: Thu Aug 15, 2024 4:59 am
by Hutchboy
Hi,

Attached is the first version of a "Break Out" style of arcade game I've named "BreakMeOutOfHere!".

I think this could be a good template to develop further. Most of the interesting stuff is in the card script. The stack script is a standard game loop I have used before, adapted from the LiveCode Game Academy course I took years ago.

It should be pretty easy to mod this game to your liking:adding color, changing brick layouts, adding levels, adding power ups, etc. I kept it simple here to meet posting requirements, splurging a bit with one image of "Pete the Prisoner".

The only thing I am not entirely satisfied with is handling the mouse pointer when I'm moving the paddle.

happy coding,
Mike

Re: BreakMeOutOfHere! - a "Break Out" Game Template

Posted: Mon Sep 02, 2024 8:15 pm
by Hutchboy
Hi,

In developing my Breakout style game "BreakMeOutOfHere" I wanted an easy way to implement levels requiring different
brick layouts. The attached Brick Layout Editor uses a fairly easy and adaptable method, employing the creation of custom properties
to store the locations for a given brick layout as well as the backgroundPattern for each brick.

The scripts for this editor are all within the buttons. This editor should serve as a basis for experimenting with other layouts. I think the code is generalized sufficiently that with minor edits you can change the nature of the graphic objects, change graphic objects to buttons in order to display images, and even field objects.

Note: in the brick scripts all of the brick graphic objects belong to a group. Referring to the number of graphics within
the group isolates the brick graphics from other graphics that you might add to the card.

The second attachment is to provide a countdown timer effect to provide a short delay before the ball launches in the game.

Happy Labor Day!
Mike

Re: BreakMeOutOfHere! - a "Break Out" Game Template

Posted: Wed Sep 04, 2024 4:14 am
by Hutchboy
Hi,

Continuing with my Break-out style game, "BreakMeOutOfHere!", I needed a little animation utility. It is bare bones right now but works.

Mike

Re: BreakMeOutOfHere! - a "Break Out" Game Template

Posted: Wed Sep 04, 2024 2:35 pm
by dunbarx
Hi.

I downloaded the original game. I got to a point where the ball was bouncing vertically up and down off the ceiling, having cleared the bricks away in that area, and it simply kept doing that. I was able to place the paddle at the bottom in a place where I never had to move it again.

The angle changes seen when the ball hits a brick do not seem to work when hitting the ceiling at near 90°.

Craig

Re: BreakMeOutOfHere! - a "Break Out" Game Template

Posted: Wed Sep 04, 2024 2:49 pm
by Hutchboy
Hi,

I've revised the Image Animator to version 1.2 so you can now load a folder of sprites and, if they are named with numeric prefixes, the first 10 will be loaded in order. (Much less annoying).

[Craig] Thanks for the feedback on the game bug, I will update the game soon to address this bug and to incorporate additional game features.

Mike

Re: BreakMeOutOfHere! - a "Break Out" Game Template

Posted: Thu Sep 05, 2024 3:45 am
by Hutchboy
Hi,

Attached is an update to my "BreakMeOutOfHere!" game. In this update (see card script header for details) I fixed a bug reported by Craig here in the forum comments. I added sound and now you can change the ball speed within the game. This version is still limited to one level but I want my Leaderboard Management system and my Image Animator refined before I add other levels. I may be running up against posting file size limits soon.

I have corresponded with Heather at LiveCode and asked if there was an official press kit that included a LiveCode or LiveCode Create badge I could use. She said she would talk to the graphics guys and get something out soon.

Mike

Re: BreakMeOutOfHere! - a "Break Out" Game Template

Posted: Thu Sep 05, 2024 1:50 pm
by dunbarx
Hi.

An enhancement might be to allow the paddle to move in any direction, as opposed to only in a straight line along the bottom. You simply need to set the loc of the paddle to the screenMouseLoc.

Craig

Re: BreakMeOutOfHere! - a "Break Out" Game Template

Posted: Thu Sep 05, 2024 7:20 pm
by jacque
dunbarx wrote:
Thu Sep 05, 2024 1:50 pm
An enhancement might be to allow the paddle to move in any direction, as opposed to only in a straight line along the bottom. You simply need to set the loc of the paddle to the screenMouseLoc.
Typically all breakout games only allow horizontal movement along the bottom. That's part of the challenge. It forces you to account for rebounds off the side walls. I suppose one could implement the enhancement for an easy mode though.

Re: BreakMeOutOfHere! - a "Break Out" Game Template

Posted: Fri Sep 06, 2024 2:13 pm
by dunbarx
Jacque.
I suppose one could implement the enhancement for an easy mode though.
I just thought that being able to intercept the ball anywhere would be an interesting variation. I am not sure that makes the game easier.

Craig

Re: BreakMeOutOfHere! - a "Break Out" Game Template

Posted: Fri Sep 06, 2024 10:43 pm
by faber3d
When watching this video game, don't stop thinking about the base to make a Galaga.