locked
LitDev Extension New Features RRS feed

  • General discussion

  • I have added a couple of bits recently.

    1] Call functions and subroutines with arguments - LDCall

    2] Add ScrollBars to the GraphicsWindow - can be used to create a scrolling game - LDScrollBars

    3] Another (much simpler inside GraphicsWindow) 3D model - less of a 'build Quake' in SmallBasic and more 'learn about 3D representations' - very early stages and may go further if there is interest - LD3DView

    4] Gradient Brush effects - LDShapes

    Samples with download in usual place.

    • Edited by litdev Tuesday, January 15, 2013 9:40 PM
    Tuesday, January 15, 2013 8:06 PM

All replies

  • AMAZING!

    That's wonderfull!! I'll try that!


    A spark to start a fire is necessary. But mainly you need dry kindling.

    Tuesday, January 15, 2013 10:10 PM
    Answerer
  • You are AMAZING man! Keep it up. The scroll bar should be Awesome.

    Wednesday, January 16, 2013 8:12 AM
  • Cool. We will use the scroll bar in the game we are working on ...
    Wednesday, January 16, 2013 9:22 AM
  • I like the High score :)

    A spark to start a fire is necessary. But mainly you need dry kindling.

    Wednesday, January 16, 2013 10:56 PM
    Answerer
  • Updated the 3D methods to the point where a basic game is possible.  Uploaded as version 46.

    Sample maze game showing how to create and modify 3D objects and the camera etc. in the download zip.

    Saturday, January 19, 2013 11:49 PM
  • Nice!! LD3DView works great even on this 32-bit laptop.

    I am an 11 year old that loves math, games, and computers. 'Binary is as easy as 1, 10, 11.'

    Sunday, January 20, 2013 3:57 PM
  • Added a few more bits for the 3D - relatively sophisticated games now possible; and a right click drop-down context menu option for the GraphicsWindow that can be set with your own options and icons.
    Saturday, February 2, 2013 4:02 PM
  • can i download this 3D maze?
    Friday, February 15, 2013 10:30 PM
  • Yes all the code for it is included in the LitDev dll zip, download on this site http://litdev.hostoi.com/ (LitDev extension dll) (maze file in zip is 3D-samples/LD3DMazeGame.sb).  The maze is created from triangles that form squares and these are copied, rotated and moved to form walls.  It is a bit complicated because everything is created from scratch using triangles, built up to create a world, but that is the nature of 3D.

    The maze layout can then be created from these using a simple layout design included in the SmallBasic source like this, so you can create your own maze and modify the program to create your own game.

    'Create a world based on layout
    ' X is an empty room
    ' L is a room with a light
    ' C is a room with a rotating illuminated cone
    layout = ""
    layout[15] = "LXX     LXXXXXXXXXXXXXXXLXXXX"
    layout[14] = "X X XXLXX   X    X        XCX "
    layout[13] = "XXLXX   X   X    X               "
    layout[12] = "L C XXL XL  X    LXXXXXXXLXXXXX"
    layout[11] = "XXX L X  X  LXXXX     X     XCX"
    layout[10] = "L XXXXXX X      L     X  XXLXXXLXXXLX"
    layout[9] = "   X      XXXXLXXXXXXXXL  X"
    layout[8] = "   X      X               L      XLXX"
    layout[7] = "LXXX    LXXXXXXXXXXXLXXXXXX      X  X"
    layout[6] = "C X XXLXX                 X      X  L  "
    layout[5] = "XXLXX   X                 XX     L  X"
    layout[4] = "L X XXL XL                 XXXXXXXXXX"
    layout[3] = "XXX L X  X                   XCX"
    layout[2] = "X XXXXXX X               XXLXXXXXXXLX"
    layout[1] = "XXL XX XLXXXXXXXXXXXXXXXXXXXXLXXXXXXX"
    createWorld()
    
    Friday, February 15, 2013 10:53 PM
  • i like 3d maze game in LitDev zip

    how would i be able to change the cone to the 3D alien in LitDev zip in the 3D folder?

    Tuesday, February 26, 2013 8:59 AM
  • Would you mind taking this extension open-source? I myself am very curious how your 3-d is coded.

    ~~AirWaves!!~~

    Tuesday, February 26, 2013 9:16 AM
  • It is open source under GPL - the full source is one of the downloads.
    Tuesday, February 26, 2013 2:11 PM
  • Relpace the cone grid with the alient grid - perhaps not rotating, or rotated to the direction it is moving, also some scaling may be needed (can alter lighting normals on the mesh so it may be better to rescale the maze!).

    I suggest start by creating your own 3d models a bit, with a cone, sphere and alien to understand how it works.  Then try moving them, resizing, rotating etc and it should then be not too hard to alter the maze game.

    It will be hard to modify it without first building your own programs a bit.

    Tuesday, February 26, 2013 2:16 PM
  • if i wanted to add a new part to maze a objective that could move like the cone but if it come in to close to player the game would be over
    Tuesday, March 5, 2013 8:53 AM
  • There isn't a simple answer to this, but:

    1] Do your own shall prototyping to get familiar with the 3D methods.

    2] Create a new maze symbol in the mesh definition.

    3] when this is detected add the new shape in place of the code - very similar code, maybe even share the cone arrays + a new for the new object.

    4] Use all of the cone movement AI (perhaps not the rotations)

    5] Either use the hit method (possibly modified) for the cones or some other proximity test (from their positions) rather than a head on hit.

    Tuesday, March 5, 2013 6:34 PM