Advertisement

bug invaders

Started by April 13, 2019 12:26 AM
59 comments, last by Tom Sloper 5 years, 10 months ago

well my problem is that when the bullet hits the bug all the bugs turn to collision images, I want only one bug to turn to the collision images.

Yes, I'm aware of that.

Your response came back in approximately 30 seconds 6 minutes of my previous post. Assuming you type 15 to 20 word per minute and adjusting for lag, I'd say it's clear, you didn't put any effort into it tonight. Going also off your previous post, the pattern is consistent. Please try to be descriptive in which problem you are focusing on. As of now, everything, yes everything is a problem and it's difficult to determine of which you refer. Even my complaining is taking longer to bounce a reply.

Check you again tomorrow.  I've left you plenty for today considering the manner in which we're presenting our self.

Dev careful. Pixel on board.
Buckle up. Everything will be revealed.

Advertisement

well I looked at  your blog and I wish I was as creative as  you are.

I see. 

When you look and wish, what is it you see and what is it you wish to create? Because success comes from effort. If it becomes clear that you're not trying, then no one else will.

Maybe try to rewrite the pseudo code again, but just the collision logic. 

Dev careful. Pixel on board.
Buckle up. Everything will be revealed.

I am programming a simple space invaders clone but I am using bugs as sprites. I will work on my code more.

yes, I'm aware of that as well.

Just a thought, but have you considered making board games? (instead) 

Tell you what...you design a board game that is just out of this world and I'll program it for you. But it has to be really good. 

Dev careful. Pixel on board.
Buckle up. Everything will be revealed.

Advertisement

thanks for all the help

well hold on...I'm trying to be friends. You are very difficult to reach. Some things I ask should be ignored, I'll give you that. I was trying to learn who you really are. Maybe not give in so easy. I can't respect that. Let me ask, what is it you really want out of all this effort? Do you want someone to just give you the code? I believe that's discouraged here, but in this case it might be fine. Or would you prefer to figure it out on your own? Talk to me.

I think you are getting close to stepping out of that box you seemed to be trapped in. The more you learn the more you realize you don't know. 

This older article got a ping today. Have you ever seen it?

 

Dev careful. Pixel on board.
Buckle up. Everything will be revealed.

what would be a good board game to convert to the computer?

This Bug Invaders project has a lot of difficulty to it but I can't think of any board games that would be better to work on at this time.

What you are calling your collision test is actually testing if the bullet has reached one particular place on the screen. It is not actually testing for a collision with bug which are on different locations of the screen.

Change the if statement that you call your collision test so it compares the bullet location (your x and y variables) with the bug location (bug.px and bug.py). Make sure to account for the width and height of the bug.

This topic is closed to new replies.

Advertisement