Recent

Author Topic: Winter demo 2018  (Read 2198 times)

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Winter demo 2018
« on: December 25, 2018, 10:03:07 am »
Thought to make a small "winter card" sort of app  :)  I load in high quality pictures so that's why compressed size is 3MB. It's on purpose so someone might learn scaling techniques, pixel manipulation etc. It includes an invert function with alpha-channel. And no external libraries, just Lazarus. Snow falling animation scales with fps, so speed and thickness of it should be same on every machine.

I intended to make snow also collide and form a surface, but since it's already down to 42 fps on my machine i thought it's enough. Better performance could be achieved with hardware acceleration.

Source code: https://1drv.ms/u/s!AkA8eob3K73BhAjM7LXoxpbJJ2X8
« Last Edit: December 25, 2018, 10:07:44 am by User137 »

circular

  • Hero Member
  • *****
  • Posts: 3329
    • Personal webpage
Re: Winter demo 2018
« Reply #1 on: December 26, 2018, 01:56:40 pm »
Cool idea
Sadly doesnt work here on Linux and Lazarus 1.6.
Conscience is the debugger of the mind

wp

  • Hero Member
  • *****
  • Posts: 7204
Re: Winter demo 2018
« Reply #2 on: December 26, 2018, 04:48:34 pm »
The same with Laz trunk and gtk2 (on Linux Mint). But with qt, the program is ok.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: Winter demo 2018
« Reply #3 on: December 26, 2018, 09:12:14 pm »
Well, Rawimage was supposed to be crossplatform compatible. I started with Scanline but changed my mind as that would have been windows only.

 

TinyPortal © 2005-2018