Results 1 to 7 of 7

Thread: TBGL Easter Egg in a basket

  1. #1
    Member dcromley's Avatar
    Join Date
    Apr 2009
    Location
    Wyoming, USA
    Age
    86
    Posts
    80
    Rep Power
    24

    TBGL Easter Egg in a basket

    This is maybe my 5th post. It's late -- Easter is almost over even here in Wyoming.
    I'm a retired mainframe (IBM mainframes) systems programmer. I still like to play with
    math and programming, mostly Word and Excel macros in VBA. I don't see how people
    can keep up with what's going on in the programming world. It's too much.

    Anyway, I like graphics, and I worked my butt off getting this program done by Easter.
    Barely made it. (It's tomorrow in a large part of the world). Of course, I copied from
    the Examples a lot. It has some things I want to improve, so I'm just putting it on my
    website. That's probably the best place anyhow. I enjoyed it, I hope you do.
    You need the .tbasic file and the .bmp texture file.

    http://dkcromley.inoutbox.com/dceasterbasket.tbasic
    http://dkcromley.inoutbox.com/weave.bmp

    Lower case is important. (Not on all sites, right?) Regards, Dave

  2. #2
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    68
    Posts
    3,865
    Rep Power
    405

    Re: TBGL Easter Egg in a basket

    Happy Easter dkcromley.

    I rar'd which is like zipping up the two files, makes it easier perhaps to download and run.

    Nice to have another coder interested in graphics, thanks for sharing your hard worked example.
    I got my Easter egg now
    Attached Files Attached Files
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Re: TBGL Easter Egg in a basket

    Thanks a lot Dave for this application.
    I checked you code: very nice and precise way of programming. Great, I like it a lot

    If I can, I have only one indication about the source: the use of CALL statement is not necessary if you just want to execute a named function. In this case only indicate the function name. It is a little faster without the CALL statement.

    The main reason why I've developed CALL is to be able to call script functions whose name is not known at run-time and can be computer on the fly as a string expression. Check CALL help and see examples to see what I mean.

    Thanks again for this very nice present.
    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736

    Re: TBGL Easter Egg in a basket

    Very nice!


    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  5. #5
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    58
    Posts
    3,299
    Rep Power
    348

    Re: TBGL Easter Egg in a basket

    Nice script Dave, thanks for sharing.

    TBGL_BuildFont should only be called once, outside your loop. And then you need to correct the position you print the text.

  6. #6
    Member dcromley's Avatar
    Join Date
    Apr 2009
    Location
    Wyoming, USA
    Age
    86
    Posts
    80
    Rep Power
    24

    Re: TBGL Easter Egg in a basket

    Thanks.

    I especially appreciate the code improvement comments.

    >Posted by: Michael Hartlef
    >And then you need to correct the position you print the text.
    That was debug text that I just didn't remove. And I would've made a 800x600 window
    instead of 1024x768 if I'd remembered to. Was the text in the upper left for you?

    >Posted by: kent sarikaya
    >I rar'd which is like zipping up the two files, makes it easier ..
    Yes, I thought of that. I've only used the LHA zipper which dates back to 1991 but I
    really like. It also makes a nice *.exe package, but I guess that's a poor idea for
    security. Is ZIP common here? LHA?

    Have a good week. Dave


  7. #7
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Re: TBGL Easter Egg in a basket

    ZIP is more diffuse bur RAR is ok too.
    LHA ... mmmm the risk is no one will get your code.

    If you want to attach files to posts, click on "Additional Options" just below text area.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Similar Threads

  1. Easter
    By peter in forum thinBasic General
    Replies: 9
    Last Post: 13-04-2009, 19:24

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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