## Oh snap, aliens!

Show off your games, demos and other (playable) creations.
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

### Re: Oh snap, aliens!

A new version is up. This one has a lot of performance improvements. Turns out I was doing something really dumb with the collision checking. I was doing something like:

Code: Select all

for i,v in ipairs(projectiles.onscreen) do
--update positions and stuff
for n,c in ipairs(enemies.onscreen) do
--update enemy positions and stuff
for i,v in ipairs(projectiles.onscreen) do
checkforcollision(v.position, c.position)
end
end
end

Needless to say, that was a bit redundant and even more embarrassing not to notice.

I have also added random debris that can kill both you and the enemies if you run into it. At the moment there's only one type of debris, but more could easily be added in just one line (stray satellites, anyone?). I would like to add more types of enemies as well, but I haven't been able to find any good, free images to use - and I'm way too lazy to make them myself (took me long enough to make all the airforce badges). Last but not least, I added a couple of sound effects that were missing.

As always, let me know if you have any suggestions or ideas.

Chief
Party member
Posts: 101
Joined: Fri Mar 12, 2010 7:57 am
Location: Norway, 67° north

### Re: Oh snap, aliens!

oooooh snap! I liked it! Lovely work.

matthewburk
Prole
Posts: 15
Joined: Fri Mar 05, 2010 6:56 am

### Re: Oh snap, aliens!

Grats, looks nice.

nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

### Re: Oh snap, aliens!

Updated to version 0.3 today (ok, maybe it's not worth a 0.X-incrementation yet, but IT'S MY GAME AND I'LL DO WHAT I WANT!! MOAHAHAHA!)
With this release I added the first of (hopefully) many powerups to come: a forcefield that protects your ship from both asteroids and enemies!
However, I also added a new way to fail. In the lower-right corner you can see a map of earth as seen from space (only flattened out). When the game starts the world is lit up with lights, but as you let enemies get by you, they go down to the planet and wreak havoc, and the lights quite literally go out for earth's inhabitants. Once the planet is completely dark, the aliens have killed off any trace of human civilization, and you have lost the game.

In the future I plan to make it so that earth slowly regenerates itself, as long as you don't let any more aliens past you.

However, I will probably be adding fixes and stuff fairly soon, so I recommend getting the development version.

gurke93
Prole
Posts: 5
Joined: Fri Feb 19, 2010 7:40 pm

### Re: Oh snap, aliens!

Can anyone explain this screen? In every Love-Application i am only able to see white rectangles instead of the real images, I am using Love 0.6.2 under Ubuntu 9.10.

The curser Image is stil workin you can only see it on the picture because of the ubuntu snapshot function.

Attachments
Bildschirmfoto.png (344.04 KiB) Viewed 2232 times

nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

### Re: Oh snap, aliens!

gurke93 wrote:Can anyone explain this screen? In every Love-Application i am only able to see white rectangles instead of the real images, I am using Love 0.6.2 under Ubuntu 9.10.

The curser Image is stil workin you can only see it on the picture because of the ubuntu snapshot function.

That's odd. There is a problem with some graphics cards not being able to display images which have non-power-of-two sizes, but all my images are padded to be powers of two - so there shouldn't be a problem.

EDIT: Unless I misunderstood the issue, and you actually need to have perfectly square images with each side being a power of two. So that 64x128 wouldn't work, but 128x128 would. That would explain why some images work for you (like the square pointer and the earth). Either way, this is something that should be fixed in Löve rather than in every individual game.

TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

### Re: Oh snap, aliens!

I believe some rare graphics drivers are super picky and want square images of power of 2. On one of my parent's laptops I couldn't get some images to show even after making it square though.

gurke93
Prole
Posts: 5
Joined: Fri Feb 19, 2010 7:40 pm

### Re: Oh snap, aliens!

Is LÖVE able to fix the issue?

bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

### Re: Oh snap, aliens!

This is not an issue with LÖVE, it is something between OpenGL, the video drivers and the video card.

Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

### Re: Oh snap, aliens!

nevon wrote:EDIT: Unless I misunderstood the issue, and you actually need to have perfectly square images with each side being a power of two. So that 64x128 wouldn't work, but 128x128 would. That would explain why some images work for you (like the square pointer and the earth). Either way, this is something that should be fixed in Löve rather than in every individual game.
For me that is not necessary. 64x128 would work for me.