Qbasicnews.com
July 05, 2020, 04:54:38 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: BALLSBREAKER  (Read 15103 times)
NovaProgramming
Been there, done that
*****
Posts: 1025



« Reply #30 on: April 21, 2006, 12:54:11 AM »

LOL I just played my own game and realized the problem with not showing scoring and stuff, so I quickly added that and recompiled, rezipped, and reuploaded... so that's the technically newest version.

The scoring system people seem to be confused about... so here it goes


Theres a formula that is used, depending on the higher level, the more time you spend simply "staying alive" the more points you get.  I.E.  in level 1 if you spend like 25 seconds doing nothing but avoiding the yellow ball, you get 1 point (every 25 seconds).  in level 2 it's 1 point for every 15 seconds (or something) and it decreases until you get a bunch of points for staying alive when theres a lot of yellow balls around... yup.

Then:  You get -10 points for getting hit, which is why you could end up with negative or very low amount of points.  You get 5 points for collecting a powerup, and you get bonus points for completing a level (something like level*2 points, I don't remember the equation exactly.)

So that's it.  As for the balls moving randomly... I thought about that, but the way that it works now is that the box will hit a ball and it will bounce in a different direction... and it's just a lot easier to do x = x + 1 Tongue...  I could do it I guess, but for right now I'm extremely happy with the game!  It's turned out wayyy better than I ever thought it could Smiley.

So, keep playing, and maybe I'll implement a "high score" list or something that keeps track, I haven't decided if I want to yet.  Thanks for your support!

EDIT:  What color should I use for the "bad balls" if they are too closely resembled to the green ones?   Blue seems like it would blend in too much with the black... and bright blue / purple are already taken... it seems to work fine for me :S
Logged

ovaProgramming.

One night I had a dream where I was breaking balls.  The next morning, BALLSBREAKER was born.

Quote from: "Haye, Phillip J."
 Excellent.  Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
SSC
Guru
**
Posts: 288



WWW
« Reply #31 on: April 21, 2006, 01:43:22 AM »

Ok well, its far too easy still, just in another way lol. I magaged to get my square to almost fill the entire screen, I had over 200 power and over 200 bombs before I even finished level one. All i did was get rid of all but one green ball and collected power ups by moving the mouse. It only took me about 60 seconds after that to get to level 45. The first screenshot below shows me at lvl 30 something with my giant square. the picture below it shows what happened when I started a new level and used a bomb =) In the end at lvl 45 I had over 12,000 points

Logged

url=http://www.smithcosoft.com]SmithcoSoft Creations[/url]
"If you make it idiot proof, someone will make a better idiot" - Murphy's Law
Dio
I hold this place together
*****
Posts: 874



« Reply #32 on: April 21, 2006, 01:43:53 AM »

Quote from: "NovaProgramming"
EDIT:  What color should I use for the "bad balls" if they are too closely resembled to the green ones?   Blue seems like it would blend in too much with the black... and bright blue / purple are already taken... it seems to work fine for me :S


square? □
Logged

quote="whitetiger0990"]whitetiger is.. WHITE POWER!!! [/quote]
Here
NovaProgramming
Been there, done that
*****
Posts: 1025



« Reply #33 on: April 21, 2006, 01:56:14 AM »

LoL... wow... I didn't know the powerups were bugged like that... maybe something to look in to... glad you're having fun anyways Tongue
Logged

ovaProgramming.

One night I had a dream where I was breaking balls.  The next morning, BALLSBREAKER was born.

Quote from: "Haye, Phillip J."
 Excellent.  Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
Pritchard
Wandering Guru
***
Posts: 328


« Reply #34 on: April 21, 2006, 11:57:06 AM »

Did you even look at my recommendation to have a limited amount of power-ups per level? Or is this something else? ^_^;;
Logged

 will Live Forever, or Die Trying >_<;;
NovaProgramming
Been there, done that
*****
Posts: 1025



« Reply #35 on: April 21, 2006, 12:13:45 PM »

Yeah, the "randomness" for how often a powerup drops is actually something like CHANCE = int(rnd * (level*10)) + 1
and then if CHANCE = 1 then it's a powerup; that's why you get a lot in the beginning... however, the powerups drop at the same rate because each level the balls increase by 10, and so does the less chance to get a powerup... so in short, they drop the same amount, but it seems like less in the higher levels?  I dunno, it seems to work good for me, I can only get to like level 9 Tongue
Logged

ovaProgramming.

One night I had a dream where I was breaking balls.  The next morning, BALLSBREAKER was born.

Quote from: "Haye, Phillip J."
 Excellent.  Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
Pritchard
Wandering Guru
***
Posts: 328


« Reply #36 on: April 21, 2006, 12:31:37 PM »

Level 12 with 284 points my first try, and that was when I was going into the yellow balls (didn't see how yellow they were at first)! Whooot! Time to get higher!

Second Try:
Crashed around level 90, latest screenshot with balls is from level 67 or so.



Thanks for a fun game which I pwnz at ^_^;;
Logged

 will Live Forever, or Die Trying >_<;;
NovaProgramming
Been there, done that
*****
Posts: 1025



« Reply #37 on: April 22, 2006, 11:44:43 PM »

LoL!

Wow... of course, any time!


Well just so you know, I now fixed the glitch of the eternal powerups, sorry to all you cheaters out there Tongue...  So now the game should play like... well, the game is intended to play.  I can only get to like level 13 with the new change... you get 13 of them yellow buggers flyin' around and it gets kinda tricky... heh...  Well I guess it could be trying to play with a touchpad  :lol:
Logged

ovaProgramming.

One night I had a dream where I was breaking balls.  The next morning, BALLSBREAKER was born.

Quote from: "Haye, Phillip J."
 Excellent.  Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
Zack
*/-\*
*****
Posts: 3974



WWW
« Reply #38 on: May 01, 2006, 05:55:10 PM »

Say, any chance of seeing the source code?
Logged

f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Dio
I hold this place together
*****
Posts: 874



« Reply #39 on: May 01, 2006, 08:23:01 PM »

LYNCH!!! well, that's if he says no...
Logged

quote="whitetiger0990"]whitetiger is.. WHITE POWER!!! [/quote]
Here
NovaProgramming
Been there, done that
*****
Posts: 1025



« Reply #40 on: May 06, 2006, 12:30:44 AM »

OKay, fine.
http://fileanchor.com/25869-d

BE WARNED:

My code probably makes sense to me and only me, cuz I don't like to use comments and/or SUBs, even though I know I should.  And the code is probably not optimized, so don't laugh at me too much Sad
Logged

ovaProgramming.

One night I had a dream where I was breaking balls.  The next morning, BALLSBREAKER was born.

Quote from: "Haye, Phillip J."
 Excellent.  Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
TheAdventMaster
Ancient Guru
****
Posts: 671


« Reply #41 on: May 06, 2006, 04:07:57 PM »

Nice source.  I wonder how something like Ballsbreaker can be so many lines of code though Cheesy  I could probably do that in ummm...300 - 400 lines ^_~;;
Logged
Zack
*/-\*
*****
Posts: 3974



WWW
« Reply #42 on: May 07, 2006, 12:37:15 AM »

Nice code.
A couple of things...
a) Why do you set the window title if it's in fullscreen? Tongue
b) You have earned my full respect from one simple thing. Line 74, the subroutine say(). I like your parameter name. I do that too, but I usually use foo, bar, bas and wang. Occasionaly ding and dong.
Logged

f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
NovaProgramming
Been there, done that
*****
Posts: 1025



« Reply #43 on: May 16, 2006, 03:38:34 PM »

I just wanted to be cool and have a window title...  :oops:   I'm still quite a newb at the new FB commands
Logged

ovaProgramming.

One night I had a dream where I was breaking balls.  The next morning, BALLSBREAKER was born.

Quote from: "Haye, Phillip J."
 Excellent.  Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!