Search found 59 matches
- Feb 13, 2023 15:34
- Forum: Windows
- Topic: timeBeginPeriod
- Replies: 43
- Views: 4750
Re: timeBeginPeriod
I'm sorry @deltarho I don't have an answer. I feel your frustration. I noticed a similar thread recently in the PowerBASIC forum https://forum.powerbasic.com/forum/user-to-user-discussions/programming/821188-timebeginperiod . I hope someone can provide you an answer. I was surprised to read that Lin...
- Feb 10, 2023 17:05
- Forum: Windows
- Topic: timeBeginPeriod
- Replies: 43
- Views: 4750
Re: timeBeginPeriod
I am not sure what point you are trying to make. It was a contribution to your post with brief explanation of an included barebones demonstration as well as a couple links. I think of examples and demonstrations as good things for learning. Linking external information related to the topic is also ...
- Feb 10, 2023 1:48
- Forum: Windows
- Topic: timeBeginPeriod
- Replies: 43
- Views: 4750
Re: timeBeginPeriod
Applications which do not use timeBeginPeriod will use the default system resolution – 15.625ms. Applications which do use timeBeginPeriod are subject to the highest resolution requested. Below is a demonstration implementing timeBeginPeriod for Windows systems. In this demo, the variable sleep_tim...
- Feb 01, 2023 22:14
- Forum: Projects
- Topic: MathCar: Educational Racing Game
- Replies: 3
- Views: 1369
Re: MathCar: Educational Racing Game
I like this. On the sales page I think it might help to promote what age range this is intended for. The promoted media demonstrates that the mathematics are simple addition, subtraction, multiplication, and division. I remember being introduced to these operations completely around age 6 in first g...
- Jan 31, 2023 21:15
- Forum: Sources, Examples, Tips and Tricks
- Topic: BESCII font and Commodore PETSCII font
- Replies: 1
- Views: 1090
Re: BESCII font and Commodore PETSCII font
Thanks for sharing this. I'd come across this technique of using ubyte values for the rows of 8x8 fonts but hadn't done anything with it. Your post encouraged me to convert my own slightly modified font tileset this way. Besides this I also included the bulkier method of storing the font in a bitmap...
- Jan 20, 2023 2:52
- Forum: Sources, Examples, Tips and Tricks
- Topic: Simple lightning bolt algo
- Replies: 29
- Views: 6796
Re: Simple lightning bolt algo
I was looking for a lightning algorithm and came across this old thread. Here is my contribution based on attacke's example. I stripped away the conversion from radian to degree ( and back again ) and changed some of the core routine. https://i.postimg.cc/262nzmvJ/lightning.jpg #define min( v, x ) _...
- Feb 19, 2021 14:44
- Forum: Sources, Examples, Tips and Tricks
- Topic: 2D shadows
- Replies: 26
- Views: 7201
Re: 2D shadows
I found a small, and very simple SAT test of mine Jaw drop. There is a lot of useful material here. Anyone interested in collision detection should make this a part of their curriculum. Here's a short youtube video showing and explaining the basic concept. https://www.youtube.com/watch?v=IELWpIGtjR...
- Feb 18, 2021 21:00
- Forum: Sources, Examples, Tips and Tricks
- Topic: 2D shadows
- Replies: 26
- Views: 7201
Re: 2D shadows
Google is your friend. Ahh, good ol' Google. The fourth link that Google provided me upon searching "separating axis theorem" deceptively went to a viagra page. Not just viagra, but super viagra, and viagra professional, too. Avoid the "dyn4j" result if you search this yourself....
- Feb 17, 2021 22:32
- Forum: Beginners
- Topic: Inconsistent stuttering problem
- Replies: 11
- Views: 1364
Re: Inconsistent stuttering problem
Is there somewhere in my code I need to reference this precision timer? How does it work exactly? The precision timer example belongs to the Windows only "winmm.dll" library. The reason we use it within a preprocessor #ifthen is to check for a Windows system. It seems that the Windows sys...
- Feb 15, 2021 13:43
- Forum: Sources, Examples, Tips and Tricks
- Topic: Guess what the output of this code is?
- Replies: 4
- Views: 1155
Re: Guess what the output of this code is?
I got this output:
- Feb 15, 2021 3:14
- Forum: Beginners
- Topic: Inconsistent stuttering problem
- Replies: 11
- Views: 1364
Re: Inconsistent stuttering problem
For a bit more information regarding this topic see the FBWiki: https://www.freebasic.net/wiki/ProPgAntiFlickering
- Feb 15, 2021 2:33
- Forum: Beginners
- Topic: Inconsistent stuttering problem
- Replies: 11
- Views: 1364
Re: Inconsistent stuttering problem
Try adding this screencontrol above your screenres : screencontrol 103, "DirectX" 'screencontrol 103, "GDI" ScreenRes screen0width, screen0height, bitdepth, 2, (GFX_FULLSCREEN Or GFX_NO_SWITCH) If "DirectX' doesn't help, use GDI. If neither of these help, you can always try ...
- Feb 15, 2021 1:00
- Forum: Beginners
- Topic: Inconsistent stuttering problem
- Replies: 11
- Views: 1364
Re: Inconsistent stuttering problem
Try this and see if it helps at all. It could be a Windows system timing inconsistency. '######################################################################################################## #ifdef __FB_WIN32__ declare function set_precision_timer lib "winmm.dll" alias "timeBeginPe...
- Feb 14, 2021 22:23
- Forum: Projects
- Topic: Maze Walker
- Replies: 3
- Views: 1190
Re: Maze Walker
Nice demonstration. If Indiana Jones is your thing, you should code in a rolling stone chasing after the character. Really make the code sweat!
- Feb 11, 2021 21:41
- Forum: Game Dev
- Topic: experimenting with sprites
- Replies: 21
- Views: 4944
Re: experimenting with sprites
@ron77 - What MrSwiss is saying is an important thing to aim for when coding. These are basics that you should make a habit of. You'll need to follow these basics if you want to become a better coder. I updated my example for you that takes away the bad habit of using "shared" and "in...