Page 2 of 2

Re: Fckyu

Posted: Thu Jan 12, 2012 9:10 pm
by jradich
The love community may still be pissed at me, but for all who care, I added a part that reverses gravity... Forgive me community!

Re: Fckyu

Posted: Fri Jan 13, 2012 1:01 am
by thelinx
We never hated you, we just don't want to get shut down by the MPAA.

All is well :awesome:

Re: Fckyu

Posted: Fri Jan 13, 2012 1:22 am
by veethree
Honestly, What are you hoping to achieve by posting this game in the current state? There are barely any game mechanics or anything. If you're looking for feedback i'd suggest getting a bit more of the game finished before posting it. Not hating on you, Just saying (:

Re: Fckyu

Posted: Fri Jan 13, 2012 2:06 am
by jradich
veethree wrote:Honestly, What are you hoping to achieve by posting this game in the current state? There are barely any game mechanics or anything. If you're looking for feedback i'd suggest getting a bit more of the game finished before posting it. Not hating on you, Just saying (:
Well... yeah.... ummm.... on the weekend I plan to work on this A LOT, probably an unhealthy amount, so there will probably be a level or something done by then sooo.... umm.... at the present state I kinda wanted to get my idea out there and stuff, but... hmmm....

Just wondering, is there any way to make a "magnet like attraction" in love?

Re: Fckyu

Posted: Fri Jan 13, 2012 2:16 am
by MarekkPie

Re: Fckyu

Posted: Fri Jan 13, 2012 2:20 am
by jradich
I am in your debt, sir.

Re: Fckyu

Posted: Fri Jan 13, 2012 12:19 pm
by coffee
jradich wrote:The love community may still be pissed at me, but for all who care, I added a part that reverses gravity... Forgive me community!
I'm not also pissed with you even that I was the one who snitch you , but yes you need to be more careful when adding and distribute your stuff in public ways. And well perhaps have better taste when choosing project names. So go work and then do really some improvement on your project.

Re: Fckyu

Posted: Sat Jan 14, 2012 12:33 am
by jradich
If anyone would like to sneak a peek, then copy/paste this into a main.lua, put that in a folder, and put that folder in love. enjoy.

Code: Select all

function love.load()
	
  gamestate = ('idle')

  world = love.physics.newWorld(0, 0, 650, 650) 
  world:setGravity(100, 250) 
  world:setMeter(64) 
  
  objects = {}

  objects.ground = {}
  
  objects.ground.body = love.physics.newBody(world, 650/2, 625, 0, 0) 
  objects.ground.shape = love.physics.newRectangleShape(objects.ground.body, 0, 0, 650, 50, 0) 
  
  objects.ball = {}
  
  objects.ball.body = love.physics.newBody(world, 0/2, 1000/2, 15, 0)
  objects.ball.shape = love.physics.newCircleShape(objects.ball.body, 0, 0, 20)

  objects.weirdfloatythingy = {}
  
  objects.weirdfloatythingy.body = love.physics.newBody(world, 200/2, 1000/2, 100, 100)
  objects.weirdfloatythingy.shape = love.physics.newCircleShape(objects.weirdfloatythingy.body, 0, 0, 20)
  love.graphics.setBackgroundColor(300, 300, 300)
  love.graphics.setMode(650, 650, false, true, 0) 
end


function love.update(dt)
  
  world:update(dt) 

  if love.keyboard.isDown("right") then 
    objects.ball.body:applyForce(400, 0) 
  elseif love.keyboard.isDown("left") then
		objects.ball.body:applyForce(-400, 0)
  end
  if love.keyboard.isDown("x") then
	world:setGravity(-100, -250)
	gamestate = ('OH NOOOO!')
  end
  if love.keyboard.isDown("c") then
	world:setGravity(100, 250)
  end
  if gamestate == ('powerboosttt') then
	objects.ball.body:applyForce(1000, 0)
  end
  if gamestate == ('backwardsboost') then
	objects.ball.body:applyForce(-1000, 0)
  end
  if love.keyboard.isDown("q") then
  gamestate = ('idle')
  
  world = love.physics.newWorld(0, 0, 650, 650) 
  world:setGravity(100, 250) 
  world:setMeter(64) 
  
  objects = {}
  
  objects.ground = {}
  
  objects.ground.body = love.physics.newBody(world, 650/2, 625, 0, 0) 
  objects.ground.shape = love.physics.newRectangleShape(objects.ground.body, 0, 0, 650, 50, 0) 
  
  objects.ball = {}
  
  objects.ball.body = love.physics.newBody(world, 0/2, 1000/2, 15, 0)
  objects.ball.shape = love.physics.newCircleShape(objects.ball.body, 0, 0, 20)

  objects.weirdfloatythingy = {}
  
  objects.weirdfloatythingy.body = love.physics.newBody(world, 200/2, 1000/2, 100, 100)
  objects.weirdfloatythingy.shape = love.physics.newCircleShape(objects.weirdfloatythingy.body, 0, 0, 20)
  
  love.graphics.setBackgroundColor(300, 300, 300)
  love.graphics.setMode(650, 650, false, true, 0) 
  end
end
	
function love.keypressed(key)
	if key == 'r' then
		gamestate = ('powerboosttt')
	end
	if key == 'e' then 
		gamestate = ('backwardsboost')
	end
	if key == 'left' then
		gamestate = ('playing')
	end
        if key == 'right' then
                 gamestate = ('playing')
    end
	if key == 'p' then
		gamestate = ('serious')
    end
	if key == 'escape' then
		love.event.push('q')
	end
end

function love.keyreleased(key)
	if key == 'right' then
		gamestate = ('idle')
	end
	if key == 'r' then
		gamestate = ('idle')
	end
	if key == 'e' then
		gamestate = ('idle')
	end
	if key == 'left' then
		gamestate = ('idle')
	end
  end


function love.draw()
	
  love.graphics.setColor(100, 100, 100)
  love.graphics.polygon("fill", objects.ground.shape:getPoints()) 
  
  if gamestate == ('idle') then
  love.graphics.setColor(1, 1, 1)
  love.graphics.print('idle', 300, 300)
  end
  
  if gamestate == ('playing') then
  love.graphics.setColor(1, 1, 1)
  love.graphics.print('Effin Around', 300, 300)
  end
  
  if gamestate == ('backwardsboost') then
  love.graphics.setColor(1, 1, 1)
  love.graphics.print('Man walks on moon!', 250, 300)
  end
  if gamestate == ('powerboosttt') then
  love.graphics.setColor(1, 1, 1)
  love.graphics.print('HOLY F**KIN SHAT', 250, 300)
  end
	
  if gamestate == ('OH NOOOO!') then
  love.graphics.setColor(1, 1, 1)
  love.graphics.print('You drank the fizzy drink.', 200, 300)
  end
  
  if gamestate == ('goodjob') then
  love.graphics.print('+1', 200, 300)
  end
  
  love.graphics.setColor(1, 1, 1)
  love.graphics.circle("fill", objects.ball.body:getX(), objects.ball.body:getY(), objects.ball.shape:getRadius(), 20)

  
  love.graphics.print('WTF IS THIS??', 400, 300)
  
  love.graphics.setColor(1, 1, 1) 
  love.graphics.circle("fill", objects.weirdfloatythingy.body:getX(), objects.weirdfloatythingy.body:getY(), objects.weirdfloatythingy.shape:getRadius(), 20) 
end