Page 1 of 1

BloxDodger - My First Game!

Posted: Sun Jun 08, 2014 6:05 am
by MicroMacro
With a bunch of help from other people like Zilarrezko and WindMill Games, I present BloxDodger!
Right now, BloxDodger is in Version 1.0

What do you do? Well, you move your character around a constantly randomized environment of red spawning blocks. They spawn translucent, but eventually turn solid, and are lethal at that point. After a few seconds, the world will turn black, but you still aren't safe. A new batch will be in soon!

Controls are WASD based.

There are a few bugs. If you press Play! quickly after starting up, your character turns red, until the first batch of baddies spawn. Just make sure you move around during this time, otherwise, you'll be killed by idleness.

Right now, there is no real goal, or end of the game. You just play and play until you can't anymore.

To download the current version in the .love format, it is attached at the bottom of this post. If you want an EXE, go here: http://bit.ly/1k8piT8

Re: BloxDodger - My First Game!

Posted: Sun Jun 08, 2014 8:30 am
by gestaltist
I tried it but it throws me back to the main menu after the first batch.

Re: BloxDodger - My First Game!

Posted: Sun Jun 08, 2014 9:33 am
by Eamonn
gestaltist wrote:I tried it but it throws me back to the main menu after the first batch.
I'm having the same problem. Other than that, looks like a good game :D Well done! I really like the simple menus as well :)

EDIT: Have you looked into love.graphics.rectangle?? You only have 2 textures, so if you want you could use love.graphics.rectangle to draw them. You already know how to draw images with transparency, so you'll be familiar with how do it with love.graphics.rectangle.

An (untested) example:

Code: Select all

function Enemy:draw()
	if self.age < 2 then
		love.graphics.setColor(255,255,255,100)
		love.graphics.rectangle("fill",self.x, self.y, 32, 32)
	else
		love.graphics.setColor(255,255,255,255)

                -- 32x32 are the dimensions of the square. You could have these in variables like width and height or something.
                -- "fill" means the square will be filled
		love.graphics.rectangle("fill",self.x, self.y, 32, 32)
	end

	love.graphics.setColor(255,255,255,255)
end
You don't have to do this, I'm just suggesting that for future use it might be a good idea. For example, using this, you can create bigger blocks without having to use scaling in love.graphics.draw, you can just dynamically adjust the width and height.

Great game :D I tried to find out why go you back to the main menu after you die, but I can't seem to figure it out! :( Sorry!

Re: BloxDodger - My First Game!

Posted: Sun Jun 08, 2014 3:37 pm
by MicroMacro
You're supposed to be thrown back to the menu. :P

I know there are a few bugs, and I do need to come up with a point to the game, but other than that, thanks for the approval!

Re: BloxDodger - My First Game!

Posted: Sun Jun 08, 2014 3:56 pm
by davisdude
Don't do love.graphics.rectangle, it was removed in 0.9.0

Re: BloxDodger - My First Game!

Posted: Sun Jun 08, 2014 4:18 pm
by Jeeper
davisdude wrote:Don't do love.graphics.rectangle, it was removed in 0.9.0
No it was not, https://www.love2d.org/wiki/love.graphics.rectangle

Re: BloxDodger - My First Game!

Posted: Sun Jun 08, 2014 4:49 pm
by davisdude
Right, my bad, that was love.graphics.quad

Re: BloxDodger - My First Game!

Posted: Mon Jun 30, 2014 10:19 am
by jasper.davis
until I read the code for player.lua, I had no idea you died if you didn't continually move around, like move or die. I added some lines of code to give me alittle help. I like it . you might consider putting them in as well. here they are:

Code: Select all

--put these into the playerdraw() function. it adds a bar that indicates the time still.
 love.graphics.setColor((c.timeStill*63.75), 255-(c.timeStill*63.75),0,200)
	love.graphics.rectangle("fill", love.graphics.getWidth()- 600, love.graphics.getHeight()- 80, c.timeStill * 100, 40)
	love.graphics.setColor(255,255,255,255)
I look forward to your other projects. keep it up!

Re: BloxDodger - My First Game!

Posted: Mon Jun 30, 2014 12:28 pm
by fxva
idea: nice.
realization: bad.
I voted 'yes' :emo: