Meteor

Creations

DFX2KX

3 weeks ago

I decided to let the lot of you mess around with the very broken attempt at Asteroids I've been working on for the past week and a half.

Update:
I indeed WAS missing something obvious, converting from radians to degrees is overcomplicated for this type of game


With some help from Riksu9000's tutorial, I went from non-functional mess that I wanted nothing to do with to this:

Todo:

improve the draw function to draw the portion of the ship that has slipped off of the screen onto the other end of the screen (like classic Asteroids, not quite sure how I'll do this, but I have a few ideas)

Asteroids (kinda need something to shoot at, after all!)

laser and collision detection (*silently weeps*)

pixel art and intro screen for the game to bring it up to standards with the other games here.

The link to the file is below as well, because adding a file for direct download from the site seems... glitchy for some reason. So is adding a cover image.

Meteor.zip


View full creation

Riksu9000

NEW 2 weeks ago

Hi. I made this little demo from scratch. Hope it helps! :) https://drive.google.com/file/d/1ROVdQDlP7lrujvso1srdsOtmMUFTjjww/view?usp=sharing

Aurélien Rodot

2 weeks ago

Hey, you can attach files to your post, please avoid external hosting as it will eventually get down. Thanks!

Aurélien Rodot

NEW 2 weeks ago

Riksu9000 Riksu9000

Hey, you can attach files to your post, please avoid external hosting as it will eventually get down. Thanks!

Riksu9000

2 weeks ago

Uploading files doesn't seem to work for me. It just says "SOMETHING WENT WRONG. PLEASE TRY AGAIN." Tried firefox and chromium on windows and linux and tried to upload different files but it always fails.

DFX2KX

2 weeks ago

oh, sorry about that. I wasn't sure how to actually do that. The internet was not cooperating, so it took a few attempts just to get this.

(edit: fixed, though it names the zip something odd)

Riksu9000

NEW 2 weeks ago

Aurélien Rodot Aurélien Rodot

Uploading files doesn't seem to work for me. It just says "SOMETHING WENT WRONG. PLEASE TRY AGAIN." Tried firefox and chromium on windows and linux and tried to upload different files but it always fails.

DFX2KX

2 weeks ago

You are a rockstar. I think the issues I was having stem from taking a what would work in geometry class? approach, where that's not always the best way to do things.

That certainly shows a much more efficient way of doing it!

DFX2KX

NEW 2 weeks ago

Aurélien Rodot Aurélien Rodot

oh, sorry about that. I wasn't sure how to actually do that. The internet was not cooperating, so it took a few attempts just to get this.

(edit: fixed, though it names the zip something odd)

DFX2KX

NEW 2 weeks ago

Riksu9000 Riksu9000

You are a rockstar. I think the issues I was having stem from taking a what would work in geometry class? approach, where that's not always the best way to do things.

That certainly shows a much more efficient way of doing it!

DFX2KX

NEW 2 weeks ago

Update:

Using Riksu9000's technique for drawing the green line in his little demo, I've produced a way to render 2d polygons at arbitrary angles:

I'll have to heavily document how you actually encode the shape (it's not a series of x/y points in this case, but a series of angle/radius pairs. the ship is drawn conterclockwise, line by line. I'll see if I can make it wait during the draw phase so I can show it off, I'm pretty darn proud of that right there!

I haven't tested my implementation of Rik's physics approach, but given the drawing works, I'm pretty sure the flying part will, too.

DFX2KX

NEW 1 week ago

finally got near-pixel-perfect screen looping working. The ship already loops, but if you're sitting near an edge of the screen, you'll see your ship partially on the other side:

I also have part of the collision system in, and can now copy the draw routines to implement the rest, make some polygons for the asteroids, and set up the lasers. That should then let me actually say I have a proper basic Asteroids clone.

And then I have to learn how saving things to a sav file works.

getting this to work reliably added more dev hours then I thought it would....

(edit: I'll update the Github once I've got something to shoot at :P)

You must be logged in in order to post a message on the forum

Log in