Example for animating 2D sprites

Started by Shardik, February 05, 2025, 20:57:18

Previous topic - Next topic

Shardik

I have copied Qube's following posting from the locked topic "I've stopped looking at different programming languages.":
QuoteTalking of not looking at other languages, I recently had a quick play with PureBASIC and couldn't even get it to move a handful of sprites about in 2D without juddering :o Not sure what I was doing wrong or missing but it was a very simple create window, load sprite, move sprites, flip screen. No idea why it wasn't silky smooth so closed the app down and thought feck it.
For a simple demo of animating 256 small sprites without juddering you may try this demo (Example 1) with 94 code lines (including blank lines and comments) from miso. I have just tested it on MacOS 13.7.3 'Ventura' with PB 6.20 x64 Beta 4.

Baggey

Thankyou for a very nice Demo. ;)

I to have stopped looking at other programming languages. If it wasn't for Blitzmax id probably be using PureBasic.
Im going to try and translate it to BlitzmaxNG

Kind Regards Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 32GB ram  2x1TB SSD and NVIDIA Quadro K1200 on 2 x HP Z24's . DID Technology stop! Or have we been assimulated!

Windows10, Parrot OS, Raspberry Pi Black Edition! , ZX Spectrum 48k, C64, Enterprise 128K, The SID chip. Im Misunderstood!

Pfaber11

I had a bit of juddering and changed the screen resolution which seemed to cure it.
Windows 11 home edition
PureBasic 6.20 and AppGameKit studio
ASUS Vivo book i5 15 16gb ram 512gb ssd
ASUS Vivo book i3 15 16gb ram 256gb ssd
HP Desktop; AMD 6700 A10 16GB ram 2 GB graphics card windows 10