Page 1 of 2

Fckyu

Posted: Wed Jan 11, 2012 2:16 am
by jradich
Soo my newest venture into the world of coding is this small 'lil game that i have no title for. The goal that I am currently working on is to have a game where using the other ball, u use a ball to propel yourself into the objective. Here is the old, prehistoric version I have for you all. Notice!: There is like little to no progress on this WHATSOEVER, I just wanted to get my idea out here.

EDIT!: for anyone who cares about my progress, ch-checkout fckyu. By the way, that is the name of the game. fckyu.

EDIT!!!: LEGALIZED IT!

EDIT!!!!!: I just want to get some controls out for my game right now, before I forget to post them and stuff and I cause crazy she-it to go on. NOTE: Some of these will not be seen until I post the 3rd fckyu

X: Gravity Reversal
C: Normal Gravity
R: Restart

EDIT!!!!!!: if you payed close attention, you'd notice I took off a lot of controls. That's cause I thought they'd take some of the obstacles out of the game. Soo yeah, there's that.

Re: Weird Game

Posted: Wed Jan 11, 2012 4:30 am
by waraiotoko
This looks like the physics tutorial, might be best to post a more complete version if you want feedback.

Re: Weird Game

Posted: Wed Jan 11, 2012 12:11 pm
by jradich
waraiotoko wrote:This looks like the physics tutorial, might be best to post a more complete version if you want feedback.
Yeah I was using the physics tutorial to see how to get the game to actually work, but I will make it better.

Re: Weird Game

Posted: Wed Jan 11, 2012 12:26 pm
by coffee
jradich wrote: Yeah I was using the physics tutorial to see how to get the game to actually work, but I will make it better.
You really need to make it better. If I move the ball out of screen and try to bring it back the ball never appears again. I guess the ball fall down outside the screen right? But that's the way! Keep learning and improving from the tutorials. :)

Re: Weird Game

Posted: Wed Jan 11, 2012 10:30 pm
by jradich
Thanks coffee. In other news... BREAKTHROUGH! New system I just implemented, it records the state of your game. I call it "gamestate" (gotta give a lil credit to Maurice here). Ch-check it out!!

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, 650/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, 650/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
end

function love.keypressed(key)
	if key == 'escape' then
		love.event.push('q')
	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
  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

Re: Fckyu

Posted: Thu Jan 12, 2012 12:01 pm
by coffee
619 Bytes to 4.46MIB? "strange"! A heavy illegal copyrighted song annexed to LOVE forum? Courtney (without any Love) could legally suite us now! "fckyu"! :joker:

Re: Fckyu

Posted: Thu Jan 12, 2012 2:31 pm
by thelinx
Please don't upload anything that could get us sued. Thanks.

Re: Fckyu

Posted: Thu Jan 12, 2012 4:57 pm
by MarekkPie
Yeah, I saw the bump in size and was immediately hesitant about downloading it.

Re: Fckyu

Posted: Thu Jan 12, 2012 8:06 pm
by waraiotoko
You changed the colors, gamestate only changes if you move right, not left, still no real difference from the physics tutorial...don't know what to tell ya. :|

Re: Fckyu

Posted: Thu Jan 12, 2012 8:49 pm
by jradich
oh shat I will make this more legal Sorry! And wariotoko, I did say that this is an early version.