
-----------------------------------
Mr. T
Sat Jul 15, 2006 9:18 pm

Jezzball
-----------------------------------
For those of you who have played an online version of jezzball (http://www.jezzball.net/way/cool/bl/play.html), I need some suggestion on how I might go about filling in the spaces that the balls can no longer occupy. My game is running on a 2d array grid system.

-----------------------------------
[Gandalf]
Sat Jul 15, 2006 10:24 pm


-----------------------------------
Haven't played the game, but if you're using a grid system, why not just have a property of each square on the grid determining if it is occupied or not.  Then, when this property is set to the equivalent of "occupied" and the ball reaches it's boundaries you know that it cannot pass.  It might be a bit of a general respone, but it was also quite a general question.

P.S. You're still trying to make this game?  There's a very similar topic made by you from September 2005!

-----------------------------------
Mr. T
Sat Jul 15, 2006 10:29 pm

Alex's Opinion
-----------------------------------
Sorry if the question was a little be generalized.  I'll PM you my code so you can further understand what I'm trying to accomplish.

...and yes, I had started working on the game in 2005, but I took a long break from programming and only started up recently.  I realized that I was going about the game completely incorrectly, so I had to rework it entirely.

-----------------------------------
Mr. T
Sat Jul 15, 2006 10:33 pm

Alex's Opinion
-----------------------------------
Any other suggestions are appreciated.

-----------------------------------
Windsurfer
Sun Jul 16, 2006 12:09 pm


-----------------------------------
Okay, there you go. I pretty much fixed your jezzball program to the way you wanted it. I know, i know " If you give a man a fish..." whatever lol
I added a procedure and put in a few lines that make it so that the procedure is run when you middle click. It fills in the remaining space (with some creative use of whatdotcolour and Draw.Fill  :P ) and then changes your grid accordingly. Unfortunitaly, it is slow, so you can only really run it when there is a change in the grid (like when a wall is created) but I couldn't really find a good place to put it, sooo... I got lazy and made it middle click. Anyways, here you go.

-----------------------------------
Mr. T
Sun Jul 16, 2006 1:42 pm

Alex's Opinion
-----------------------------------
Err...I would really have liked to figure this out on my own, but thanks for the help anyways.  I know exactly where I'm gonna put it so that it doesn't slow down my program.

-----------------------------------
Windsurfer
Sun Jul 16, 2006 2:24 pm


-----------------------------------
Well, I DID try helping you on MSN, but you were too busy to listen. Also, havent you been trying to get this to work since sept?

-----------------------------------
Mr. T
Sun Jul 16, 2006 3:18 pm

Re: Alex's Opinion
-----------------------------------
...and yes, I had started working on the game in 2005, but I took a long break from programming and only started up recently.  I realized that I was going about the game completely incorrectly, so I had to rework it entirely.
Thanks for the help surfer.  I guess I misunderstood your msn explanation.
