Game Programming - Episode 78: Particle Spawner

preview_player
Показать описание

------------------------------------------------------------------------------------------------------

In this video:
- How to create a particle emitter / spawner
- How to use enumerations (enum) in Java.
- How to add particles to a level

------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------

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

8:09 ?? generateLevel() method... which episode did we write that code?? Mine is empty...

physicsimpossible
Автор

As much as I appreciate the return of Game Programming, I really would like to see Network Chat Programming continue since it likely only has a few more episodes to go.

xForceDee
Автор

Hi, i need a little help, my projectile doesn't dissapear propertly, it dissapears to the left side, but kinda wrong on the right, the system does not calculate it, but i can see it, only to the right side, how that someone understanded me, thanks.

LegendaryAdventureCZ
Автор

When I run my code nothing shows up in the console and there is no JFrame I don't know were i went wrong any ideas.

turtlegaming
Автор

Are we going to start on Multiplayer and chatbox and stuff after particles?

footballerrm
Автор

can i use this programming courses in my android java codes ?

CompletAfon
Автор

I prefer to keep all entities in the entities list, but still add particles to projectiles and such. That way I don't need to worry about cycling through multiple lists, but things are still organized.

HeyItsUltra
Автор

can we do particle effect with this ? Cirlce, star ect... because i can't figure it out..

Chargon
Автор

can i also say that in your level.update() method you could do for(Entity e : entities) instead of for(int i = 0; i < entities.size(); i++) because it looks cleaner and is easier to read and comprehend

SamBrev
Автор

What do you think about making an object-c tutorial?
I'd love to learn how to programm iOS apps

BukkitViper
Автор

Love the series, just a minor observation, is it not more logical to use a switch statement instead of a large string of if, else if, else? where you're essentially checking the same thing for multiple different values?

SpectraPrime
Автор

I think a spawner object isn't a good idea, I think you should make it a method in level because the object does only one thing like a method. This then means you don't have random objects that never get used again. Also it seems pointless to use the enum. You should pass in an example entity of what you want to spawn which you can then get the things like life and other details about the entity you want to spawn.

billybobism
Автор

Objective-C's syntax gives me nightmares.

TheCherno
Автор

i think you could also make the init-function returning this entity so you can write level.add(new Spawner(x, y, amount).init(this))

daniellionel
Автор

How I would handle the problem with the level is probably spawning new Particles from the init method. I would just call super.init() and then spawn new particles.

RsTheZigec
Автор

The code in this video code differs from mine, which is copied from previous videos. Where you use a variable "projectiles" I have a function getProjectiles(). E.g. "projectiles.size()" is for me "getProjectiles().size()".

TheLiquidPepper
Автор

Can you put this on github, like the chat program?

CoryCothrum
Автор

Thank you for another great tutorial! :) YOU'RE AWESOME

TheEggHealer
Автор

Another nice episode dude! Wen i become rich from my video game i am gonna share half with you for teaching me!

Brakleet
Автор

You'll fall in love with the syntax after a while ;)

dimi