Thanks again Petr for the example.
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
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
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
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
Thanks again man!
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
you can't always get what you want, but if you try sometimes you might find, you get what you need
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
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
Bookmarks