Tag Info

New answers tagged

1

You need to store some c (c++) properties for the enemy to support this. You have to ask yourself: Do you want each enemy to shoot in sync? Or off sync? Do you want shooting to be at a set interval or the timing to be somewhat random? Do you want each enemy to have shooting triggered by some other event so that shooting can be turned on or ...


2

I made the same transition recently. I'm not sure if what I'm doing is "SDL Best Practices" but it does work. It doesn't use and SDL_Renderer or SDL_Surface... Here's a segment of my code. Much of it is pasted from forgotten internet pages. I think I left in everything relevant, after snipping out some of my app-specific goop. I hope it helps. (And feedback ...



Top 50 recent answers are included