Jump to content

? servers

? players online

SoulKeeper

Regular
  • Posts

    2096
  • Joined

Everything posted by SoulKeeper

  1. Don't do Screen().setup(500, 500) Assign the values to variables. WINDOWWIDTH = 500 WINDOWHEIGHT = 500 When you call turtle.screensize() you're going to receive (500, 500), which you need to split/index/do whatever to retrieve the height/width and assign to variables anyways. So just skip the steps and assign it to variables. If you could resize the window, then you'd want to dynamically accept the values to assign to the variables- but it's just hardcoding here. (The ability to resize the window would heavily affect how you design this too.) As for the complex conditionals; def checkCollision(actor, bounding): if actor.right > bounding.right or actor.left or actor.bottom > bounding.bottom or actor.top return False return True Is unnecessarily complex and requires additional steps, do: def checkCollision(ball, ballDirX, ballDirY): if ball.top == (LINETHICKNESS) or ball.bottom == (WINDOWHEIGHT - LINETHICKNESS): ballDirY = ballDirY * -1 if ball.left == (LINETHICKNESS) or ball.right == (WINDOWWIDTH - LINETHICKNESS): ballDirX = ballDirX * -1 return ballDirX, ballDirY (LINETHICKNESS is the paddles physical size) This is a hundred times more efficient and reverses the ball trajectory if it's impacted. All you did was check if it touched in a hundred different ways without interacting with it. You can also see if the paddles exceed top/bottom by: if paddle.bottom > WINDOWHEIGHT - LINETHICKNESS Which is another reason why you should have just made the height a variable instead of having 10 different steps for assigning it, getting it, splitting it, ext.
  2. I was replying to Raventi, stating RAM would have very little to do with your system; and RAM is in no way related to future proofing a system. Your OP is fairly confusing as there's little to no explanation. You've also miscalculated your PSU, you really only have ~100 watts of headroom. You never took into account fans, monitor, mouse, keyboard, ext. Keeping in mind you're supposed to aim for ~80% of your PSU. But it looks like you should be fine. I've probably calculated it wrong too, as I quickly rushed this and assumed you had 1 80mm fan and punched in other quick things real quick. Feel free to update it with the correct information. You've included the CPU fan, but you need to keep in mind your case has several fans, USB's, LEDs, audio/mic inputs that require power as well. https://outervision.com/b/5Ossi1 You're almost certaintly fine for your current build though. This is just a response to Raventi, who believes 16GB of RAM (which will have no affect on the system) is future proofing it opposed to upgrading a PSU, CPU, or GPU; the former crippling the system from receiving upgrades- effectively ruining the concept of "future proofing" it.
  3. My point is that 16GB of RAM, given his system, makes absolutely no sense. If you have a high-end PC, then yes, 16GB of RAM is required to fully utilize it. In absolutely no way is this future proofing the system. The system is bottle-necked by the motherboard and PSU, restricting it from future upgrades. https://www.pcgamer.com/how-much-ram-do-you-really-need-for-gaming/ RAM is more useful in web browsing; hence why tests are done with chrome/tabs open. It has applications in rendering and games, but it's limited and completely overshadowed by GPU/CPU's. Future proofing a system would be upgrading the motherboard to account for upgrading to a better CPU/GPU in the future. Future proofing a system would also be upgrading the PSU to ensure enough wattage for a better CPU/GPU, or for an SSD in the future. Future proofing the system is not wasting money on RAM, something that will not benefit your system whatsoever unless, for some odd reason, you have 300 tabs open on chrome while gaming. If you need to upgrade to 16GB of RAM for something, your CPU/GPU will be obsolete for the task so it doesn't even matter. Similarly to how your GPU/CPU from the 2GB/4GB era is completely obsolete for any games/applications that require 8GB of RAM. Take any old computer with 4GB of RAM and upgrade it to 16GB, you aren't going to miraculously see an improvement.
  4. Is there any reason why you have 2 HD's equaling 1.25 TB for $52 when you can get a 2 TB for $54? https://www.amazon.com/Seagate-BarraCuda-Cache-Desktop-ST2000DM006/dp/B01IEKG402/ref=sr_1_3?ie=UTF8&qid=1530672711&sr=8-3&keywords=2tb+hdd https://www.amazon.com/dp/B004Q3QMA4/?tag=pcpapi-20 Also, it's completely unnecessary to have 16GB of RAM, you'd be a hundred times better off getting 8GB and putting that money towards a better CPU/GPU. I don't know much about Radeon, but your CPU might be overpowered compared to the GPU too. Depending on your current hard-drive I'd recommend sticking with what you already have, you'd save $120 on buying Windows 10 again. If you need a new hard-drive you should still look into an alternative for re-buying the OS, $120 is a considerable amount that can be invested elsewhere.
  5. Python is a whitespace language. Indentation denotes blocks of code, not just conditional statements; it's integral for functions and blocks of code. Look at a language like C# which uses { & }, that's essentially what whitespace replaces in Python. Turtle isn't really an issue, you can use whatever framework you want. In fact, pygame is probably a bit overkill when it's just a pong game and you just need bareback animation for paddles and a ball, which honestly is usually done in ASCII for beginners. Instead of having complex and convoluted conditional statements, I'd recommend a completely different approach starting with a redefinition of how the game is built. Firstly, define the game arena. From this you'll have the width/height whose values are referenced to ensure the paddles don't exceed the height of the game. Secondly, define a class for the paddles and just instantiate the class for both players. If the ball ever touches a paddle, reverse direction- bonus points for capturing what height of the paddle the ball contacted and use this value to calculate the angle and trajectory of the ball. Loop the game, if the ball exceeds the width of the game which you defined previously trigger the end of the game, using the width to define where the ball exceeded to pick a winner.
  6. this is the first annual community poem, where members of the community will record themselves reciting the poem of the week my submission: https://vocaroo.com/i/s1Kz7r6CeqqC poem: most upvoted comment gets to rdm me in ttt
  7. masturbating, so pretty much what I've been doing since summer 2004 and respecting wamen
  8. K will forever live on in our hearts
  9. Looking for some real good Ark players Requirements: must be good dino daddies must like Jurassic park available to farm 14 hours a day if you meet these requirements hit me up
  10. http://hostthenpost.org/uploads/8bcef65d1ac1a8e7983259270429e5d5.png
  11. kappaclause OR kappaclaus
  12. Merry Christmas!

    merry xmas bois
  13. I'll be in Toronto Friday-Sunday, if any of yins are there we should meetup at some point. Going for Anime North so holla @ me :^)
  14. a legend never 2 b forgotten <3 <3 <3

  15. I wear yoga pants
  16. you know it's true, been doing girls since '82
  17. 2168 17 aka how old vnl is :gorilla:
  18. :gorilla: :gorilla:
  19. SG Quotes

    "I promise I'm not a legitimate autist" @starbucks Funniest quote !
  20. It doesn't matter how many safe guards you put in place, there will always be methods to steal your shit. All it does is make things harder; but not impossible. Sometimes they're for the better, sometimes they're for the worst. Before trade guards people stole your items and traded it through accounts in an attempt to not have it traced and returned. Before you had an opportunity to retrieve stolen items; not so much anymore. Trade restrictions spawned RATs that automatically trade items from your account, from your computer, from your home to people. Good luck retrieving an item that was sent from your desktop- opposed to the foreign IP/Computer that occurred pre guard era.
  21. :gorilla: Omelette du fromage

  22. My favorite type of booby is the kind attached to a girl
×
×
  • Create New...