Results 1 to 7 of 7

Thread: Sprites / Character animation using INI file

  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Sprites / Character animation using INI file

    Hi,

    here comes little variation of the previous code, but with some auxiliary functions preventing hardcoding of the data.
    All animation info is stored inside INI file.


    Petr

    file updated on Mar 18th, 2012
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Petr Schreiber; 18-03-2012 at 12:37.
    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

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

    Re: Sprites / Character animation using INI file

    Thanks again Petr for the example.
    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
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Sprites / Character animation using INI file

    Thanks Kent,

    this is basically the same as previous one, but the separation of data and code should make this solution slightly better.
    There is big power in sprite functions, I hope more tutorials will help to unleash it
    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

  4. #4

    Re: Sprites / Character animation using INI file

    Thanks again man!

  5. #5
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    51
    Posts
    934
    Rep Power
    109

    Re: Sprites / Character animation using INI file

    hi petr, thanks a lot, that's really cute

    here I have a "house" for you, perhaps you can build a sweet home for the nice little robot. for my version he can run up (up) and down (space)

    I don't know how to specify "house" in your code example that can move too !
    just an idea.

    best regards, frank
    Attached Files Attached Files
    you can't always get what you want, but if you try sometimes you might find, you get what you need

  6. #6
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Sprites / Character animation using INI file

    Hi Frank,

    nice mod.
    To add house to scene, simply use TBGL_SpriteLoad.
    It will be demonstrated further in next tutorials, stay tuned
    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

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

    Re: Sprites / Character animation using INI file

    Updated the file,

    latest thinBASIC beta required, the code got easier as animation can now be determined using TBGL_SpriteSetAnimType.
    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

Similar Threads

  1. Sprites / Character animation
    By Petr Schreiber in forum TBGL Tutorials
    Replies: 3
    Last Post: 22-12-2009, 10:20

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
  •