su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 19 Jun 2012 01:23 PM |
Again. I think you've had enough of my discussions about my nooby 2D game.. But I want to talk about one thing more (well maybe more, once I advance on the game)
So, explosion-kind particle effects. The first one on my mind was just boring and simple pre-made textures. The other one was first drawing a circle on the middle of the explosion, after that draw x amount of other circles to random direction from the circle x units a way from the first circle and so on for x times.
So for the second I was thinking of creating some timer-kind detecting system for what's going on. For like after x amount of milliseconds after the other step it could move to the step 2 which is creating the other circles and so on. A loop for every frame would have the control of these. it would basically loop through every explosion and check if they can do the next step.
|
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 19 Jun 2012 01:26 PM |
Neva heard of your 2D game.
Must have missed the discussion.
What was it? |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 19 Jun 2012 01:27 PM |
| Well I was talking about the collision twice around here. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 19 Jun 2012 01:29 PM |
And about the map saving format, forgot about that. And the game is like 2d top-view zombie killing game. |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 19 Jun 2012 01:33 PM |
Oh.
Speaking of which, I had working collision detection in my Love2d game for like a month but it seemed to fail but then I discovered why.
Notepad++ was using 2 tabs again :( I had 2 destinations to save and I kept saving to the wrong one.
How noobish of me.
On topic, Texture explosions can be nicer than a whole bunch of circles if they both look good and are a bit random.
Loads of the same explosion texture is ugly. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 19 Jun 2012 01:37 PM |
>Loads of the same explosion texture is ugly.
I agree, and when it comes to the texture making.. I'm really bad :PP But the circles could have some explosion template texture on them. Like when they're rotated they would look like randomized textures. |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 19 Jun 2012 01:41 PM |
Prehaps make 2 slightly different textures.
Each explosion has the 2 overlaping and slightly transparent.
It's random which is on top and which underneath, and rotation is also random...oh, and they could have a small random offset, like 2 pixels up and -4 to the side.
That'd be better.
Oh and CandyManiac is a great graphical designer, I recommend him if you're not that good :P |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 19 Jun 2012 01:44 PM |
>and they could have a small random offset, like 2 pixels up and -4 to the side.
The random direction kinda like does it, like it creates a direction from a random angle and adds it x times (or random) to the center position. |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 19 Jun 2012 01:57 PM |
Oh. I might make a zombie game similar to Boxhead Zombie wars...
But I might not.
I'm pretty busy. |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2012 02:00 PM |
| Aw man, I was making this game too, lol. I was making a top-down zombie heck shooter game. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 19 Jun 2012 02:04 PM |
| My main target was to create a playable game.. It's pretty much done so I'm just adding features like the map edit with load&save and explosions (with terrain destruction.) |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 19 Jun 2012 02:32 PM |
| Are you using Love2D, su8? |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 19 Jun 2012 02:38 PM |
| No, I'm using C++ with SFML |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2012 02:43 PM |
| GPU instanced pixel sized particles with realistic fluidgasphysics? :D |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 19 Jun 2012 02:50 PM |
maybe not k? And indeed I want it to be a little unrealistic. The current characters are drawn by me and they look a bit cartoonish so it fits to the style :P |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 19 Jun 2012 02:57 PM |
Then use your circle thing :)
It'd fit the theme. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 19 Jun 2012 02:58 PM |
| Yeah, but I still need to think how to struct it visually correct. |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 19 Jun 2012 03:07 PM |
Idk C++ but something along the equivalent lines of this RBX.Lua to C++
function circle(x,y,transparency,colour) end
for a = 1, 30 do --30 frames, 1 sec. wait() for b = 1, (30-a) do if math.random(1,6) == 1 then --make a smoke circle circle(basepoint+math.random(-20,20),basepoint+math.random(-20,20),-0.2+(a/30),smokecolour) else --Make a fire circle --ok I cant copy paste on this phone k? Same as above but fire colour and less transparent end end end |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 19 Jun 2012 03:11 PM |
Oh but maek it spread from small to big then small again.
k?
well maybe that was a bad example...
your explaination is pretty much the same anyway. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 19 Jun 2012 03:14 PM |
>Oh but maek it spread from small to big then small again.
That's simple enough.. And that's what I'm going to do :D
|
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 19 Jun 2012 03:18 PM |
| So currently it creates a single circle because it just looks cleaner :PP |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 19 Jun 2012 03:45 PM |
Hmm...
"Simple yet it's not ugly and you can tell it's an explosion" says the image in my head. |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2012 05:07 PM |
| 10 meter nuclear exploaion mooshroom cloud plox. |
|
|
| Report Abuse |
|
|