BloxDodger - My First Game!

Show off your games, demos and other (playable) creations.
Post Reply

Do you like BloxDodger?

Yes
6
43%
No
4
29%
Kinda Sorta
4
29%
 
Total votes: 14

User avatar
MicroMacro
Citizen
Posts: 92
Joined: Fri May 30, 2014 2:30 am
Location: Boston, MA, USA
Contact:

BloxDodger - My First Game!

Post 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
Attachments
BloxDodger.love
Version 1.0, June 8, 2014
(13.08 KiB) Downloaded 285 times
https://github.com/ebernerd- where you can find all my work.
gestaltist
Prole
Posts: 49
Joined: Thu May 29, 2014 10:56 am

Re: BloxDodger - My First Game!

Post by gestaltist »

I tried it but it throws me back to the main menu after the first batch.
User avatar
Eamonn
Party member
Posts: 550
Joined: Sat May 04, 2013 1:29 pm
Location: Ireland

Re: BloxDodger - My First Game!

Post 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!
"In those quiet moments, you come into my mind" - Liam Reilly
User avatar
MicroMacro
Citizen
Posts: 92
Joined: Fri May 30, 2014 2:30 am
Location: Boston, MA, USA
Contact:

Re: BloxDodger - My First Game!

Post 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!
https://github.com/ebernerd- where you can find all my work.
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: BloxDodger - My First Game!

Post by davisdude »

Don't do love.graphics.rectangle, it was removed in 0.9.0
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
Jeeper
Party member
Posts: 611
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: BloxDodger - My First Game!

Post 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
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: BloxDodger - My First Game!

Post by davisdude »

Right, my bad, that was love.graphics.quad
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
jasper.davis
Prole
Posts: 24
Joined: Fri Oct 25, 2013 2:32 pm

Re: BloxDodger - My First Game!

Post 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!
fxva
Prole
Posts: 8
Joined: Sat Jul 13, 2013 4:54 am

Re: BloxDodger - My First Game!

Post by fxva »

idea: nice.
realization: bad.
I voted 'yes' :emo:
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 25 guests