Last Defense--Retro space invaders/Breakout game

Show off your games, demos and other (playable) creations.
benny hill
Prole
Posts: 3
Joined: Sun Apr 01, 2012 5:08 pm

Last Defense--Retro space invaders/Breakout game

Post by benny hill »

Hi! I thought I'd show off my first LOVE project. I thought about what would happen if you took Space Invaders and mixed it with Breakout. This is what I came up with in around a week of work.

I'm really happy with Love. I also used the HUMP framework and cron.lua (though HUMP now has all the features of cron.lua so I'll be using that in the future).

I did all the artwork myself using a pixel editor. It was a fun little project. It may end up in a games cabinet my college's game dev club has set up, which is the main reason I made the high scores system.

Enjoy!
Attachments
LastDefense.love
(311.38 KiB) Downloaded 402 times
Last edited by benny hill on Sun Apr 01, 2012 9:26 pm, edited 1 time in total.
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: Last Defense--Retro space invaders/Breakout game

Post by coffee »

Very good mashup concept. I liked the artwork too. Also the need of protect the bases reminds me Missile Command. Good work.
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Last Defense--Retro space invaders/Breakout game

Post by josefnpat »

Am I doing something wrong?

Code: Select all

seppi@seppi7:~/Downloads/love$ love LastDefense.love 
Error: [string "cron.lua"]:80: dt must be a positive number
stack traceback:
	[C]: in function 'assert'
	[string "cron.lua"]:80: in function 'update'
	[string "main.lua"]:49: in function '?'
	[string "hump/gamestate.lua"]:83: in function '?'
	[string "hump/gamestate.lua"]:76: in function 'update'
	[string "boot.lua"]:1: in function <[string "boot.lua"]:1>
	[C]: in function 'xpcall'
AL lib: ALc.c:1818: alcCloseDevice(): deleting 1 Buffer(s)
seppi@seppi7:~/Downloads/love$ love-unstable LastDefense.love 
Error: invader.lua:19: attempt to call method 'setSize' (a nil value)
stack traceback:
	invader.lua:19: in main chunk
	[C]: in function 'require'
	main.lua:14: in main chunk
	[C]: in function 'require'
	[string "boot.lua"]:331: in function <[string "boot.lua"]:227>
	[C]: in function 'xpcall'
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
benny hill
Prole
Posts: 3
Joined: Sun Apr 01, 2012 5:08 pm

Re: Last Defense--Retro space invaders/Breakout game

Post by benny hill »

That never happened to me, but it looks like for some reason the update parameter is negative... This was only tested on 0.7.2 though, so maybe that's the problem?
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: Last Defense--Retro space invaders/Breakout game

Post by coffee »

josefnpat wrote:Am I doing something wrong?

Code: Select all

seppi@seppi7:~/Downloads/love$ love LastDefense.love 
Error: [string "cron.lua"]:80: dt must be a positive number
stack traceback:
	[C]: in function 'assert'
	[string "cron.lua"]:80: in function 'update'
	[string "main.lua"]:49: in function '?'
	[string "hump/gamestate.lua"]:83: in function '?'
	[string "hump/gamestate.lua"]:76: in function 'update'
	[string "boot.lua"]:1: in function <[string "boot.lua"]:1>
	[C]: in function 'xpcall'
AL lib: ALc.c:1818: alcCloseDevice(): deleting 1 Buffer(s)
seppi@seppi7:~/Downloads/love$ love-unstable LastDefense.love 
Error: invader.lua:19: attempt to call method 'setSize' (a nil value)
stack traceback:
	invader.lua:19: in main chunk
	[C]: in function 'require'
	main.lua:14: in main chunk
	[C]: in function 'require'
	[string "boot.lua"]:331: in function <[string "boot.lua"]:227>
	[C]: in function 'xpcall'
That only happens to me in 0.8.0 (with less error comment). All runs fine in my OSX 0.7.2 version.
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Last Defense--Retro space invaders/Breakout game

Post by josefnpat »

Code: Select all

seppi@seppi7:~$ love --version
LOVE 0.7.2 (Game Slave)
seppi@seppi7:~$ love-unstable --version
LOVE 0.8.0 (Rubber Piggy)
It also happens in 0.7.2
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
Larsii30
Party member
Posts: 267
Joined: Sun Sep 11, 2011 9:36 am
Location: Germany

Re: Last Defense--Retro space invaders/Breakout game

Post by Larsii30 »

for my part is it working.
Nice game mix :) It's fun to play, I think the bullets of the aliens could fly up faster after they hit the player.

Good work.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Last Defense--Retro space invaders/Breakout game

Post by Nixola »

Why do EVERYONE ignore PO2_Syndrome T.T
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
benny hill
Prole
Posts: 3
Joined: Sun Apr 01, 2012 5:08 pm

Re: Last Defense--Retro space invaders/Breakout game

Post by benny hill »

Nixola wrote:Why do EVERYONE ignore PO2_Syndrome T.T
Haha, again, this is my first love game, so I didn't spend any time dealing with issues I personally didn't have. I'll be sure to worry about it for my next project.
Last edited by benny hill on Sun Apr 01, 2012 11:28 pm, edited 1 time in total.
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Last Defense--Retro space invaders/Breakout game

Post by josefnpat »

I think I figured out your problem.

I am using an i7-920 and It started working a lot better when I was taxing my system with a lot of stuff in the background.

My system runs the love.update so fast, that it reads dt as zero.

To fix this issue, remove line 80 of cron.lua:

Code: Select all

--  assert(type(dt) == "number" and dt > 0, "dt must be a positive number")
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 8 guests