1. Post #241
    MGinshe's Avatar
    November 2008
    648 Posts
    I'm working on a simple little 2D platformer thing. Completely coded in Lua (Love2D).


    It was working perfectly, then as soon as I go to record this happens (that.. thing is supposed to be a ball with a texture) :saddowns:
    Reply With Quote Edit / Delete New Zealand Show Events Funny Funny x 18Informative Informative x 1Artistic Artistic x 1 (list)

  2. Post #242
    good lord i'm awful at things.
    DarkCybo7's Avatar
    June 2010
    310 Posts
    Reply With Quote Edit / Delete Canada Show Events Programming King Programming King x 8Funny Funny x 3 (list)

  3. Post #243
    Interesting that you say that. Friend.
    NorthernGate's Avatar
    August 2007
    3,378 Posts
    Spamming another one of my project updates, just 'cause.



    Just added event callbacks, left is the meter before mouse hovering, right is the meter post mouse hovering. I'll probably upload a video tomorrow, but I can't right now because I'm already over my 100GB bandwidth cap, so I'll just use my schools.
    Reply With Quote Edit / Delete United States Show Events

  4. Post #244
    DevBug's Avatar
    July 2010
    1,059 Posts
    Would anyone be interested in working on a community project akin to "A Whiff of Steam" from the Love2d forums? There's a lot of talented/hard-working people here, and with some organization, I think we could work together to make a really cool game. I for one, think it would be a blast to make some attempt at this sort of game: http://www.terraria.org/

    Edit: By community, I just mean some sort of Github project that we could fork off of and merge as wanted.
    It would take a while, I'd wait for http://www.terraria.org/ to be released so we can design around the flaws we'll find.
    Reply With Quote Edit / Delete Canada Show Events

  5. Post #245
    Interesting that you say that. Friend.
    NorthernGate's Avatar
    August 2007
    3,378 Posts
    Yet another update.



    I added an Image panel so you can easily add an image to the panel, hurr:

    Interface.Get("delEntity"):SetContent("Image", "delete", Vector2(8, 8))
    

    But yeah, what you're seeing in the screenshot is an add and delete button for map entities, I'm basically on the beginning stages of an in-game level editor. Go me~
    Reply With Quote Edit / Delete United States Show Events Artistic Artistic x 3 (list)

  6. Post #246
    Gold Member
    danharibo's Avatar
    July 2006
    4,485 Posts
    Just shoehorning some last minute features into my computing project.

    I am not proud of this Frankenstein of a flowchart editor.
    Reply With Quote Edit / Delete United Kingdom Show Events

  7. Post #247
    Dennab
    February 2011
    732 Posts
    Just shoehorning some last minute features into my computing project.

    I am not proud of this Frankenstein of a flowchart editor.
    .xml

    :sigh:
    Reply With Quote Edit / Delete Australia Show Events Agree Agree x 9Dumb Dumb x 1Friendly Friendly x 1 (list)

  8. Post #248
    Gold Member
    danharibo's Avatar
    July 2006
    4,485 Posts
    .xml

    :sigh:
    :sigh: I'm the one who had to write it.
    Reply With Quote Edit / Delete United Kingdom Show Events Friendly Friendly x 4Funny Funny x 1 (list)

  9. Post #249
    Gold Member
    Robert64's Avatar
    November 2007
    1,326 Posts
    Speaking of computing projects, mine is done:

    Reply With Quote Edit / Delete United Kingdom Show Events Programming King Programming King x 14Artistic Artistic x 5Winner Winner x 1 (list)

  10. Post #250
    Gold Member
    danharibo's Avatar
    July 2006
    4,485 Posts
    Speaking of computing projects, mine is done:

    That's pretty neat, I take you used a 2D field and calculated the values for each point? I'd like to apply a similar solution for plotting implicit functions.
    Reply With Quote Edit / Delete United Kingdom Show Events

  11. Post #251
    Frugle's Avatar
    June 2010
    485 Posts
    Is anyone planning on doing the ludum dare next weekend?

    I might join with SFML and C#.
    Reply With Quote Edit / Delete Finland Show Events

  12. Post #252
    Gold Member

    October 2008
    3,838 Posts
    Is anyone planning on doing the ludum dare next weekend?

    I might join with SFML and C#.
    Making a complete game in 48 hours? No thanks.
    Reply With Quote Edit / Delete United States Show Events Agree Agree x 2 (list)

  13. Post #253
    www.bff-hab.de
    Dennab
    February 2009
    7,832 Posts
    Notch will win anyways because all of his fans vote for him.
    Reply With Quote Edit / Delete Germany Show Events Agree Agree x 19 (list)

  14. Post #254
    Frugle's Avatar
    June 2010
    485 Posts
    Notch will win anyways because all of his fans vote for him.
    You can vote only if you submit a game.
    Reply With Quote Edit / Delete Finland Show Events Informative Informative x 16Agree Agree x 1Winner Winner x 1 (list)

  15. Post #255
    www.bff-hab.de
    Dennab
    February 2009
    7,832 Posts
    You can vote only if you submit a game.
    Really?
    Reply With Quote Edit / Delete Germany Show Events

  16. Post #256
    Frugle's Avatar
    June 2010
    485 Posts
    Yes. You can read the rules here.
    Reply With Quote Edit / Delete Finland Show Events

  17. Post #257
    Gold Member
    Xeon06's Avatar
    September 2005
    1,222 Posts
    Is anyone planning on doing the ludum dare next weekend?

    I might join with SFML and C#.
    I would, but I'm in Africa for another week, I'm gonna miss it by a narrow margin. Too bad :(

    Making a complete game in 48 hours? No thanks.
    You have no idea what you're missing out. It's so much fun and so much motivating, the fact that you only have the weekend. You don't loose time on petty things like code cleanliness or graphics, you just code away without thinking.
    Reply With Quote Edit / Delete Canada Show Events Agree Agree x 1 (list)

  18. Post #258

    April 2006
    8 Posts

    I added physics to my voxle engine thing. this feels way to laggy to be right though.
    Surely... if they're rotating it's not a voxel it's just a box?
    Reply With Quote Edit / Delete United Kingdom Show Events Agree Agree x 9 (list)

  19. Post #259
    Gold Member
    Loli's Avatar
    April 2008
    2,288 Posts
    Code:
    mPercentage = (float)((mTotal / 100) * mCollected);
    Anybody know why this isn't working?
    Reply With Quote Edit / Delete United Kingdom Show Events Zing Zing x 1Agree Agree x 1 (list)

  20. Post #260
    Wishfallen's Avatar
    January 2010
    41 Posts
    Code:
    mPercentage = (float)((mTotal / 100) * mCollected);
    Anybody know why this isn't working?
    Is it supposed to turn mTotal into a percentage of mCollected? Because that would be (mTotal/mCollected)*100
    Reply With Quote Edit / Delete United Kingdom Show Events

  21. Post #261
    Slaaf van EternalFlamez.Ik wilde heel graag de laatste Indie Bundle, en ik kreeg deze kuttitel er gratis bij.
    Staneh's Avatar
    March 2010
    4,059 Posts
    Isn't percentage mTotal * 100 / mCollected?
    Reply With Quote Edit / Delete Netherlands Show Events Dumb Dumb x 5 (list)

  22. Post #262
    Gold Member
    Loli's Avatar
    April 2008
    2,288 Posts
    Supposed to turn mCollected into a percentage of mTotal
    Reply With Quote Edit / Delete United Kingdom Show Events

  23. Post #263
    Gold Member
    danharibo's Avatar
    July 2006
    4,485 Posts
    Supposed to turn mCollected into a percentage of mTotal
    Code:
     percentage = (complete / total) * 100
    But I prefer to use a scale of 0 - 1 for percentages.
    Reply With Quote Edit / Delete United Kingdom Show Events

  24. Post #264
    Gold Member
    Loli's Avatar
    April 2008
    2,288 Posts
    Did it like this...
    [cod]
    mPercentage = (float)(mCollected * 100 / mTotal);
    [/code]
    Reply With Quote Edit / Delete United Kingdom Show Events

  25. Post #265
    Gold Member

    October 2008
    3,838 Posts
    Code:
    mPercentage = (float)((mTotal / 100) * mCollected);
    Anybody know why this isn't working?
    Well that's an interesting hivemind, I was just coding a performance report screen which awards you a rating based on the percentage of orbs you've collected


    (it's a little bit faster in-game)
    Reply With Quote Edit / Delete United States Show Events Zing Zing x 20 (list)

  26. Post #266
    Neigh
    CarlBooth's Avatar
    June 2007
    28,550 Posts
    Well that's an interesting hivemind, I was just coding a performance report screen which awards you a rating based on the percentage of orbs you've collected


    (it's a little bit faster in-game)
    19 / 20 is 95%, not 94
    Reply With Quote Edit / Delete United Kingdom Show Events Agree Agree x 7Zing Zing x 1 (list)

  27. Post #267
    Gold Member

    October 2008
    3,838 Posts
    19 / 20 is 95%, not 94
    That happens because I'm using Math.Floor instead of Math.Round to calculate the percent value. If I'd use Math.Round, it would be possible to have 100% collected even though you didn't collect all orbs, e.g. getting 999/1000.
    Reply With Quote Edit / Delete United States Show Events

  28. Post #268
    Neigh
    CarlBooth's Avatar
    June 2007
    28,550 Posts
    I fail to see how 0.95 * 100 rounds to 94
    Reply With Quote Edit / Delete United Kingdom Show Events Agree Agree x 11 (list)

  29. Post #269
    Gold Member
    Vbits's Avatar
    April 2010
    1,186 Posts
    Yeah I am deeply considering doing ludum dare again, I did ludum dare 18 and loved it.
    I am probably going to go with XNA again but maybe something different, who knows.
    Reply With Quote Edit / Delete New Zealand Show Events

  30. Post #270
    Gold Member

    October 2008
    3,838 Posts
    I fail to see how 0.95 * 100 rounds to 94
    It appears that C#'s Floor function fails.


    Reply With Quote Edit / Delete United States Show Events Funny Funny x 11 (list)

  31. Post #271
    Gold Member
    danharibo's Avatar
    July 2006
    4,485 Posts
    It appears that C#'s Floor function fails.


    What if you floor 95 as a constant.
    Reply With Quote Edit / Delete United Kingdom Show Events

  32. Post #272
    Gold Member

    October 2008
    3,838 Posts
    What if you floor 95 as a constant.
    Then it works, oddly enough... But seriously how is this even possible?

    Is it that the rounding functions fail or is it because of the lack of precision of floats?
    Reply With Quote Edit / Delete United States Show Events

  33. Post #273
    Gold Member
    danharibo's Avatar
    July 2006
    4,485 Posts
    Then it works, oddly enough... But seriously how is this even possible?

    Is it that the rounding functions fail or is it because of the lack of precision of floats?
    Well a float should contain the precise value of '95' and '80' without any issue.
    Reply With Quote Edit / Delete United Kingdom Show Events Funny Funny x 2Agree Agree x 1 (list)

  34. Post #274
    Neigh
    CarlBooth's Avatar
    June 2007
    28,550 Posts
    You can't pass floats to Math.Floor you have to use Doubles or Decimals
    Reply With Quote Edit / Delete United Kingdom Show Events Informative Informative x 2 (list)

  35. Post #275
    Shrapnel :3's Avatar
    October 2009
    414 Posts
    It's probably floating point error when dividing to make "endPercent". The intellisense probably will round it.
    Reply With Quote Edit / Delete United Kingdom Show Events Disagree Disagree x 1 (list)

  36. Post #276
    Gold Member
    danharibo's Avatar
    July 2006
    4,485 Posts
    You can't pass floats to Math.Floor you have to use Doubles or Decimals
    Well a double works exactly the same, It's just twice as big.
    Reply With Quote Edit / Delete United Kingdom Show Events Agree Agree x 2 (list)

  37. Post #277
    Gold Member

    October 2008
    3,838 Posts
    You can't pass floats to Math.Floor you have to use Doubles or Decimals
    Yeah, changing the percent variable to a double solved all the rounding errors. Never using floats again for stuff like this
    Reply With Quote Edit / Delete United States Show Events Programming King Programming King x 2 (list)

  38. Post #278
    Neigh
    CarlBooth's Avatar
    June 2007
    28,550 Posts
    Well a double works exactly the same, It's just twice as big.
    It's dumb though and tries to convert between the two types rather than just adding the precision.
    Reply With Quote Edit / Delete United Kingdom Show Events

  39. Post #279
    Gold Member
    TheBoff's Avatar
    September 2006
    660 Posts
    Yeah, changing the percent variable to a double solved all the rounding errors. Never using floats again for stuff like this
    At uni, I've just had a five hour course which in a nutshell was just: "floats are shit, just use double".
    Reply With Quote Edit / Delete Russian Federation Show Events Funny Funny x 8Informative Informative x 2 (list)

  40. Post #280
    Hates php
    high's Avatar
    May 2006
    2,415 Posts
    Then it works, oddly enough... But seriously how is this even possible?

    Is it that the rounding functions fail or is it because of the lack of precision of floats?
    Just tested, it is indeed a float precision issue.

    Reply With Quote Edit / Delete United States Show Events Artistic Artistic x 4 (list)