Search found 3398 matches

by BasicCoder2
Apr 08, 2020 0:16
Forum: Libraries
Topic: libOpenCV Windows/Linux 32/64-bit
Replies: 36
Views: 1181

Re: libOpenCV Windows/Linux 32/64-bit

@yzfwsf, It seems easy to do with Python using opencv and tesseract. Not sure how to translate that to a FreeBASIC version. https://towardsdatascience.com/read-text-from-image-with-one-line-of-python-code-c22ede074cac img = cv2.imread('bitcoin.jpg') text = pytesseract.image_to_string(img) print(text...
by BasicCoder2
Apr 07, 2020 22:51
Forum: Game Dev
Topic: List of *FREE* game programming resources
Replies: 79
Views: 94174

Re: List of *FREE* game programming resources

The problem for your average programmer is not a lack of graphic tools, the problem is not being able to draw or paint let alone animate :)
by BasicCoder2
Apr 06, 2020 20:11
Forum: Game Dev
Topic: A simple miner program
Replies: 22
Views: 737

Games and OOP

@badidea I thought OOP was to prevent modifications breaking the code? I don't know. Maybe if you are good at it. And if you are capable of doing the full design before actual coding. Which I cannot. Maybe for a next project I try without OOP and see what happens. But with 'structs', else I go crazy...
by BasicCoder2
Apr 06, 2020 10:51
Forum: Game Dev
Topic: Diamond Miner Demo
Replies: 0
Views: 42

Diamond Miner Demo

Hold the space bar down to work the drill and the arrow keys to move the miner. chdir exepath() #include once "FBImage.bi" const TMAPW = 20 'size of tile array const TMAPH = 15 const TILEW = 64 'size of tile const TILEH = 64 const WINW = 640 'size of window over BMAP const WINH = 480 const...
by BasicCoder2
Apr 05, 2020 22:02
Forum: Game Dev
Topic: A simple miner program
Replies: 22
Views: 737

Re: A simple miner program

@badidea I thought OOP was to prevent modifications breaking the code? My coding is rather simple much as I coded on the old machines like the c64. I try and break it down into modules that only do one thing. The reason I deleted the post was it was rubbish (I thought) and I wasn't happy with the co...
by BasicCoder2
Apr 05, 2020 20:25
Forum: Game Dev
Topic: A simple miner program
Replies: 22
Views: 737

Re: A simple miner program

@badidea I have had time to spend on reworking game "engines" and try out some game ideas. I have played with the same graphics you are/were using but the code has to adapt to the images not the other way around. For example the cracking of a tile involves an overlay not a cracked image. I...
by BasicCoder2
Mar 31, 2020 20:31
Forum: Beginners
Topic: I started a blog to learn FreeBASIC through videogames
Replies: 9
Views: 494

Re: I started a blog to learn FreeBASIC through videogames

Doing a blog of your OpenGL learning journey to share the issues and solutions you find along the way may be a useful resource for others. There is always the issue that people have different starting points. Learning a programming language is not the same as learning how to use the language to obta...
by BasicCoder2
Mar 31, 2020 19:07
Forum: Tips and Tricks
Topic: fbgfx versus opengl graphics
Replies: 11
Views: 464

Re: fbgfx versus opengl graphics

@Tourist Trap Remove the comment symbol from, 'Draw String(w\4-50,110),"fbgfx cube" 'Draw String(3*w\4-50,110),"openGL cube" Personally I couldn't pick the difference. However I assume openGL can easily do a lot more than rotate a simple cube? Love dodicat's demo code even though...
by BasicCoder2
Mar 31, 2020 18:49
Forum: Tips and Tricks
Topic: fbgfx versus opengl graphics
Replies: 11
Views: 464

Re: fbgfx versus opengl graphics

Another nice demo :) I made two copies of your program. I deleted the include window.bi and gl\glu.bi and what I believe was OpenGL code from one copy and deleted what I believe was mainly fb code from the other copy. The frame rate for the fb only code was steady around 58 and 59 frames per second ...
by BasicCoder2
Mar 31, 2020 9:27
Forum: Community Discussion
Topic: Freebasic is not smooth in graphics
Replies: 17
Views: 713

Re: Freebasic is not smooth in graphics

@dodicat I also use FBIDE but if you look at your posted code all the end if statements are bang up against the left border. Below I have gone through your code and restored the indentations as it makes it easier for me to read. 'dodicat https://www.freebasic.net/forum/viewtopic.php?f=17&t=28415...
by BasicCoder2
Mar 29, 2020 19:17
Forum: Game Dev
Topic: A simple miner program
Replies: 22
Views: 737

miner demo program [classes]

The biggest problem for me is often: How do the classes communicate. For example, the miner needs to interact with the world. In this case, the world is a single line. How do I tell the miner where this line (floor) is, so it does not drop into oblivion. @badidea It is not an issue for me as I don'...
by BasicCoder2
Mar 29, 2020 19:02
Forum: Community Discussion
Topic: Freebasic is not smooth in graphics
Replies: 17
Views: 713

Re: Freebasic is not smooth in graphics

That is a neat little demo almost enough to make me want to learn more about openGL so I can untangle the code :)
What I have noticed with a lot of your example code is erratic indentations?
by BasicCoder2
Mar 28, 2020 0:48
Forum: Community Discussion
Topic: Freebasic is not smooth in graphics
Replies: 17
Views: 713

Re: Freebasic is not smooth in graphics

... the 'BASIC' mindset ( doEverythingForMe() kind of coding). Of course I have the 'BASIC' mindset that is why I am using FreeBASIC instead of C++ :) I once used to use C++ with the Bloodshed Dev-C++ IDE which for a while had these "packages" that would install libraries for you....
by BasicCoder2
Mar 28, 2020 0:29
Forum: Libraries
Topic: raylib headers
Replies: 34
Views: 1129

Re: raylib headers

Inside the raylib-2.6.0-Win32-mingw zip, in the /bin folder, it's the binary (the .dll) you need. Dump it into the folder where the examples are. You should then be able to run them. Now it complains "The code execution cannot proceed because libgcc_s_dw2-1.dll was not found. Reinstalling the ...
by BasicCoder2
Mar 27, 2020 23:25
Forum: Libraries
Topic: raylib headers
Replies: 34
Views: 1129

Re: raylib headers

Where should I extract the raylib-2.6.0-Win32-migw folder to?
I extracted the raylib-fb-master folder to C:/FreeBASIC/

Go to advanced search