Java Game Programming 30 - Projectiles

preview_player
Показать описание
Projectiles! In Episode 30 of Java Game Programming we begin implementing our tower's ability to fire bullets at enemies in our tower defense game. We create a new projectile class, modify our TowerCannon class and adjust our Boot's update method.

Рекомендации по теме
Комментарии
Автор

Super thank you about the tutorials. I have learned a lot of amazing stuff. I am looking forward for the next episode. Thank you again

nstfkc
Автор

I love your tutorial series! I brought much time with java but never programmed something that was a good thing. but now i kind of understood the working steps of java!
keep on going! :)

bitschitv
Автор

Eclipse says I have no errors but after running It, I get this
Exception in thread "main"
              at
              at
              at
              at
              at data.Boot.main(Boot.java:61)
Any idea why It doesn't work?

TheRockHero
Автор

Have you ever thought about implementing and Entity Component System?

Murderface
Автор

Hey, anyway you can do a series for a tile based game like Notch's "MiniCraft", those are REALLY fascinating and there's seriously no tutorials on them.

TheArtofBoxing
Автор

How do you get rid of the projectile (in memory) after it's offscreen?

MoneyMitch-AceDuece
Автор

I am using a TowerBase class and a TowerCannon class:


it seems to only shoot at 32, 32, and other shots are added at the position of the current shot

improvements/suggestions and help please!

bnut
Автор

I've been having this problem since we've implemented the AI. My enemies don't like going left for some reason. I have triple checked the code and I have re-watched the tutorials about a dozen times but to no avail. I am hoping for some help in correcting this because I don't see how I can make a game where the enemies don't move left. I know it has to do with the order of the if statements in the Enemy class, findNextDirection method because when I change the order of them, the enemy goes left but then doesn't go right. Any help is appreciated.

Here is the enemy class and the boot class respectively:

P.S. I know this video is 2 years old, but it really is a good series on Tile based games and I really want to continue following along.

guitarhero
Автор

It makes me sad that we have to wait so long between episodes on top of them not being that long. The length would be fine if the episodes came out sooner, but that is just my opinion.

Twilkey
visit shbcf.ru