- Aug 13, 2019
- 1,898
- 2,923
I'm trying to do a relatively simple Breakout mini-game in ren'py using the tutorial's pong game as a basis.
However, for starters, I can't even get the initial parameters to read as an x position instead of a y position.
The lines
Can I get some help and guidance on how to make video games? So far I've been working with only simple scripts, and I see that things like pygame code can be relatively complicated. I know how to build in python, and this is similar, but I'm also trying to do other things like, for example, make the "paddle" move freely in the bottom part of the screen, and have the mouse left and right clicks send the balls towards different directions.
Here's the code so far:
Shield: Paddle
Shield_toss: The ball
Arena: the boundaries
Steven: The Player.
Here's how the arena should look in a 1080p display.
However, for starters, I can't even get the initial parameters to read as an x position instead of a y position.
Code:
self.SHIELD_WIDTH = 95
self.SHIELD_HEIGHT = 12
self.SHIELD_X = 240
self.SHIELD_TOSS_WIDTH = 15
self.SHIELD_TOSS_HEIGHT = 15
self.ARENA_TOP = 30
self.ARENA_BOTTOM = 1020
self.ARENA_LEFT = 600
self.ARENA_RIGHT = 1300
self.ARENA_LEFT = 600
and self.ARENA_RIGHT = 1300
are supposed to be x positions to mark the left and right borders of the "arena" for the breakout style game, since, unlike pong, it's a vertical display and not horizontal. That also means that the "ball" don't really have anywhere to bounce off of the sides, only top/bottom, which is read as left/right in this instance.Can I get some help and guidance on how to make video games? So far I've been working with only simple scripts, and I see that things like pygame code can be relatively complicated. I know how to build in python, and this is similar, but I'm also trying to do other things like, for example, make the "paddle" move freely in the bottom part of the screen, and have the mouse left and right clicks send the balls towards different directions.
Here's the code so far:
Shield: Paddle
Shield_toss: The ball
Arena: the boundaries
Steven: The Player.
You don't have permission to view the spoiler content.
Log in or register now.
Here's how the arena should look in a 1080p display.
You don't have permission to view the spoiler content.
Log in or register now.