1. Post #521
    Gold Member
    Jawalt's Avatar
    August 2007
    3,478 Posts
    I was just trying to do that but sleepiness has gotten the better of me

    Edited:

    oh yeah, that's how you do it

    I'm going to make a 1-bit game now, :P I'm bored.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 2Agree Agree x 1 (list)

  2. Post #522
    Gold Member
    ZenX2's Avatar
    February 2009
    5,128 Posts
    There was file from 3/14/1984

    And for Perl:

    Code:
    Private Sub Form_click()
    num = 10000000
    a = -500
    b = 0.2
    c = -10
    x = 0
    Y = 0
    For i = 1 To num
       PSet (ScaleWidth / 2 + 150 * x, ScaleHeight / 2 + 150 * Y)
       xx = Y - Sgn(x) * (Abs(b * x - c)) ^ 0.4
       yy = a - x
       x = xx
       Y = yy
       DoEvents
    Next i
    End Sub
    Edited:

    Next up is a file from 3/21/1985. I don't think VB was even out yet

    Edited:

    Probably just an error
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 1Artistic Artistic x 1 (list)

  3. Post #523
    itty-bitty pretty kitty
    Dennab
    September 2008
    9,837 Posts
    Next up is a file from 3/21/1985. I don't think VB was even out yet

    Edited:

    Probably just an error
    Pretty sure QuickBasic wasn't even out yet
    Reply With Quote Edit / Delete Windows 7 United States Show Events Disagree Disagree x 1 (list)

  4. Post #524
    Grimpunch Games
    TM Gmod's Avatar
    May 2005
    524 Posts
    Fucking Google >:( My app isnt showing up yet... it's been 30 minutes since I activated and published it...
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Informative Informative x 1 (list)

  5. Post #525
    itty-bitty pretty kitty
    Dennab
    September 2008
    9,837 Posts
    Fucking Google >:( My app isnt showing up yet... it's been 30 minutes since I activated and published it...
    Don't they have to review it or something?
    Reply With Quote Edit / Delete Windows 7 United States Show Events Disagree Disagree x 1 (list)

  6. Post #526
    Programming King and Most Patient Member 2013
    r0b0tsquid's Avatar
    December 2008
    1,244 Posts
    Been playing with my raspberry pi, and learning some python while I'm about it :) I've got a little script that reads in a string and then outputs it as morse code by blinking an LED, basically just loops through the string like this:
    Code:
    def morseout(morsestr):
        for i in range(len(morsestr)):
            if morsestr[i] == '.':
                GPIO.output(13, GPIO.LOW)
                sleep(dotlength)
                GPIO.output(13, GPIO.HIGH)
                sleep(dotlength)
            else:
                GPIO.output(13, GPIO.LOW)
                sleep(dotlength * 3)
                GPIO.output(13, GPIO.HIGH)
                sleep(dotlength)
    
    def printmorse(str):
        str = str.upper()
        for i in range(len(str)):
            print(str[i])
            if str[i] in morsechars.keys():
                morseout(morsechars[str[i]])
                sleep(dotlength * 2)
            elif str[i] == ' ':
                sleep(dotlength * 7)
    I've never really liked python before, but it's growing on me. Peter Norvig's sudoku article really blew my mind, largely just with the code.

    It works! :D
    I've got some tact switches as well so I'm gonna try and do morse code input tomorrow, I think I've got some good ideas for recovering the transmission speed from the input signal, so once I've got it working with a button I can maybe try transcribing some higher-speed recordings :)
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Winner Winner x 1 (list)

  7. Post #527
    aaronds's Avatar
    February 2011
    72 Posts
    Fucking Google >:( My app isnt showing up yet... it's been 30 minutes since I activated and published it...
    It takes a while, trust me. IIRC you can access its page on the Google play web interface via https://play.google.com/store/apps/details?id= your.package.name. Google play has been updated since I've released anything though.

    Don't they have to review it or something?
    No, apps on Google play are not reviewed like on Apple's App Store.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  8. Post #528
    Grimpunch Games
    TM Gmod's Avatar
    May 2005
    524 Posts
    It takes a while, trust me. IIRC you can access its page on the Google play web interface via https://play.google.com/store/apps/details?id= your.package.name. Google play has been updated since I've released anything though.


    No, apps on Google play are not reviewed like on Apple's App Store.
    Finally! It's out :D
    http://facepunch.com/showthread.php?t=1204236






    and direct store link for you guys
    https://play.google.com/store/apps/d...erSpaceCroquet
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Winner Winner x 6 (list)

  9. Post #529
    Gold Member
    Lord Ned's Avatar
    April 2006
    3,702 Posts
    Finally! It's out :D
    http://facepunch.com/showthread.php?t=1204236




    [url=http://play.google.com/store/apps/details?id=com.grimpunch.games.HyperSpaceCroquet]
    and direct store link for you guys
    https://play.google.com/store/apps/d...erSpaceCroquet
    You're seriously asking people to pay $1.60 for a game with that art style?

    Now with fixed quotes.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 18Useful Useful x 1 (list)

  10. Post #530
    C:\
    C:\'s Avatar
    March 2011
    1,749 Posts

    you honestly expect people to read your post when its in the fucking quote?
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 15Funny Funny x 3Zing Zing x 2 (list)

  11. Post #531
    Gold Member
    ZenX2's Avatar
    February 2009
    5,128 Posts
    Another cool program, it's a 1d cellular automata that's b/w only. This looks kind of like a forest to me.

    Reply With Quote Edit / Delete Windows 7 United States Show Events Artistic Artistic x 4Informative Informative x 1Optimistic Optimistic x 1 (list)

  12. Post #532
    Eudoxia's Avatar
    July 2009
    6,009 Posts
    You ever procrastinate on testing a particular feature of your project because you're sure it will fail in some spectacular manner and by the time you realize it'll be 5:00 AM and the problem will remain unsolved?
    Reply With Quote Edit / Delete Linux Uruguay Show Events Agree Agree x 7 (list)

  13. Post #533
    Gold Member
    ZenX2's Avatar
    February 2009
    5,128 Posts
    Yes
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  14. Post #534
    Team Hamster
    jalb's Avatar
    December 2009
    588 Posts
    Seeing all this gamescom stuff reminded me: Will I be the only one attending GDC again? This one is in Austin Texas in October.

    Also, if Valve has a booth there I will pursue them and achieve my ultimate goal.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  15. Post #535
    Programming King and Most Patient Member 2013
    r0b0tsquid's Avatar
    December 2008
    1,244 Posts
    Another cool program, it's a 1d cellular automata that's b/w only. This looks kind of like a forest to me.
    I added some random colour to that one you posted, also made it process events every 1000 loops instead of every loop, seems to run a bit faster - this is after a few minutes:

    Your grandfather is a pretty cool guy.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Artistic Artistic x 4Agree Agree x 1 (list)

  16. Post #536
    Gold Member
    Lord Ned's Avatar
    April 2006
    3,702 Posts
    you honestly expect people to read your post when its in the fucking quote?
    Oops. Wasn't paying enough attention, fixed that.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 5Friendly Friendly x 1 (list)

  17. Post #537
    MadPro119's Avatar
    January 2010
    6,004 Posts
    I fell like there should be a thread where people can request art for programs and people can come in an do requests. Nothing extremely extensive but something like that would be pretty cool, would give me something to do and some practice.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 6 (list)

  18. Post #538
    Gold Member
    ZenX2's Avatar
    February 2009
    5,128 Posts
    I added some random colour to that one you posted, also made it process events every 1000 loops instead of every loop, seems to run a bit faster - this is after a few minutes:

    Your grandfather is a pretty cool guy.
    I added the event processing

    He was in the Army during WWII, but never deployed, and just drove around practicing with sniper rifles. Then he worked at Atari and designed arcade cases and stuff. Now he does art classes for elementary school students and stuff.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Winner Winner x 2 (list)

  19. Post #539
    Reply With Quote Edit / Delete Windows 7 Canada Show Events Funny Funny x 4Useful Useful x 1 (list)

  20. Post #540
    MadPro119's Avatar
    January 2010
    6,004 Posts
    This is a really cool tool, thanks for posting it. I would highly recommend it for his game too.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  21. Post #541
    good lord i'm awful at things.
    DarkCybo7's Avatar
    June 2010
    310 Posts
    After a few game tests, people wanted more to the visuals so I doubled the amount of parallax background, played with more shader effects and put in some particle effects. More work needed.

    Reply With Quote Edit / Delete Windows 7 Canada Show Events Artistic Artistic x 5 (list)

  22. Post #542
    hear me purr's Avatar
    January 2012
    74 Posts
    that looks really really good!
    Reply With Quote Edit / Delete Mac United States Show Events Friendly Friendly x 1 (list)

  23. Post #543
    Gold Member
    Dennab
    January 2007
    4,090 Posts
    Started messing around with sfml today. This was my goal. Any Criticism is appreciated.

    C++
    Code:
    #include <SFML/Graphics.hpp>
    #include <cmath>
    
    float dist(float,float,float,float);
    
    int main()
    {
        // Create the main window
        sf::RenderWindow App(sf::VideoMode(854, 480), "Snake");
        float snake[100][2];
        float bulge[100][2];
        float bulgeDist;
        float oldX = 0;
        float oldY = 0;
        sf::Clock Clock;
        // Start the game loop
        while (App.IsOpened())
        {
            // Process events
            sf::Event Event;
            while (App.GetEvent(Event))
            {
                // Close window : exit
                if (Event.Type == sf::Event::Closed)
                    App.Close();
    
                // Escape key : exit
                if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
                    App.Close();
            }
    
            // Get the mouse position
            float X = App.GetInput().GetMouseX();
            float Y = App.GetInput().GetMouseY();
    
            snake[99][0] = X;
            snake[99][1] = Y;
            bulge[99][0] = Y-snake[98][1];
            bulge[99][1] = snake[98][0]-X;
            bulgeDist = dist(0,0,bulge[99][0],bulge[99][1]);
            bulge[99][0]/=bulgeDist;
            bulge[99][1]/=bulgeDist;
            bulge[98][0] = Y-snake[97][1];
            bulge[98][1] = snake[97][0]-X;
            bulgeDist = dist(0,0,bulge[98][0],bulge[98][1]);
            bulge[98][0]/=bulgeDist;
            bulge[98][1]/=bulgeDist;
    
            App.Clear();
            //if(dist(oldX,oldY,X,Y) > 20)
            if(Clock.GetElapsedTime() > 0.01)
            {
                Clock.Reset();
                for(int i = 0; i<99; i++)
                {
                    snake[i][0] = snake[i+1][0];
                    snake[i][1] = snake[i+1][1];
                    bulge[i][0] = bulge[i+1][0];
                    bulge[i][1] = bulge[i+1][1];
                }
                oldX = X;
                oldY = Y;
            }
    
            for(int i = 0; i < 99; i++)
            {
                sf::Shape Snake;
                Snake.AddPoint(snake[i][0] + bulge[i][0]*i/5, snake[i][1] + bulge[i][1]*i/5,  sf::Color(i*2.55,255-i*2.55, 0));
                Snake.AddPoint(snake[i][0] - bulge[i][0]*i/5, snake[i][1] - bulge[i][1]*i/5,  sf::Color(i*2.55,255-i*2.55, 0));
                Snake.AddPoint(snake[i+1][0] - bulge[i+1][0]*i/5, snake[i+1][1] - bulge[i+1][1]*i/5,  sf::Color((i+1)*2.55,255-(i+1)*2.55, 0));
                Snake.AddPoint(snake[i+1][0] + bulge[i+1][0]*i/5, snake[i+1][1] + bulge[i+1][1]*i/5,  sf::Color((i+1)*2.55,255-(i+1)*2.55, 0));
                App.Draw(Snake);
            }
    
            // Finally, display the rendered frame on screen
            App.Display();
        }
    
        return EXIT_SUCCESS;
    }
    
    float dist(float x1, float y1, float x2, float y2)
    {
        return pow(pow(x2-x1,2)+pow(y2-y1,2),0.5);
    }
    Reply With Quote Edit / Delete Windows 7 United States Show Events Artistic Artistic x 4 (list)

  24. Post #544
    MadPro119's Avatar
    January 2010
    6,004 Posts
    I fell like there should be a thread where people can request art for programs and people can come in an do requests. Nothing extremely extensive but something like that would be pretty cool, would give me something to do and some practice.
    The question is where would a thread like that go? Programming... probably not...

    And I was going to edit but....

    4,001st post
    Reply With Quote Edit / Delete Windows 7 United States Show Events Informative Informative x 1Agree Agree x 1 (list)

  25. Post #545
    sim642's Avatar
    July 2010
    1,039 Posts
    Started messing around with sfml today. This was my goal. Any Criticism is appreciated.

    C++
    Code:
    snip
    Instead of using 2 floats for x and y use a sf::Vector2f, much easier.
    Reply With Quote Edit / Delete Windows Vista Estonia Show Events Agree Agree x 3Friendly Friendly x 1Useful Useful x 1 (list)

  26. Post #546

    August 2012
    54 Posts
    You're seriously asking people to pay $1.60 for a game with that art style?
    People should pay for someone's work. If they don't like graphics, they will not buy it.
    BTW game looks like fun. Good work :)
    Reply With Quote Edit / Delete Windows 7 Poland Show Events Agree Agree x 2Friendly Friendly x 1 (list)

  27. Post #547
    Nigey Nige's Avatar
    June 2010
    1,341 Posts
    The question is where would a thread like that go? Programming... probably not...

    And I was going to edit but....

    4,001th post
    The programming forum (or xXxf240xXx as I like to call it) moves slowly enough to accommodate something like that, I think. I mean, what other threads are there, really? WAYWO, WDYNHW, and Electronics; that's about it.

    What Are You Not Working On Because You Need Art v1
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 1 (list)

  28. Post #548
    MadPro119's Avatar
    January 2010
    6,004 Posts
    The programming forum (or xXxf240xXx as I like to call it) moves slowly enough to accommodate something like that, I think. I mean, what other threads are there, really? WAYWO, WDYNHW, and Electronics; that's about it.

    What Are You Not Working On Because You Need Art v1
    I feel like I should get some kind of go ahead from someone or more people.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Disagree Disagree x 1 (list)

  29. Post #549
    Robots FTW
    SiPlus's Avatar
    December 2011
    888 Posts
    I always just have a dev_mode Boolean.
    #ifdef _DEBUG?
    Reply With Quote Edit / Delete Windows 8 Russian Federation Show Events Agree Agree x 4Disagree Disagree x 1 (list)

  30. Post #550
    RUBY OVERLORD
    swift and shift's Avatar
    November 2011
    2,115 Posts
    #ifdef _DEBUG?
    i prefer #ifdef EBUG so I can use -DEBUG on the command line
    Reply With Quote Edit / Delete Mac Australia Show Events Funny Funny x 24Winner Winner x 4Artistic Artistic x 1Programming King Programming King x 1 (list)

  31. Post #551
    Gold Member
    esalaka's Avatar
    July 2007
    10,249 Posts
    i prefer #ifdef EBUG so I can use -DEBUG on the command line
    Clever

    Edited:

    Same trick as with libiberty
    Reply With Quote Edit / Delete Windows 7 Finland Show Events Agree Agree x 1 (list)

  32. Post #552
    my portfolio
    Dennab
    April 2012
    1,392 Posts
    -snip late as usual-
    Reply With Quote Edit / Delete United Kingdom Show Events Funny Funny x 2 (list)

  33. Post #553
    RUBY OVERLORD
    swift and shift's Avatar
    November 2011
    2,115 Posts
    Same trick as with libiberty
    Back in the old Ruby 1.8 days when RubyGems wasn't loaded by default, you could use 'ruby -rubygems your_script.rb' on the command line.

    That worked because RubyGems stuck a file called 'ubygems.rb' in your lib/ that went ahead and loaded 'rubygems' properly
    Reply With Quote Edit / Delete Mac Australia Show Events Funny Funny x 13Informative Informative x 3 (list)

  34. Post #554
    Programming King and Most Patient Member 2013
    r0b0tsquid's Avatar
    December 2008
    1,244 Posts
    I've got my raspberry pi transcribing morse code input from GPIO:

    It's adaptive, so based on classifying the last pulse as a dot or dash it will try to predict the length of your next dot/dash, as well as letter and word gaps. It goes through a low-pass filter, so a few erratic pulses won't throw it off but it will keep up with any changes in speed.
    The whole thing scales, so hopefully I can hook up some ultra-fast morse recordings and try to transcribe them.
    The clump of wires and stuff is just an oscillator, it makes the loudspeaker buzz when you press the key down. I think this is more programming than electronics?
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Programming King Programming King x 5 (list)

  35. Post #555
    Capsup's Avatar
    April 2007
    823 Posts
    Got height maps working properly:



    Any ideas as to where I go from here? I obviously want to make it look alot better and will start working on multi texturing it. But does anybody have any good pointers as to where I go from here?
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events

  36. Post #556
    laylay's Avatar
    November 2007
    599 Posts
    Calculate normals in shader.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Optimistic Optimistic x 1Dumb Dumb x 1 (list)

  37. Post #557
    Ramdac's Avatar
    June 2012
    47 Posts


    Made a defect sphere in HLSL and started working on my demo framework (most probably another project that will never be completed)
    Reply With Quote Edit / Delete Windows 7 Sweden Show Events

  38. Post #558
    Richy19's Avatar
    May 2010
    5,413 Posts
    Calculate normals in shader.
    Lots of people tell me to do this but I dont understand how to, (atleast not with out geometry shader)
    Say you use the basic method yoou need to know all 3 verticies of the triangle, where as you usually only know the current position that the shader is working on.
    Not to ention if you were trying to do Phong Interpolation
    Reply With Quote Edit / Delete Linux United Kingdom Show Events

  39. Post #559
    laylay's Avatar
    November 2007
    599 Posts
    Lots of people tell me to do this but I dont understand how to, (atleast not with out geometry shader)
    Say you use the basic method yoou need to know all 3 verticies of the triangle, where as you usually only know the current position that the shader is working on.
    Not to ention if you were trying to do Phong Interpolation
    It can still be calculated because you have the heights of the surrounding vertices. (assuming you have the hightmap as a sampler, you can just sample the surrounding 4 cells)

    Here's some old shader code that does the job.

    http://pastie.org/private/w2y2muq1nlfcgoxrkc0fiw

    There's a blog post somewhere that explains it much better but I can't find it right now.

    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Artistic Artistic x 6Optimistic Optimistic x 2Friendly Friendly x 1 (list)

  40. Post #560
    Paid for a title.
    Maurice's Avatar
    June 2005
    6,175 Posts
    Because the Mari0 fullscreen on the 1680x1050 monitors leaves a black bar at the bottom, I whipped up a display of the stat tracking I added earlier.
    The result/effort ratio is really nice so I'm posting it here. Took me less than 10 minutes. Updates live, too.

    Reply With Quote Edit / Delete Windows 7 Germany Show Events Winner Winner x 21Artistic Artistic x 1Useful Useful x 1 (list)