Search found 3 matches

by uberSamji
Sat Sep 06, 2014 11:16 am
Forum: Support and Development
Topic: Update paddle position on 2nd client
Replies: 0
Views: 1385

Update paddle position on 2nd client

Hi. I am trying to add network play to my Pong game. I have a server which listens for position commands for a paddle over UDP. As the first paddle (paddle1) is moved in Pong 1, a clone paddle (netpaddle1), receives the co-ordinates of paddle1 to set its position in Pong game 2. The co-ordinates are...
by uberSamji
Tue Aug 19, 2014 7:31 pm
Forum: Support and Development
Topic: Restart a game
Replies: 2
Views: 8189

Re: Restart a game

Thanks! The following did the trick.

Code: Select all

	elseif GAME_ACTIVE == false and key == 'y' then
		GAME_ACTIVE = true
		STATE = 'play'
		SCORE_PLAYER_1 = 0
		SCORE_PLAYER_2 = 0
		love.load()
	end
by uberSamji
Tue Aug 19, 2014 3:54 pm
Forum: Support and Development
Topic: Restart a game
Replies: 2
Views: 8189

Restart a game

Hi there. I am new to LÖVE and have been working on a rudimentary Pong implementation. First I load the game elements (ball, paddles, scoreboard, etc.) function love.load() ball = Ball.create(SCREEN_WIDTH / 2 , 250, SCREEN_WIDTH, SCREEN_HEIGHT) paddle1 = Paddle.create(1, 15, SCREEN_HEIGHT, 'w', 's')...