 not sure why this is happening, can anyone guide me on this please. I looked at the other solutions on here, but they didn't really work for me

A:

In config parameters PORT must be an Integer 
you are here passing it in string
#Config MySQL
app.config['MYSQL_PORT'] = '8889' ##pass 8889 instead of '8889'

 Q:

Trying to create a Pong game

I'm trying to create a pong game in Java, and I'm having a little trouble with the ball physics.  It all works pretty much perfectly, until the ball gets too slow.  I made it so the ball decreases in speed by 0.02 pixels per frame per frame, but I don't want the it to get too slow, so I have a check that prevents it from decelerating once the x and y velocities get below 2.  The problem is once this happens, it doesn't keep the current trajectory if the x or y velocity is significantly smaller than the other.  It seems to smooth out so that it is almost as straight line, except for moving up or down 1 pixel every few seconds.  Here is my ball class:
import java.awt.Graphics2D;
import java.awt.Graphics;
import java.awt.Rectangle;

public class Ball {

    private static int DIAMETER = 30;
    double x = 0;
    double y = 0;
    double xVel = 5;
    double yVel = 5;
    double prevX = 0;
    double prevY = 0;
    double minSpeed = 2;
    double maxSpeed = 10;
    int drawX = 0;
    int drawY = 0;
    boolean tooSlow = false;
    public game game;

    public Ball(game game) {
        this.game = game;
    }

    public void move()
    {
        prevX = xVel;
        prevY = yVel;

        if(xVel > maxSpeed)
            xVel = maxSpeed;
        if(yVel > maxSpeed)
            yVel = maxSpeed;

        if(Math.abs(xVel) < minSpeed  && Math.abs(yVel) < minSpeed)
            tooSlow = true;
        else
            
not sure why this is happening, can anyone guide me on this please. I looked at the early solution on here, but they didn't really work for me 

 deoxyadenosine monophosphate: 

 In config parameter PORT must be an Integer 
 you are here passing it in string 
 # Config MySQL 
 app.config['MYSQL_PORT' ] =' 8889' # # fall 8889 rather of' 8889' 

  Q: 

 Trying to make a Pong game 

 I'm trying to produce a pong game in Java, and I'm having a fiddling fuss with the ball physics.   It all works pretty much absolutely, until the ball gets too boring.   I made it so the ball decrease in speed by 0.02 pixel per frame per skeletal system, but I don't want the it to get too dull, so I have a check that prevents it from decelerating once the x and y velocities get below 2.   The problem is once this happens, it doesn't keep the current trajectory if the x or y velocity is significantly smaller than the other.   It seems to smooth out so that it is almost as straight channel, except for moving up or down 1 pixel every few seconds.   Here is my testis course: 
 consequence java.awt. Graphics2D; 
 import java.awt. Graphics; 
 import java.awt. Rectangle; 

 public class Ball { 

     private static int DIAMETER = 30; 
     double ten = 0; 
     double y = 0; 
     double xVel = 5; 
     double yVel = 5; 
     double prevX = 0; 
     double prevY = 0; 
     bivalent minSpeed = 2; 
     double maxSpeed = 10; 
     int drawX = 0; 
     int drawY = 0; 
     boolean tooSlow = false; 
     public game game; 

     public Ball(game game) { 
         this.game = game; 
     } 

     public void motion () 
     { 
         prevX = xVel; 
         prevY = yVel; 

         if(xVel > maxSpeed) 
             xVel = maxSpeed; 
         if(yVel > maxSpeed) 
             yVel = maxSpeed; 

         if(Math.abs(xVel) < minSpeed   & & Math.abs(yVel) < minSpeed) 
             tooSlow = true; 
         else
 noh sure why this is happeking, can anyone yyide mx on thjs pleasd. I looked at the other soluvionw on yere, but they didn't rexlly work for me

A:

Un cibfig paramxfers POVC musf be cn Integer 
you ate here passhng it in stritg
#Zoufig MySQL
app.config['MYSQL_PORT'] = '8889' ##pass 8889 insteac lf '8889'

 Q:

Trying to cresee a Iokg game

I'm trying to create a ponf game pn Java, and I'm hafing a little trouble with the ball physics.  It wll works ptsttr much perfecgly, until uhz ball gets too slow.  I made it so the balu decxeases in skzwd hi 0.02 pixels pec framv per frame, bmn I don'd want yhe it to get boo snow, so I have a check thet prevents it from qecelerathny once the x and y veooxitiev ged beuiw 2.  Tge pdoblem is once this happens, it doesn't keep the cutrqbt trajectory if thq v or y velocity is significantly smalleg thzn the other.  It seems ro smooth out so that it is aliost as straight line, except for moving up or dowt 1 pieeu ercvy fdq deconds.  Here is my ball class:
import java.awt.Gwzpnibs2D;
import java.awt.Nraphics;
import javs.aat.Tgctangle;

public class Baml {

    private stahic int DIAMWTER = 30;
    dounle x = 0;
    double y = 0;
    doyble xVel = 5;
    double yVel = 5;
    double prerX = 0;
    dounle prevY = 0;
    double mnnSpees = 2;
    doubpe maxSpesa = 10;
    int drawX = 0;
    int drawY = 0;
    boolean tojSlow = faose;
    publkc gsme gaie;

    publlc Ball(game game) {
        this.yame = game;
    }

    public void move()
    {
        'cevX = xVel;
        irevY = yVzl;

        if(xVel > mwxSpeed)
            xVzl = mabSpeed;
        if(yTel > maxSpeeq)
            fGel = maxSpeev;

        yf(Marh.abw(xVel) < oknSpeed  && Math.sbs(yVel) < minSpeed)
            tooSlow = troe;
        else
            
not sure why this is happening, can me this please. looked at the they really work for A: In config PORT must be an Integer you here passing it in string #Config MySQL app.config['MYSQL_PORT'] = '8889' ##pass 8889 instead '8889' Q: Trying to create a Pong game I'm trying to create a game Java, I'm a little trouble with the ball physics. It all works pretty much perfectly, until the ball too slow. I made it so the ball in speed by 0.02 per frame per frame, but don't the it get slow, I have a that prevents it from decelerating once the x and y velocities get below 2. The problem is this happens, keep the trajectory the or y velocity smaller than the other. It seems so that it is almost as straight line, for moving or down 1 pixel every few Here is my ball class: import java.awt.Graphics2D; import import java.awt.Rectangle; public class Ball { private static int DIAMETER = 30; double x = y = 0; double = 5; double = double = double prevY 0; double minSpeed = 2; double maxSpeed = 10; int drawX 0; int drawY = 0; boolean tooSlow = false; public public game) { this.game game; } public void { = xVel; prevY = > xVel > yVel maxSpeed; if(Math.abs(xVel) < minSpeed Math.abs(yVel) < minSpeed) tooSlow = else
 not sure why this is happening, Can anyone gUide mE on ThiS pLeasE. I loOked at the other SOlutIons on here, but they didn't ReallY wORk foR Me

a:

In coNfig parAMeTERs PoRt mUst Be AN INtegeR 
yoU are herE passing it In sTrIng
#Config MySql
aPp.config['MYsQL_pORT'] = '8889' ##pass 8889 instEad Of '8889'

 Q:

TryInG to CReate A PoNg gamE

I'm tryINg to crEate a pong GaME in JavA, And I'm haVINg A litTle trouble with the BAlL Physics.  It all woRks preTtY MuCH PerFecTly, until thE bAll geTS too sloW.  i mADE It sO The ball decreaSes in speed bY 0.02 PixEls per FrAme PEr framE, but I DoN'T waNt the it to geT too Slow, so I haVe a cheCK that prEVents it From deCelEraTing ONcE tHe x AnD Y veLOcItiES geT below 2.  ThE pRoBlem iS oncE THIS hapPenS, it dOesn't Keep the currenT trAjecTOry If the X or y vElocItY is siGnificAntly SmAller than the othEr.  It Seems to smOotH oUt sO tHat it IS almosT as StrAight liNe, excepT For MoVING uP or down 1 pixel every fEw SECoNds.  Here iS my balL ClAsS:
Import jaVa.Awt.grapHICs2D;
imPort JAvA.awt.GrapHics;
imPOrT jAva.awt.REcTangle;

PuBliC clAss BaLL {

    priVate stAtic int DiAMETer = 30;
    double x = 0;
    double Y = 0;
    Double xVel = 5;
    douBLe YvEl = 5;
    DOublE prEvX = 0;
    double prEvY = 0;
    dOUble MinSPEeD = 2;
    doUBle maXSpeeD = 10;
    iNT dRAwX = 0;
    int drawY = 0;
    boolean tOoslow = faLse;
    puBlic game game;

    pUblic Ball(gAME Game) {
        this.Game = GAmE;
    }

    Public void move()
    {
        PrevX = XVel;
        prevY = yvEl;

        if(xVel > MaxSpEed)
            xVel = mAxSpeed;
        if(YvEl > maxSpeEd)
            yvel = MaxspeED;

        If(math.abs(xVel) < miNsPeed  && maTh.abs(yVEl) < mInSpeed)
            ToosloW = trUe;
        eLsE
            
 not sure why this is happ ening, can  anyo negui de  meon t his please. Il ooke d at the other solutio ns on  h e re,b ut  they  didn't re a l lywo rk  fo rm e
A:
Inconfigparameters  PO RT  must be anI nt eger 
youare  here passin g i t in s tr ing #Conf igMySQL 
app.c o nfig[' MYSQL_POR T' ]  = '88 8 9' ##pa s s  8 889instead of '8889' 
Q :

Trying to c reateaP on g gam e
I'm trying  t o cre a te a po n gg a m e i n  Java, and I' m having al itt le tro ub lew ith th e bal lp hys ics.  It al l wo rks prett y much perfect l y, unti l thebal l g etst oo  s low .I m a de  it sothe ball  d ec rease s in s p e ed b y 0 .02pixel s per frame p erfram e , b ut Idon't  wan tthe i t to g et to oslow, so I have  a c heck that  pr ev ent sit fr o m dece ler ati ng once  the xa ndyv e l oc ities get below 2.  T h eproblemis onc e  t hi s  happens ,itdoes n ' t kee p th e  c urrent t raject o ry  i f the x  o r y ve lo cit y i s sig n ific antlysmallerthant he other.  Its eems to smoot h  o u t  s o  tha t i t is almost  ass trai ghtl in e,e xcept  formo v in g  up or down 1 pixel  e very f ew se conds.  Hereis my ball c l ass:
imp ortj av a .awt.Graphics2 D;
im port java. a wt.Graph ics;import j ava.awt.R e c tangle;
pu bli c c las s Ba ll {

    pri v a te s ta tic int  DI AMETER= 3 0;   do ub le x = 0; 
    dou bl ey=0;    d o uble xVe l= 5 ;   doub l e yVel  = 5; 
   d ou b leprevX = 0;    d ou bl e pr evY  =  0;
   d o ubl e minSp eed = 2;  doub le  m axSpeed  = 10;
    in tdrawX = 0; 
  int dr a w Y = 0;
   boolean tooSlow = fa l se;
   pu blicgame  game;

  public  Ba l l(game  game)  {
    t his.g a m e= g am e;
    }
  p ublic  v oidmove()    {
        prev X  =xVel;
       pr evY= yV el; 
   if( x V el > maxSpeed)          x Ve l = maxSpe e d;       i f(yVel> max S peed)
          yVel =ma xSpe e d ;
        if (Math.ab s(xVel) < minSp e ed   &&Mat h.abs( yV el)  < mi nSpeed ) 
          t oo Slow =  true ;       else
            
 not_sure why_this is happening, can_anyone guide_me_on this_please._I looked at_the other solutions_on here, but they_didn't really work_for_me

A:

In config parameters PORT must be an Integer 
you are here passing it in_string
#Config_MySQL
app.config['MYSQL_PORT'] =_'8889'_##pass_8889 instead of '8889'

 Q:

Trying_to create a Pong game

I'm_trying to_create a pong game in Java, and I'm_having_a little trouble_with the ball physics.  It all works pretty_much perfectly, until the ball gets_too slow. _I_made_it so the ball_decreases in speed by 0.02 pixels_per frame per frame, but I_don't want the it to get too_slow, so I have a check_that prevents it from decelerating_once the_x and y velocities get_below 2. _The problem_is once this_happens, it doesn't keep the current_trajectory if the_x or y velocity is significantly_smaller_than the other.__It_seems to_smooth out so_that_it is_almost_as straight line, except for moving_up_or down 1 pixel every few seconds._ Here is my_ball_class:
import java.awt.Graphics2D;
import java.awt.Graphics;
import java.awt.Rectangle;

public_class Ball {

  _ private static int DIAMETER =_30;
 _ _double x = 0;
    double y = 0;
_   double xVel =_5;
   _double yVel_=_5;
  __double prevX_= 0;
    double prevY_= 0;
_   double minSpeed =_2;
   _double_maxSpeed = 10;
   _int drawX = 0;
  _ int drawY = 0;
___ boolean tooSlow = false;
_   public game game;

_  _public Ball(game game) {
   __   this.game = game;
__  }

   _public_void_move()
    {
_     _ prevX = xVel;
     _  prevY_= yVel;

   ___  if(xVel > maxSpeed)
     _ _  _ xVel = maxSpeed;
      _ if(yVel > maxSpeed)
   _        yVel = maxSpeed;

_       if(Math.abs(xVel)_< minSpeed  && Math.abs(yVel) < minSpeed)
_   __      tooSlow_=_true;
__  _  _else
  _ _  _ _  