BreakMeOutOfHere! - a "Break Out" Game Template

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Hutchboy
Posts: 74
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

BreakMeOutOfHere! - a "Break Out" Game Template

Post by Hutchboy » Thu Aug 15, 2024 4:59 am

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
Attachments
BreakMeOutOfHere! 1.0.livecode.zip
(145.5 KiB) Downloaded 44 times

Hutchboy
Posts: 74
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

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

Post by Hutchboy » Mon Sep 02, 2024 8:15 pm

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
Attachments
Scale and Fade Text Effect.livecode.zip
(3.75 KiB) Downloaded 109 times
Custom Brick Layout Editor.livecode.zip
(5.21 KiB) Downloaded 99 times

Hutchboy
Posts: 74
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

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

Post by Hutchboy » Wed Sep 04, 2024 4:14 am

Hi,

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

Mike
Attachments
Sprites.zip
(205.97 KiB) Downloaded 62 times
Image Animator.livecode.zip
(3.74 KiB) Downloaded 37 times

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9951
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Wed Sep 04, 2024 2:35 pm

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

Hutchboy
Posts: 74
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

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

Post by Hutchboy » Wed Sep 04, 2024 2:49 pm

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
Attachments
Image Animator version 1.2.livecode.zip
(4.01 KiB) Downloaded 125 times

Hutchboy
Posts: 74
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

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

Post by Hutchboy » Thu Sep 05, 2024 3:45 am

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
Attachments
BreakMeOutOfHere! version 1.2.livecode.zip
(187.49 KiB) Downloaded 244 times

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9951
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Thu Sep 05, 2024 1:50 pm

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7303
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

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

Post by jacque » Thu Sep 05, 2024 7:20 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9951
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Fri Sep 06, 2024 2:13 pm

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

faber3d
Posts: 40
Joined: Sat Nov 16, 2013 6:51 am

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

Post by faber3d » Fri Sep 06, 2024 10:43 pm

When watching this video game, don't stop thinking about the base to make a Galaga.
Attachments
galaga.jpg

Post Reply

Return to “Games”