Register
Email: Password:
Forum » please release Notrium source code!!
  • « previous
  • 1
  • 2
  • » next
  • please release Notrium source code!!

    E_net4 10 years ago
    On the previous topic of C++11, what do you think of this? I personally can't wait to nail some modern code.
    #
    NeoGangster 10 years ago
    E_net4 said:
    On the previous topic of C++11, what do you think of this? I personally can't wait to nail some modern code.

    Sounds good.

    I feel bad. I still haven't setup an enviroment to compile this.

    Am I the only one who thinks that code like this:

    grim->Quads_SetColorVertex(0, map_main->grid[i].grid[(j+1)].light_rgb[0], map_main->grid[i].grid[(j+1)].light_rgb[1], map_main->grid[i].grid[(j+1)].light_rgb[2], 0.5f);
    grim->Quads_SetColorVertex(1, map_main->grid[(i+1)].grid[(j+1)].light_rgb[0], map_main->grid[(i+1)].grid[(j+1)].light_rgb[1], map_main->grid[(i+1)].grid[(j+1)].light_rgb[2], 0.5f);
    grim->Quads_SetColorVertex(2, map_main->grid[(i+1)].grid[(j+2)].light_rgb[0], map_main->grid[(i+1)].grid[(j+2)].light_rgb[1], map_main->grid[(i+1)].grid[(j+2)].light_rgb[2], 0);
    grim->Quads_SetColorVertex(3, map_main->grid[i].grid[(j+2)].light_rgb[0], map_main->grid[i].grid[(j+2)].light_rgb[1], map_main->grid[i].grid[(j+2)].light_rgb[2], 0);
    grim->Quads_SetSubset(0,0,1,0.5f);
    grim->Quads_Draw(-camera_x+i*128, -camera_y+(j+1)*128, 128, 64);

    should be hidden so no one can ever find it and get bleeding eyes and a headache from it?

    Edited 10 years ago
    #
    E_net4 10 years ago
    I think it can be refactored nicely, now that we support C++11.


    Edit: But sure, it's still a painful process, now that I found where that snippet was...

    Edited 10 years ago
    #
    madscientist 10 years ago
    I was so surprised when I found out Notrium was open-sourced ... and
    already been ported to Linux (SDL) for a few years.
    Awesome.
    Anyway, I packaged it for Archlinux:
    https://aur.archlinux.org/packages/opennotrium-git/
    #
    Amarth 10 years ago
    Awesome! Thanks!
    #
    E_net4 10 years ago
    Neat! Good job!
    #
    Forum » please release Notrium source code!!
  • « previous
  • 1
  • 2
  • » next
  • Post Reply


    Your email:
    Your name: