Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: AnToX98 on November 07, 2013, 02:52:25 pm

Title: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on November 07, 2013, 02:52:25 pm
Hello Omnimaga community !

Today I'd like to introduce my new Lua project : BlackBerry's Brick Breaker on your TI-nspire and 100% compatible with the new calculators that contains the OS 3.2.4 !
I've been working on it for some months, and I thought that it would be great to show it to you  :)

Main Features :
- Pretty Menu with 4 options : PLAY / HIGHSCORES / HELP / ABOUT
- 34 levels like in the original Blackberry game
- 5 blocks, which one is unbreakable
- Top 10 highscores
- Ingame is displayed : Score/Highscore/Ammo/Lives
- You start with 3 lives
- To promove a fluent gameplay, the background is simplified
- 5 type of collisions with paddle
- Collision with left and right wall is modified to avoid infinite ball trajectories
- There is no velocity, but Add Y is constant, only add X is variable
- Pretty game over looking, with a door that closes and displays the score
- Random Collisions
- Mouse support
- Bonus

Download link (v 1.0):
http://tiplanet.org/forum/archives_voir.php?id=22899


Screenshots :

(http://i.imgur.com/03SasU6.jpg)(http://i.imgur.com/IgKgxsR.jpg)
(http://i.imgur.com/1vonJYw.jpg)(http://i.imgur.com/hEpc859.jpg)
(http://i.imgur.com/t8mYezy.jpg)(http://i.imgur.com/YsAiyPH.jpg)
(http://tiplanet.org/modules/archives/captures/1393961498cover.png)


As always, sorry for bad english (if someone could correct grammar mistakes, please do it :) )

I agree the Omnimaga rules and  consequently, file will include source (with code+sprites) and also README file :)

Hope I'll finish that soon  ;D (http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: SpiroH on November 07, 2013, 02:56:58 pm
Great! We believe you. :thumbsup:
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: Sorunome on November 07, 2013, 02:59:01 pm
So much awesome CX dev these days, looking nice! :D
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on November 08, 2013, 02:28:06 pm
Thank you so much for feedback :)
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: mdr1 on November 10, 2013, 08:28:04 am
Cela s'annonce très bien !
Comme quoi, tu avais bien fait de t'accrocher au Lua étant donné ce que tu arrives à faire.

Waiting for the first version. :p
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on November 10, 2013, 11:17:56 am
Thank you mdr1 ;)
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on November 16, 2013, 03:56:03 pm
Here is the first download version. It has no bonus, but there are all the levels :)
It is only compatible with os 3.2.0, but maybe I'll manage to do it for os 3.1.

I know there is no README and no source, but it is pre-release.

How you enjoy it, please make sure to say me what are the bass/goods of my game :)

http://tiplanet.org/forum/archives_voir.php?id=22899
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: The_King on November 16, 2013, 04:19:16 pm
nice
keep it up
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: Jonius7 on November 16, 2013, 09:10:02 pm
Cool, the game runs well (got it working on the old greyscale on the emulator)

Just confused in the help screen, "Try to win the 34 levels but don't worry if you do so, you go to level 1 again"
Well if I lose I have to start from level 1 as well, but does that mean you can play through the game more than once and still have it added to your highscore?

Personally I'm really bad at breakout/break block games, so I only got to level 2 ;D
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: DJ Omnimaga on November 16, 2013, 09:21:42 pm
That looks very cool! Too bad I can't play this, since I have OS 3.1, this has some good graphics :)
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on November 17, 2013, 06:24:19 am
@hking1 thank you :)

@Jonius7 Thanks, I know my English is horrible, can you help me to correct that :3 ?

@DJ Omnimaga yeah I know, but more and more people are getting 3.2.4 calcs, and that's why I made that choice

Update !!! Now source code and sprites are availiable :) . Same link :)
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: mdr1 on November 17, 2013, 07:09:10 am
Really good game and graphics are beautiful!  :thumbsup:
But you should maybe reduce the move step to render it more precise.

PS: Since I like the OS 3.1 because of ndless, see attach. :)
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: SpiroH on November 17, 2013, 07:53:01 am
Update !!! Now source code and sprites are availiable :)
I knew it. Good job! ;)
Btw, your English is improving day after day.

Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on November 17, 2013, 08:17:48 am
@ mdr1 Thanks, but reducing the move step is impossible, because a too slow ball is boring :p
Thanks for the 3.1 version, I'll atach it to the first post :)

@ SpiroH  Thank you, but my english is not improving at all :D

3.1 version attached on the first post, thank you mdr1 :)
Title: Re: Re: Brick Breaker for TI-nspire (Lua)
Post by: DJ Omnimaga on November 17, 2013, 11:47:51 am
Yay for OS 3.1 version :D
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on November 27, 2013, 05:36:05 am
Hey guys. There is a strange collision, invisible :0
Could you help me to find that bug, here is the video that shows that :



The code is included in the download file :)
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: aeTIos on November 27, 2013, 07:48:39 am
Try to make a log file of the collisions. Not sure if that's possible tho in lua.
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on November 27, 2013, 08:29:30 am
What, that is not a bad idea. I forgot I can "debug" using "print" :). But if somenone could help, I'll be very gratful.
Best regards,
AnToX98
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on November 27, 2013, 10:46:31 am
UPDATE ! :D

A huge collision bug is now corrected :D
Same link in the first post

@mdr1 could you adapt it for 3.1 plz, thank you :)
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: The_King on December 06, 2013, 05:52:31 pm
can u make mouse based interface for cx and touchpad based nspires so moving mouse around will move the around the paddle
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on December 07, 2013, 09:34:34 am
But there is already a mouse support :/
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: The_King on December 07, 2013, 12:24:14 pm
i meant touch interface not pressing down the mouse buttons
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on December 07, 2013, 01:50:12 pm
yeah, that's what I meant : there is already a touch interface to control the paddle...
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: The_King on December 07, 2013, 01:54:21 pm
oh how

cuz i cannot do that
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: mdr1 on December 08, 2013, 07:06:30 am
@mdr1 could you adapt it for 3.1 plz, thank you :)
I updated your archive on tiplanet (same link) so that it works with both OS 3.1 and 3.2. Oh, and I replaced the benning of the game in the level 1 instead of the level 33 (you probably forgot to change it before uploading it).

PS: It's not really an adaptation, I juste rebuild it with luna.
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on December 10, 2013, 11:21:25 am
Yeah actually the game start at level 33 :p Thank you for reporting :)
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: DJ Omnimaga on December 10, 2013, 02:13:51 pm
yeah, that's what I meant : there is already a touch interface to control the paddle...

I think he probably didn't notice because of how unresponsive Lua and TI-OS touchpad controls are. :P (not your fault, of course. Blame TI for their batshit horrible implementation of touchpad controls.)

But again, one HP Prime game in particular isn't any better on that point.
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: LDStudios on December 13, 2013, 12:43:07 pm
I finally got around to playing this, and its lots of fun :D
Could you make it work with the numpad? the arrowKeys are rather clumsy and unresponsive on a lot of NSpires
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: LDStudios on December 19, 2013, 08:03:17 pm
Another thing, Every now and then, the ball gets stuck in a pattern, and you have to quit. It gets really annoying because ill still have 3 lives, and then the ball will get suck bouncing between 3 blocks in an endless loop. :(
Also, a level select would be nice :)
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on December 20, 2013, 11:14:33 am
I know that what I'm going to do is do an more random move of the ball when she touches a block
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on January 04, 2014, 05:09:10 am
Hey guys :D
I'm back with a soon new update of my brick breaker :)
Here are the new features :

- Bonus (view first post for more information)
- Entirely rewrote code
- Added lots of random collision to avoid the stuck of the ball
- Mouse support for menu (it already exists in the game)
- Shaper blocks
- The image of the doors at gameover takes to much space, that's why the doors are now drawed with the lua api
- The blocks now get down like in the blackberry game !

(http://i.imgur.com/BF0D11n.jpg)(http://i.imgur.com/oIPx3Zs.jpg)

It will be soon here, and it will be the 1.0 version, hope i'll finish soon :)
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on March 05, 2014, 11:58:46 am
Hey Omnimaga, I'm sorry for inactivity, but there was lots of things to fix and do to 1.0 release

So today, here is 1.0 release ;D


(http://tiplanet.org/modules/archives/captures/1393961498cover.png)


Main features of 1.0 :

- Graphics improved : doors simplified, blocks more clean
- Full mouse support : in menu as in the game (with mouseDown also)
- 8/6/2/4/5 support
- Code entirely rewrote and commented
- New screen manager
- Press "p" to pause the game at any time
- Bonus ! : Add score/Add life/Add ammo/MultiBall/Larger Pad : throw the ball in blocks to get them
- Lots of random collisions added to ensure that the ball don't gets stuck
- If you have ammo, fire with enter/5/mouse clickpad to destroy blocks
- Blocks get down like "aliens" if you let the ball to many time


Download link in first post :)



Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: LDStudios on March 05, 2014, 06:03:44 pm
Great work! It's 1,000,000 times better :D
My only complaint is the finite number of levels.
Maybe you could have 34 set levels, and then have it start randomly making them?
Also, when the power ups hit your paddle, it looks like you are getting hurt. Maybe a slower flash that repeated a few times would seem more fit.
To tell you the truth, I really didn't like the old version, but now it is very fun!
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on March 06, 2014, 07:19:45 am
Great work! It's 1,000,000 times better :D
My only complaint is the finite number of levels.
Maybe you could have 34 set levels, and then have it start randomly making them?
Also, when the power ups hit your paddle, it looks like you are getting hurt. Maybe a slower flash that repeated a few times would seem more fit.
To tell you the truth, I really didn't like the old version, but now it is very fun!

Yeah maybe random levels would be cool. But random levels are always the same : blocks everywhere and no "logic" disposition.
I agree with you : the old version wasn't really playable but know it is 100 % functional, and I think it is the only Brick Breaker on Nspire.
It has more than 1200 code lines, so it is a big project !

But know, i'll concentrate more on small and fun games (and put them all together ?). Because it is more simple to make them and there's no need of losing 1 hour of your time to correct a collision problem.

When I'll finish that I'll start again a big project (a strategy game I think, like age of empires).

 
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: DJ Omnimaga on March 07, 2014, 01:15:18 am
Great work! I like how this looks like. :D
Title: Re: Brick Breaker for TI-nspire (Lua)
Post by: AnToX98 on March 07, 2014, 02:54:39 pm
Here's a little video of it :)