Re: How to properly apply OOP in the bouncing ball code

2015-05-13 Thread Gregory Ewing
Terry Reedy wrote: On 5/11/2015 8:42 PM, zipher wrote: Huh? VPython successfully models particle motion simulation with discrete events. That's a discrete approximation to a continuous process. The term "discrete event simulation" is usually used to mean modelling a process that is inherently

Re: How to properly apply OOP in the bouncing ball code

2015-05-12 Thread Oscar Benjamin
On 11 May 2015 at 16:22, Tommy C wrote: > Thanks for your help. > > I have updated the code as follows, there are no more errors but the images > will not move at all, as all the images are staying at the upper left corner. > Please advice, thanks. > > > import sys, pygame > > pygame.init() > >

Re: How to properly apply OOP in the bouncing ball code

2015-05-12 Thread Terry Reedy
On 5/11/2015 8:42 PM, zipher wrote: On Monday, May 11, 2015 at 7:25:09 PM UTC-5, Dennis Lee Bieber wrote: On Mon, 11 May 2015 08:33:56 -0700 (PDT), zipher declaimed the following: You are making a error that few in the programming community have caught up to. OOP design for *data abstraction

Re: How to properly apply OOP in the bouncing ball code

2015-05-11 Thread zipher
On Monday, May 11, 2015 at 7:25:09 PM UTC-5, Dennis Lee Bieber wrote: > On Mon, 11 May 2015 08:33:56 -0700 (PDT), zipher > declaimed the following: > >You are making a error that few in the programming community have caught up > >to. OOP design for *data abstraction* is a completely different be

Re: How to properly apply OOP in the bouncing ball code

2015-05-11 Thread zipher
On Friday, May 8, 2015 at 10:40:46 AM UTC-5, Tommy C wrote: > I'm trying to apply OOP in this bouncing ball code in order to have multiple > balls bouncing around the screen. The objective of this code is to create a > method called settings, which controls all the settings for the screen and >

Re: How to properly apply OOP in the bouncing ball code

2015-05-11 Thread Tommy C
Thanks for your help. I have updated the code as follows, there are no more errors but the images will not move at all, as all the images are staying at the upper left corner. Please advice, thanks. import sys, pygame pygame.init() size = width, height = 800, 600 black = [0,0,0] screen =

Re: How to properly apply OOP in the bouncing ball code

2015-05-08 Thread Mel Wilson
On Fri, 08 May 2015 08:40:34 -0700, Tommy C wrote: > I'm trying to apply OOP in this bouncing ball code in order to have > multiple balls bouncing around the screen. The objective of this code is > to create a method called settings, which controls all the settings for > the screen and the bouncin

Re: How to properly apply OOP in the bouncing ball code

2015-05-08 Thread Ian Kelly
On May 8, 2015 9:46 AM, "Tommy C" wrote: > > I'm trying to apply OOP in this bouncing ball code in order to have multiple balls bouncing around the screen. The objective of this code is to create a method called settings, which controls all the settings for the screen and the bouncing behaviour of

How to properly apply OOP in the bouncing ball code

2015-05-08 Thread Tommy C
I'm trying to apply OOP in this bouncing ball code in order to have multiple balls bouncing around the screen. The objective of this code is to create a method called settings, which controls all the settings for the screen and the bouncing behaviour of multiple balls, under the class Ball. Howe