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.
Fckyu
Fckyu
- Attachments
-
- fckyu.love
- Forgive me!
- (742 Bytes) Downloaded 129 times
-
- strange.love
- CAUTION!
- (619 Bytes) Downloaded 132 times
Last edited by jradich on Sat Jan 14, 2012 7:58 pm, edited 6 times in total.
Losing a friend's trust is the fastest way to lose a friend, forever. FOREVER!
-
- Prole
- Posts: 33
- Joined: Thu Oct 06, 2011 6:08 pm
Re: Weird Game
This looks like the physics tutorial, might be best to post a more complete version if you want feedback.
Re: Weird Game
Yeah I was using the physics tutorial to see how to get the game to actually work, but I will make it better.waraiotoko wrote:This looks like the physics tutorial, might be best to post a more complete version if you want feedback.
Losing a friend's trust is the fastest way to lose a friend, forever. FOREVER!
Re: Weird Game
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.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.
Re: Weird Game
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
Losing a friend's trust is the fastest way to lose a friend, forever. FOREVER!
-
- Prole
- Posts: 33
- Joined: Thu Oct 06, 2011 6:08 pm
Re: Fckyu
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.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 5 guests