Hi, so I am trying to create a text file, that holds coordinates of bricks for the game brick breaker. I have a the textfile labeled as level1, and the coordinates are -5,9,0 -4,9,0 -3,9,0 now I am having trouble with getting python to open the file, and read the coordinates. I am not sure what command I would use to get that. also I am not sure on how to convert them into integers once they are read. Because they are currently in string form

Member Avatar
Member Avatar
+0 forum 9

Hi, I am trying to make a brick breaker game, but I am stuck. i need help moving the panel, and getting the ball to bounce off of bricks upon collision and erase the bricks. Also I wanted to create two lists, one that contains coordinates, the second would be an empty list, which would read the coordinates, and then create a brick, then add it to that empty list, I am just unsure on how to do this. here is my outline code[CODE]from visual import* scene.title = 'brick' scene.range=10 brick1=box(pos=(-5,9,0), length=1, height=1, width=1, color=color.white, material=materials.marble) brick2=box(pos=(-4,9,0), length=1, height=1, width=1, …

Member Avatar
Member Avatar
+0 forum 8

Just wondering what everyone else is thinking. Due to the ongoing economic situation and the fact that the stimulus has been a bust (unless of course you are working for the government!), I think more people will look to pay cash rather than use credit. Even with paypal and the use of debit cards online, I think it will be a 50-50 split.

Member Avatar
Member Avatar
+0 forum 5

Here on Long Island, the local newspaper Newsday recently began a policy that if you are not a subscriber to Newsday and are not an Optimum Cable customer of their parent company, Cablevision, you will have to pay $5 per week to access the newspaper's website. I think this is a case of a dying newspaper (Newsday has been losing readership and subscribers at a steady rate over the last few year) owned by a company that is notorious for jacking up the rates on their cable services because they are the only cable provider on LI, using e-commerce to …

Member Avatar
Member Avatar
+0 forum 2

Many companies bring products to market and they either go straight to an e-commerce strategy or they build up to an e-commerce strategy. But is there a time when you decide that you have gotten all you can out of an e-commerce strategy and move that product back to a direct marketing strategy of stocked shelves in brick & mortar environments?

Member Avatar
+0 forum 0

The End.