Search found 119 matches

by Pitto
Nov 21, 2020 13:39
Forum: Tips and Tricks
Topic: Bresenham Triangle rasterization
Replies: 1
Views: 144

Bresenham Triangle rasterization

For a project of mine I needed a class that allows to fill unregular triangles. The Bresenham's line can also be used as base to rasterize triangles (see https://cglearn.codelight.eu/pub/computer-graphics/task/bresenham-triangle). The triangle class: 'Fill a triangle using bresenham lines by Pitto '...
by Pitto
Nov 15, 2020 21:59
Forum: Tips and Tricks
Topic: Simply mouse class
Replies: 10
Views: 371

Re: Simply mouse class

Hi Paul Doe, funny game and useful framework to improve my poor math. Just for the sake of learning & debug: this is the old keyboard class I've used in the compo https://github.com/Pitto/Impossible_Victhorse/blob/master/inc/keyboard.bi: '' A simple class to help us deal with the keyboard ' by p...
by Pitto
Nov 15, 2020 18:19
Forum: Tips and Tricks
Topic: Simply mouse class
Replies: 10
Views: 371

Re: Simply mouse class

Hi paul doe, well done, it's much more powerful than mine version. I see that it recognizes also a button release outside the window. I will study it. Thanks. I go a little off topic: I was working on this mouse class because I wish to rewrite from scratch FB Low Poly Editor ( https://github.com/Pit...
by Pitto
Nov 15, 2020 12:13
Forum: Tips and Tricks
Topic: Simply mouse class
Replies: 10
Views: 371

Re: Simply mouse class

Hi paul doe,
thank you.
Feel free to post it here.
Best regards
by Pitto
Nov 15, 2020 11:38
Forum: Tips and Tricks
Topic: Simply mouse class
Replies: 10
Views: 371

Re: Simply mouse class

Hi Tourist Trap,

thanks for the review, I appreciate it.

I think that the problem may be fixed in this way: clipping the mouse to the to the foreground window (https://www.freebasic.net/wiki/KeyPgSetmouse).

Code: Select all

SetMouse 640\2, 480\2, 0, 1


I've updated the first post.
by Pitto
Nov 14, 2020 13:07
Forum: Tips and Tricks
Topic: Simply mouse class
Replies: 10
Views: 371

Simply mouse class

Here's a simply mouse class , recognizes Left & Rigth button being pressed, held or released; double click of the left button, mouse wheel and dragging. No external libraries, only fbgfx. Based upon a snippet by Paul Doe (https://www.freebasic.net/forum/viewtopic.php?f=15&t=26673) The class ...
by Pitto
Aug 07, 2019 12:04
Forum: Game Dev
Topic: The 50 years ago moon landing 4K contest!
Replies: 32
Views: 15275

Re: The 50 years ago moon landing 4K contest!

? "-Houston, we have a problem..." sleep 1000 ? "-What's the problem?" sleep 1000 ? "-Some issues on Linux here" sleep 1000 ? "-Swap line 202 with 203 and recompile... next time please read better the manual" ? " see https://www.freebasic.net/wiki/wikka....
by Pitto
Jul 30, 2019 19:24
Forum: Game Dev
Topic: The 50 years ago moon landing 4K contest!
Replies: 32
Views: 15275

Re: The 50 years ago moon landing 4K contest!

Thank you.
I think I can squeeze other bytes and add some feature.
It's a funny contest.
by Pitto
Jul 27, 2019 11:53
Forum: Game Dev
Topic: The 50 years ago moon landing 4K contest!
Replies: 32
Views: 15275

Re: The 50 years ago moon landing 4K contest!

Here's my entry… The moon landing from Collins' perspective there's still room for improvements… Use arrow Keys to move the module, spacebar to throttle. Even horizontal movement uses fuel. Don't waste the fuel. I didn't realize that my coding style wasted huge amount of bytes :) #include "fbgf...
by Pitto
Jul 25, 2019 18:21
Forum: Game Dev
Topic: The 50 years ago moon landing 4K contest!
Replies: 32
Views: 15275

Re: The 50 years ago moon landing 4K contest!

@UEZ

Moonshine 700 bytes -> Simply beautiful

Best regards
by Pitto
Apr 14, 2019 12:14
Forum: Projects
Topic: 3D Geometry , basics
Replies: 28
Views: 5042

Re: 3D Geometry , basics

Hi Luxan, it's nice to see an application of scanline algorithm I've translated in Freebasic from a C snippet some time ago (and Mr Swiss improved the translation). I've used it in some 2d applications such FB LowPolyEditor, but seems to work fine also on 3d environment. Good job so far Best regards
by Pitto
Mar 02, 2019 14:48
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition Community Poll (ROUND 1)
Replies: 12
Views: 2995

Re: "A Love Letter To FreeBASIC" Game Dev Competition Community Poll (ROUND 1)

Hi Lachie, Thank you again for organizing this competition and for reviewing the various games with competence and objectivity. I read your reviews in the other forum, they are very accurate, detailed and written with competence. And they explain thoroughly the motivations of the various scores. Rea...
by Pitto
Feb 10, 2019 22:54
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 32313

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize

Hi all, here's my official entry for the deadline of 11th February 18:00 GMT: Sources: https://github.com/Pitto/Impossible_Victhorse Binaries Windows: http://www.pitto-maker.cloud/VI/_official_release/WIN.zip Binaries Linux: http://www.pitto-maker.cloud/VI/_official_release/LINUX.tar Binaries Raspbe...
by Pitto
Feb 10, 2019 14:19
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 32313

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize

Hi Lachie, the official source code in my github repository is enough? Or you need an official binary release for Win and Linux, as the tar files I've uploaded one week ago? At the moment the official release version is 0.5.8 However I do not think to make further changes in the official repository ...
by Pitto
Feb 10, 2019 8:46
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 32313

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize

Pitto, you might wanna have a confirmation for exiting the game. I wanted to pause at level 4 and...yeah... Hi Lachie, this feature is now implemented (0.5.8 release now on Github), press "P" key while playing to pause the game. I haven't yet tested it, but it should work fine. Thank you ...

Go to advanced search