Page 13 of 30 FirstFirst ... 3111213141523 ... LastLast
Results 121 to 130 of 300

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

  1. #121
    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)

    Sounds good

    Last week I had a few problems on one PC where a FullScreen window made everything green. I have not tested it much yet though.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  2. #122

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

    Please test it, but i have bad experience of OpenGL on laptops, the gpu's are often some odd variant of the normal cards with lacking driver support.

    Found a small bug in the imageclass, for some reason i have switched place of the parameters in some functions, ie drawAdd:

    Procedure DrawAdd(X,Y,Alpha);
    Procedure DrawAdd(X,Y,PatternIndex, Alpha);

    Should really be

    Procedure DrawAdd(X,Y,Alpha);
    Procedure DrawAdd(X,Y, Alpha, PatternIndex);

    for consistency across the board.
    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

  3. #123

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

    I finally might have a bit more time to start converting the classes and creating test cases for the scripting engine. Was curious to see what you felt were the most important classes and units to convert. I'm thinking:

    phxImage
    phxSprites
    phxSpriteEngine
    phxTexture
    phxFont

    I'm sure that there are more, so let me know. I'll post something once I have some demo's working with the headers. I figure that will be the easiest way to find what I'm missing

  4. #124

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

    Yeah, something like that, the functions and classes in phxTexture is rewritten from scratch through.

    Here's a link to the latest version of the documention, something like 20h work behind that so far:

    http://glxtreem.net/phoenix/docs.rar

    Image, Texture, Screen, Font, Input is covered so far.
    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

  5. #125

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

    Well, interestingly enough I've ran into some problems. I've successfully wrapped everything up, but when trying to run I get errors somewhere deep in the bowles of the system.

    You can download the source from: http://www.eonclash.com/phoenix/Phoenix2006-08-15.zip

    It would be nice if someone would take a look at the demo\Scripting\Scripting.lpr project. In the bin folder you will find a file called Game.lua. Run the Scripting.exe and everything is fine. Open Game.lua and change:
    Code:
    --[[
    Images:LoadImagePattern('Sprites.png', 32, 32);
    Images:LoadImage('Rectangle.png');
    Images:LoadImage('Octagon.png');
    --]]
    to
    Code:
    Images:LoadImagePattern('Sprites.png', 32, 32);
    Images:LoadImage('Rectangle.png');
    Images:LoadImage('Octagon.png');
    --]]
    Now it will blow up when it tries to load the images. Looking at the code didn't help me any neither did the stack dump . Any ideas? Until I figure this out, fonts, Image collections, and sprites won't work . Once I figure it out, I'll make a clean build and we should have scripting support.

  6. #126

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

    BTW, Here is the dump that I get while running:
    Code:
    [FORMS.PP] ExceptionOccurred 
      Sender=EAccessViolation
      Exception=Access violation
      Stack trace:
      $004FBC75  REMOVE_FROM_LIST_VAR,  line 562 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc
      $004FB1B1  SYSGETMEM_VAR,  line 966 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc
      $004F9838  SYSGETMEM,  line 1002 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc
      $004F4389  GETMEM,  line 229 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc
      $004F32F2  fpc_dynarray_setlength,  line 185 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/dynarr.inc
      $004EED75  TPHXTEXTURELOADER_FREEIMAGE__LOADBITMAP,  line 498 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxTexture.pas
      $004EF259  TPHXTEXTURELOADER_FREEIMAGE__LOADIMAGEDATA,  line 591 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxTexture.pas
      $004EE9A2  TPHXTEXTURELOADER__LOADTEXTURE,  line 432 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxTexture.pas
      $004EF8EB  TPHXIMAGE__LOADIMAGE,  line 205 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxImages.pas
      $004F0BF3  TPHXIMAGELIST__LOADIMAGE,  line 675 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxImages.pas
      $004DF91A  LUATPHXIMAGELISTLOADIMAGEPATTERN,  line 784 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/lua/lua_phxImages.pas
      $002648B6
      $0026BA4E
      $002649F8
      $00261E76
      $002642E3
      $00264C8A
    TApplication.HandleException Access violation
      Stack trace:
      $004FBC75  REMOVE_FROM_LIST_VAR,  line 562 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc
      $004FB1B1  SYSGETMEM_VAR,  line 966 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc
      $004F9838  SYSGETMEM,  line 1002 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc
      $004F4389  GETMEM,  line 229 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/heap.inc
      $004F32F2  fpc_dynarray_setlength,  line 185 of C:/lazarus/source/fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/dynarr.inc
      $004EED75  TPHXTEXTURELOADER_FREEIMAGE__LOADBITMAP,  line 498 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxTexture.pas
      $004EF259  TPHXTEXTURELOADER_FREEIMAGE__LOADIMAGEDATA,  line 591 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxTexture.pas
      $004EE9A2  TPHXTEXTURELOADER__LOADTEXTURE,  line 432 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxTexture.pas
      $004EF8EB  TPHXIMAGE__LOADIMAGE,  line 205 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxImages.pas
      $004F0BF3  TPHXIMAGELIST__LOADIMAGE,  line 675 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/phxImages.pas
      $004DF91A  LUATPHXIMAGELISTLOADIMAGEPATTERN,  line 784 of C:/Documents and Settings/jdarling/Desktop/Phoenix2006-08-15/src/lua/lua_phxImages.pas
      $002648B6
      $0026BA4E
      $002649F8
      $00261E76
      $002642E3
      $00264C8A
    [FORMS.PP] ExceptionOccurred
    The same thing will happen if you try to use the font:
    Code:
      Font = TPHXFont:new()
      Font:LoadFont('Arial16.phfnt')

  7. #127
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

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

    Wow docs already huh?

    So, does this project have a public website yet? Or is PGD it?

    Can't wait to see the first Phoenix Engine demos!
    Jason McMillen
    Pascal Game Development
    Co-Founder





  8. #128
    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)

    Hi Andreaz

    Bad news. My PC at home that gave me a funny color full screen version previously doesn;t display anything using the new version

    I was using specifically the Input demo, and also took my previous version of the demo and ran it. Both just give me blank screens.

    Its an AMD 64x2 4400, X1600 card and 1GM RAM.

    What sort of tests can I do to try work out what the problem is.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  9. #129

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

    Quote Originally Posted by WILL
    Wow docs already huh?

    So, does this project have a public website yet? Or is PGD it?

    Can't wait to see the first Phoenix Engine demos!
    Yeah, i've started writing documentation for the completed components. Mor fun then to write everything at once

    Well only pgd for now, there's just a blank page att http://phoenix.glxtreem.net/ so far. We could use some sweet logo through

    Me neither
    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. #130

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

    Quote Originally Posted by cairnswm
    Hi Andreaz

    Bad news. My PC at home that gave me a funny color full screen version previously doesn;t display anything using the new version

    I was using specifically the Input demo, and also took my previous version of the demo and ran it. Both just give me blank screens.

    Its an AMD 64x2 4400, X1600 card and 1GM RAM.

    What sort of tests can I do to try work out what the problem is.
    Try changing the resolution, deaphtbits, vsync and so in TPHXScreen.Open and see if that helps.
    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

Page 13 of 30 FirstFirst ... 3111213141523 ... 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
  •