Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
b/w
- Page 1
Re: Printing multiple integers EASY SOLUTION
Programming
Software Development
3 Days Ago
by Bunker
A straightforward solution to printing multiple integers is to use a loop. For example, in Python, you could use a "for" loop to iterate through a list of integers and print each one. This method is simple and effective.
Slaying Unicorns: How Europe Sabotages Its Own Economic Future
Community Center
4 Weeks Ago
by Johannes C.
… 20%](https://ec.europa.eu/eurostat/web/products-eurostat-news/
w
/DDN-20230614-1). Combined, the high tax burden, inefficient use…
Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 Weeks Ago
by jprog1000
…10; protected Timer timer; Ball
b
[]; public BallPanel(Ball
b
[]) { this.
b
= new Ball[
b
.length]; for (int i =…0; j <
b
.length; j++){ if (i!= j &&
b
[i].collides(
b
[j])){
b
[i].changeDirection(
b
[j]); } }…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 Weeks Ago
by toneewa
…if (i != j &&
b
.get(i).collides(
b
.get(j))) { if (
b
.get(i).changeDirection(
b
.get(j))) { collisionCount++; // Increment …y = 10 + i * 10; } while (!isFarEnough(x, y,
b
, i));
b
[i] = new Ball (x, y, 40); } BallPanel bp = new…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by toneewa
…if (i != j &&
b
.get(i).collides(
b
.get(j))) { if (
b
.get(i).changeDirection(
b
.get(j))) { collisionCount++; // Increment …y = 10 + i * 10; } while (!isFarEnough(x, y,
b
, i));
b
[i] = new Ball(x, y, 25); } BallPanel bp = new …
Re: Word Association Game
Community Center
Geeks' Lounge
4 Weeks Ago
by Dani
Seriously?! I need to go twice in a row
b
/c after almost two decades of this thread staying alive, no one's posted in 4 years? OK, fine ... snobby --> princess
VB2010- why i get a different vertical size\color on RayCasting?
Programming
Software Development
3 Weeks Ago
by cambalinho
…), RayCounts, 5) imgverticalline.ForeColor(RGB(VertColor.R, VertColor.G, VertColor.
B
)) imgverticalline.DrawLine(RayCounts, imgverticalline.Height / 2 - RayHeight \ 2, RayCounts, imgverticalline…
Re: How Build video-player in html And css ?
Programming
3 Weeks Ago
by Kirubel_2
…: 10px; border-radius: 15px; margin-left: 40%; margin-right: 5%; } #
b
{ transition: 1s all cubic-bezier(0.075, 0.82, 0…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by jprog1000
Thank you so much for your reply and additions! It is certainly working as I wanted. I will read through the code you have added and ask you any questions I might have. I hope you don't mind. Regards
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by Dani
I’ll mark this question solved :)
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by Dani
… oh, sorry, missed the bit about you still needing clarifications. Feel feee to ask :) I’ll now unmark this topic as solved. /facepalm
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by jprog1000
Hello, Thank you again so much! All your additions are clear, but it seems like whenever two balls collide, more than one ball is added to the arraylist and painted. Any way to have just one ball added to the panel for every collision? Have some kind of a toggle flag in paintcomponent? Regards
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by toneewa
Yes, this is true. Overlapping ball spawns can do that causing a chain reaction. Something like that could be done. How you handle the spawning of the new ball is what I played with a bit before. You will see better collision detection changing to: g.fillOval(ball.getX(), ball.getY(), 1 * ball.getRadius(), 1 * ball.getRadius());
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by jprog1000
Got it. Thank you so much!
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by vortex_1
In my opinion, implementing a feature in a bouncing balls simulation where a new ball is created when two balls collide can add an interesting and dynamic element to the simulation. This feature can introduce a sense of complexity and unpredictability, making the simulation more engaging and challenging for users. It could also provide an …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by jprog1000
Great reply, vortex! Agree with all your points.
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by aishamushtaq
Hi, Its helpful for me. I got my answer.
Re: Fantastic word game
Community Center
Geeks' Lounge
4 Weeks Ago
by Dani
It's been a year so I'll go twice in a row. Corner that burglar before he gets away!
Re: Word Association Game
Community Center
Geeks' Lounge
4 Weeks Ago
by Salem
princess -> castle
Re: Word Association Game
Community Center
Geeks' Lounge
4 Weeks Ago
by Dani
Castle —> Tower
Re: Word Association Game
Community Center
Geeks' Lounge
4 Weeks Ago
by Salem
Tower-> Babel
Re: Word Association Game
Community Center
Geeks' Lounge
4 Weeks Ago
by Read a Book
Babel -> JavaScript 🙌
Re: Word Association Game
Community Center
Geeks' Lounge
4 Weeks Ago
by Dani
JavaScript —-> react
Re: Word Association Game
Community Center
Geeks' Lounge
3 Weeks Ago
by Salem
react -> chemistry
Re: Word Association Game
Community Center
Geeks' Lounge
3 Weeks Ago
by Dani
chemistry --> moles
Re: Word Association Game
Community Center
Geeks' Lounge
3 Weeks Ago
by Salem
moles -> subterranean
Re: Word Association Game
Community Center
Geeks' Lounge
3 Weeks Ago
by Dani
subterranean --> termites
Re: Word Association Game
Community Center
Geeks' Lounge
3 Weeks Ago
by Reverend Jim
termites --> clint As in "I have a pet termite named Clint. Clint eats wood".
Re: Word Association Game
Community Center
Geeks' Lounge
3 Weeks Ago
by Dani
Clint —> movies
Re: Word Association Game
Community Center
Geeks' Lounge
3 Weeks Ago
by Salem
movies -> genre
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC