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

Qube

Quote from: Shardik on February 05, 2025, 20:57:18I 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.
Sorry for the delay in replying to this.

Can confirm that this does run super smooth but I've another noob question. How in the flippity flip do you open a fullscreen window with no borders that actually is 'full screen'?. Despite all the flags for borderless and maximise I still have the MacOS dock showing and also the app window title.

I can do it with OpenScreen but I don't want to force a resolution change as that's the ugly old way :)) 
Mac Studio M4 Max ( 14 core CPU - 32 core GPU ), 32GB LPDDR5, 512GB SSD.
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 64GB DDR5 RAM, 2T PCIe 4.0 SSD.
Microsoft Surface Pro 11 ( Snapdragon® X Elite ), 16GB RAM, 512GB SDD.
ASUS ROG Swift OLED PG27AQDM OLED 240Hz.

Until the next time.

Pfaber11

PureBasic is an awesome language you can program pretty much anything in. I have invested about a year and a half in it and at some point in the future I'll try again. I find PureBasic harder to use than AGK but if I had to use it I would get it pretty quickly I should imagine as I know most of what I require. I had some issues when I used it last but I think they have been ironed out with 6.20 and the new Ogre 14.3  .
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

Pfaber11

There is a free version of purebasic so you can try before you buy. 
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