Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Moonman (my sfml game has been funded on kickstarter!)  (Read 32129 times)

0 Members and 2 Guests are viewing this topic.

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Moonman (my sfml game is on kickstarter!)
« Reply #30 on: January 21, 2015, 11:00:27 am »
Looks nice, backed as well. :)

[...] and there is minimal custom opengl in there [...]

Would really be interested in knowing such small details, might even be oversights or some interesting stuff that could be useful as part of SFML.

Don't forget to send Laurent a free copy once you're done, unless he backed it anyway. :)

eigenbom

  • Full Member
  • ***
  • Posts: 228
    • View Profile
Re: Moonman (my sfml game is on kickstarter!)
« Reply #31 on: January 21, 2015, 11:31:36 pm »
Thanks guys!

Quote
Would really be interested in knowing such small details..

One thing that I used to do is render some sprites with all their pixels greyed-out (like an alpha mask). I could have done that in a shader but I used code like:

Code: [Select]
// Render a sprite with all colours replaced to greay
glPushAttrib(GL_TEXTURE_BIT);
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE);
glTexEnvf(GL_TEXTURE_ENV, GL_COMBINE_RGB, GL_REPLACE);
glTexEnvf(GL_TEXTURE_ENV, GL_COMBINE_ALPHA, GL_MODULATE);
static GLfloat constColour[4] = {0.25,0.25,0.25,1}
glTexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, constColour);
glTexEnvf(GL_TEXTURE_ENV, GL_SOURCE0_RGB, GL_CONSTANT);
target->draw(sprite);
glPopAttrib();

But that code is old and now I render things as black, like in some of items in the box on the right:


It's not a deficiency of SFML, as all those texture ops are getting pretty old now, and you can easily do that sort of thing in a shader.

Other smatterings of GL are just some immediate mode drawing that is in the debug drawing code.

eigenbom

  • Full Member
  • ***
  • Posts: 228
    • View Profile
Re: Moonman (my sfml game is on kickstarter!)
« Reply #32 on: February 06, 2015, 12:20:03 am »
Well it's been an absolutely crazy few weeks. I'll tell you all about it one day, but it's really been a rollercoaster. Some days I wake up with 30 emails and other days I wake up with nothing. I've sent hundreds of emails to the press, done 5 or so interviews, and haven't had a break.

Moonman is 85% funded and has 6 days to go!

If you haven't yet backed it, now is the time! :D






ILostMyAccount

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Moonman (my sfml game is on kickstarter!)
« Reply #33 on: February 06, 2015, 08:39:51 am »
Wow, this is so good, not my kind of game but it's really well done and the graphic style is incredible.
Also this kind of games it's usually popular on YT, have you thought about giving it for free to a few youtubers?
you could get a lot of attention in that way.

--
Also code related question, if I can ask, you said that you are for the most part using sf::sprites, for the terrain too? doesn't that cause issues? or the culling is enough to avoid problems?

eigenbom

  • Full Member
  • ***
  • Posts: 228
    • View Profile
Re: Moonman (my sfml game is on kickstarter!)
« Reply #34 on: February 06, 2015, 09:17:27 am »
Wow, this is so good, not my kind of game but it's really well done and the graphic style is incredible.
Also this kind of games it's usually popular on YT, have you thought about giving it for free to a few youtubers?
you could get a lot of attention in that way.

--
Also code related question, if I can ask, you said that you are for the most part using sf::sprites, for the terrain too? doesn't that cause issues? or the culling is enough to avoid problems?

Hey thanks :) yep I've had some big you tubers play it, with over 40000 views total I think.

I split the terrain up into 16x16 tile chunks and use a render texture to cache the rendering. So if the terrain doesn't change its only a few draw calls.

Grimshaw

  • Hero Member
  • *****
  • Posts: 631
  • Nephilim SDK
    • View Profile
Re: Moonman (my sfml game is on kickstarter!)
« Reply #35 on: February 07, 2015, 03:30:44 am »
Hi again Ben (from facebook),

Really hope you succeed your funding, you're really close man! I'm sure you will. Your work deserves only praise, its looking pretty sweet, time to conquer the world! Pity I don't enjoy myself playing this style of game (not Terraria or Starbound or alikes), but if I liked the genre I'd really buy this right away!

Good luck!

eigenbom

  • Full Member
  • ***
  • Posts: 228
    • View Profile
Re: Moonman (my sfml game is on kickstarter!)
« Reply #36 on: February 08, 2015, 01:03:04 am »
Thanks Grimshaw :D

The Kickstarter is 97% funded and has 4 days left! Thanks for getting involved you guys, and if you're going to back to get alpha access and KS-only updates, then now is the time to do it. I'm going to be really busy the next few weeks so I might not be around, but please ping me at @eigenbom if you want to say hi or ask a question. :D

Go SFML! :D

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Moonman (my sfml game is on kickstarter!)
« Reply #37 on: February 09, 2015, 12:03:17 am »
It looks like it's been fully funded now. Congratulations! :)
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

eigenbom

  • Full Member
  • ***
  • Posts: 228
    • View Profile
Re: Moonman (my sfml game is on kickstarter!)
« Reply #38 on: February 09, 2015, 12:11:10 am »
Yep we made it! Thanks everyone for backing the project and showing enthusiasm for it! :D

SpeCter

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Re: Moonman (my sfml game is on kickstarter!)
« Reply #39 on: February 09, 2015, 09:05:30 am »
Congrats!

 

anything