Oh snap, aliens!

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

Re: Oh snap, aliens!

Post by nevon » Mon Mar 15, 2010 3:14 pm

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.

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

Re: Oh snap, aliens!

Post by Chief » Tue Mar 16, 2010 6:58 pm

oooooh snap! I liked it! Lovely work.

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

Re: Oh snap, aliens!

Post by matthewburk » Thu Mar 18, 2010 7:51 am

Grats, looks nice.

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

Re: Oh snap, aliens!

Post by nevon » Thu Mar 18, 2010 8:45 pm

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.

Image

You can download the .love file from here: http://github.com/downloads/Nevon/Oh-sn ... s-0.3.love

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!

Post by gurke93 » Mon Mar 22, 2010 10:00 am

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.

Please Help.
Attachments
Bildschirmfoto.png
Only white rectangles instead of menu-pictures.
Bildschirmfoto.png (344.04 KiB) Viewed 2232 times

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

Re: Oh snap, aliens!

Post by nevon » Mon Mar 22, 2010 11:44 am

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.

Please Help.
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.

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

Re: Oh snap, aliens!

Post by TechnoCat » Mon Mar 22, 2010 1:36 pm

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!

Post by gurke93 » Mon Mar 22, 2010 3:48 pm

Is LÖVE able to fix the issue?

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

Re: Oh snap, aliens!

Post by bartbes » Mon Mar 22, 2010 3:51 pm

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

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

Re: Oh snap, aliens!

Post by Robin » Mon Mar 22, 2010 4:05 pm

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.
Help us help you: attach a .love.

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests