Search found 3402 matches

by BasicCoder2
Apr 10, 2020 10:40
Forum: General
Topic: missing fbgl2d.bi
Replies: 0
Views: 5

missing fbgl2d.bi

Decided to see how hard it was to use OpenGL instead of fbgfx http://back2basic.phatcode.net/?Issue-%232/Basic-2D-Rendering-in-OpenGL-using-Easy-GL2D%3A-Part-1 http://back2basic.phatcode.net/?Issue-%232/Basic-2D-Rendering-in-OpenGL-using-Easy-GL2D%3A-Part-2 The examples use, fbgl2d.bi which I have b...
by BasicCoder2
Apr 10, 2020 3:05
Forum: Tips and Tricks
Topic: SAPI Voice Engine [Windows only]
Replies: 3
Views: 97

Re: SAPI Voice Engine [Windows only]

I noticed that windows 10 also has speech to text, can that be used to input text to a FreeBASIC program?
by BasicCoder2
Apr 10, 2020 2:58
Forum: Tips and Tricks
Topic: SAPI Voice Engine [Windows only]
Replies: 3
Views: 97

Re: SAPI Voice Engine [Windows only]

@UEZ Four error boxes while running code. Member: .Open(%s,%d,%b) Function: CallMethod Error In: InvokeArray Error: The parameter is incorrect. Code: 80070057 Source: IDispatch-interface Member: .Close Function: CallMethod Error In: InvokeArray Error: Unknown runtime error Code: 80045001 Source: IDi...
by BasicCoder2
Apr 08, 2020 23:32
Forum: Game Dev
Topic: List of *FREE* game programming resources
Replies: 80
Views: 94313

Re: List of *FREE* game programming resources

@D.J.Peters For example grab a "walk sequence" (as images or bones) import all frames and overdraw it with your shiny player/monster or what ever. That is the theory, however it is beyond me, particularly as I haven't even been able to finish a simple retro style 2d game! I remember horde3...
by BasicCoder2
Apr 08, 2020 0:16
Forum: Libraries
Topic: libOpenCV Windows/Linux 32/64-bit
Replies: 36
Views: 1226

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: 80
Views: 94313

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: 766

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: 55

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: 766

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: 766

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: 499

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: 17
Views: 633

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: 17
Views: 633

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: 740

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: 766

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'...

Go to advanced search