change server ball movements to a Ball class
This commit is contained in:
@ -0,0 +1,54 @@
|
||||
# **************************************************************************** #
|
||||
# #
|
||||
# ::: :::::::: #
|
||||
# GameSettings.py :+: :+: :+: #
|
||||
# +:+ +:+ +:+ #
|
||||
# By: tomoron <tomoron@student.42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2024/10/06 16:33:56 by tomoron #+# #+# #
|
||||
# Updated: 2024/10/06 16:34:24 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
class GameSettings:
|
||||
ballRadius = 0.15
|
||||
playerLength = 1 + (ballRadius * 4)
|
||||
limits = {
|
||||
"left" : -3.5 + ballRadius,
|
||||
"right" : 3.5 - ballRadius,
|
||||
"back" : -6.25 + ballRadius,
|
||||
"front" : 6.25 - ballRadius
|
||||
}
|
||||
mapLength = 13
|
||||
startSpeed = 6
|
||||
jumperRadius = 0.2
|
||||
wallsPos = [
|
||||
{ "type":2, "pos": {"x": 1, "y": 0, "z": 1}, "isUp": False},
|
||||
{ "type":2, "pos": {"x": 1, "y": 0, "z": 1}, "isUp": True},
|
||||
{ "type":2, "pos": {"x": -1, "y": 0, "z": 1}, "isUp": False},
|
||||
{ "type":2, "pos": {"x": -1, "y": 0, "z": 1}, "isUp": True}
|
||||
]
|
||||
jumpersPos = [
|
||||
{ "type":1, "name":"J0", "pos":{"x": -1.5, "y": 0.2, "z":mapLength/4}, "isUp": False },
|
||||
{ "type":1, "name":"J1", "pos":{"x": -1.5, "y": 3.2, "z": mapLength / 4}, "isUp": True },
|
||||
{ "type":1, "name":"J2", "pos":{"x": 1.5, "y": 0.2, "z": mapLength / 4}, "isUp": False },
|
||||
{ "type":1, "name":"J3", "pos":{"x": 1.5, "y": 3.2, "z": mapLength / 4}, "isUp": True },
|
||||
{ "type":1, "name":"J4", "pos":{"x": -1.5, "y": 0.2, "z": -mapLength / 4}, "isUp": False },
|
||||
{ "type":1, "name":"J5", "pos":{"x": -1.5, "y": 3.2, "z": -mapLength / 4}, "isUp": True },
|
||||
{ "type":1, "name":"J6", "pos":{"x": 1.5, "y": 0.2, "z": -mapLength / 4}, "isUp": False },
|
||||
{ "type":1, "name":"J7", "pos":{"x": 1.5, "y": 3.2, "z": -mapLength / 4}, "isUp": True }
|
||||
]
|
||||
skins = [
|
||||
{id: 0, 'color': 0xff53aa, 'texture': None},
|
||||
{id: 1, 'color': 0xaa24ea, 'texture': None},
|
||||
{id: 2, 'color': 0x2c9c49, 'texture': None},
|
||||
{id: 3, 'color': 0x101099, 'texture': None},
|
||||
{id: 4, 'color': None, 'texture': '/static/img/skin/1.jpg'},
|
||||
{id: 5, 'color': None, 'texture': '/static/img/skin/2.jpg'},
|
||||
{id: 6, 'color': None, 'texture': '/static/img/skin/3.jpg'},
|
||||
{id: 7, 'color': None, 'texture': '/static/img/skin/4.jpg'},
|
||||
]
|
||||
wallLength = 1
|
||||
wallWidth = 0.05
|
||||
bounceSpeedIncrease = 0.2
|
||||
maxScore = 5
|
Reference in New Issue
Block a user