Results 1 to 10 of 63

Thread: 2nd PGD Challenge - "Platformation"

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    When it crashes and I hit break, it stops at this line:

    Code:
    method GameApplication.InitGame;
    begin
      FScreenWidth  := cScreenWidth;
      FScreenHeight := cScreenHeight;
    
      FLevel := new GameLevel; **** <-------------------  stops here ---------  *******
      FLevel.SetBounds(10,10,cTileWidth,cTileHeight);
    
      FLevel.RegisterRenderTileRoutine(GameTile.cTileTheme_Earth ,@RenderTile_Ground);
      FLevel.RegisterRenderTileRoutine(GameTile.cTileTheme_Air   ,@RenderTile_Ground);
      FLevel.RegisterRenderTileRoutine(GameTile.cTileTheme_Fire  ,@RenderTile_Ground);
      FLevel.RegisterRenderTileRoutine(GameTile.cTileTheme_Water ,@RenderTile_Ground);
    end;
    HELP!!!
    Last edited by paul_nicholls; 16-04-2012 at 03:24 AM.

  2. #2
    You have an array of array, maybe that isn't supported?

    Code:
      LevelRow   = array of GameTile;
      LevelLayer = array of LevelRow;
    you could try changing it to a fixed-size array, or a single-dimensional array, and then access it by LevelLayer[y*nbColumns+x] ?

  3. #3
    Quote Originally Posted by Eric View Post
    You have an array of array, maybe that isn't supported?

    Code:
      LevelRow   = array of GameTile;
      LevelLayer = array of LevelRow;
    you could try changing it to a fixed-size array, or a single-dimensional array, and then access it by LevelLayer[y*nbColumns+x] ?
    LOL! By Jove...you are right, that IS a multi dimensional array...I will change it to 1d and see if it works then

    EDIT: That worked, thanks Eric!!

  4. #4
    Hey all,
    any chance of trying the same simple demo (drawing blue box, Escape key exits...) on your computers (windows only ATM)?
    Debug.zip

    PS
    . has anyone tried the attachement from my other post to see if they can run Oxygene for Java created programs?

  5. #5
    I haven't done it jet becouse I'm at work now. I'll do when I get home.

  6. #6
    No problem...when ever you can would be most helpful

  7. #7
    I just tried your example and it runs without any problem. I do have latest java client instaled on my computer thou. Cant know how it might behave with older clients.

Tags for this Thread

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
  •