Page 4 of 30 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 300

Thread: Writing a better 2D engine. (Phoenix 2D Game Engine)

  1. #31
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Writing a better 2D engine. (Phoenix 2D Game Engine)

    I have two methods of setting color - the S2DLDraw sets a global color that applies to everytihg. There is a SetTempColor (or something like that) that changes the colors for a single drawing action.

    Worked OK for me.

    Ignore my suggestion then for fading etc until later
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  2. #32

    Writing a better 2D engine. (Phoenix 2D Game Engine)

    I'll download the source tonight when I get home and start looking into the scripting aspects (that is if your comfortable with this). So far what I've seen looks really good.

  3. #33

    Writing a better 2D engine. (Phoenix 2D Game Engine)

    PS: Can you post up links for all of the libraries that your making use of? Since I'll be installing Lazarus from scratch (again) I won't have any of the libs, and want to make sure its a smooth process

  4. #34
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Writing a better 2D engine. (Phoenix 2D Game Engine)

    I think everything is included already. There are no extras that need to be installed for lazarus.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  5. #35

    Writing a better 2D engine. (Phoenix 2D Game Engine)

    Yeah, please do so.

    And yes, all required librarys is included in the zip file (Atleast the Win32 versions)
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

  6. #36

    Writing a better 2D engine. (Phoenix 2D Game Engine)

    hmm... The RAR I found didn't have everything in it. Was missing s2dl, glxtreme, and glfw. I've put together a zip file that once extracted only requires lazarus to be installed. I've put all libraries into the package and fixed the LPI file to use relative paths instead of absolute paths.

    In case anyone else has problems, you can download from: http://www.eonclash.com/phoenix/ProjectPhoenixFull.zip

  7. #37

    Writing a better 2D engine. (Phoenix 2D Game Engine)

    Hmm, the library doesnt require eiter GLXTreem, SDL2 and glfw.pas is included in the lib folder and the dll in demo\compiled
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

  8. #38

    Writing a better 2D engine. (Phoenix 2D Game Engine)

    Quote Originally Posted by Andreaz
    Hmm, the library doesnt require eiter GLXTreem, SDL2 and glfw.pas is included in the lib folder and the dll in demo\compiled
    That is odd... You might take a look at the package I uploaded and see if you can figure out why its requiring me to have those files present.

    I've updated the package (and the compiled exe) to now use Lua scripting. I haven't done much except make the "Background" move, but its all working properly.

    Basically I got ambitious during my lunch hour instead of waiting till I got home .

    Still ALOT to do from the scripting side of things (obviously) but you can make the background move .

    As an aside: Please keep method overloading to a minimum. Lua doesn't support it at all, so all overloaded methods will have to be renamed in the scripting engine, or extreme code will have to be put in place to test witch version of the method to call. If anyone knows how to use type info inside of Lazarus exe's I'd love to hear it, as it would save time in the conversions of the actual objects.

  9. #39

    Writing a better 2D engine. (Phoenix 2D Game Engine)

    Oh, it seems some glxtreem files are included in the project file, probably due to that i have had them opened to copy some code, just open the project file and remove all items that referenses glx / SD2L
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

  10. #40

    Writing a better 2D engine. (Phoenix 2D Game Engine)

    Quote Originally Posted by Andreaz
    Oh, it seems some glxtreem files are included in the project file, probably due to that i have had them opened to copy some code, just open the project file and remove all items that referenses glx / SD2L
    I've made the changes to the package, and setup a post build clean.bat to execute. Now the compiled folder only contains the files that are required for a re-dist.

    Just to re-itterate: http://www.eonclash.com/phoenix/ProjectPhoenixFull.zip ~3.3MB

Page 4 of 30 FirstFirst ... 2345614 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •