Search found 3595 matches

by BasicCoder2
Mar 02, 2021 17:45
Forum: General
Topic: Pentacles
Replies: 63
Views: 3348

Re: Pentacles

@badidea Worth its own thread if you get one to work. A common demo is the xor gate as it requires two layered network to learn. Maybe one that can learn to behave like a full binary adder? Or one that can learn ascii character images on a 8x8 binary input? https://www.freebasic.net/forum/viewtopic....
by BasicCoder2
Mar 02, 2021 7:33
Forum: Community Discussion
Topic: window10 denies saving file
Replies: 2
Views: 107

Re: window10 denies saving file

Hi JohnK_RQ
How do I log in as admin?
I can right click the FBIde icon on the desktop and choose, run as administrator and it works, but on my other win10 computer it just works.
by BasicCoder2
Mar 02, 2021 2:16
Forum: Community Discussion
Topic: window10 denies saving file
Replies: 2
Views: 107

window10 denies saving file

Hi, I had this problem before with another computer but can't find the relevant posts on the forum. I have just installed windows 10 on a new computer and can't save FreeBasic files. C:\FreeBasic\test\test1.bas You don't have permission to save to this location. Contact the administrator to obtain p...
by BasicCoder2
Feb 28, 2021 4:40
Forum: Beginners
Topic: Integer data types in 32-bit and 64-bit
Replies: 20
Views: 406

Re: Integer data types in 32-bit and 64-bit

@badidea
Added your contribution to my useful stuff folder :)
Can that ANN be made to actually work?
example:
Set of 8x8 binary images (maybe ascii characters) as inputs to recognize over any binary noise the desired ascii code as output?
by BasicCoder2
Feb 17, 2021 16:35
Forum: Beginners
Topic: Loading Images
Replies: 9
Views: 377

Re: Loading Images

MrSwiss wrote:@BasicCoder2, back to "old habits" so soon?

Old piece of code. Thanks for writing a better version.
by BasicCoder2
Feb 17, 2021 9:25
Forum: Beginners
Topic: Loading Images
Replies: 9
Views: 377

Re: Loading Images

The example below shows one way to get the size of a bitmap before loading. The program first loads a list of .bmp files found in the same folder as the program. You can modify it to load images from another folder. Just tap a key and it will go through the list, loading and displaying each image in...
by BasicCoder2
Feb 16, 2021 23:12
Forum: Game Dev
Topic: Conway's game of life
Replies: 7
Views: 304

Re: Conway's game of life

Good old game of life usually one of the first programs a beginner might write. Here is one of the old ones I wrote some time ago dug out of the archives. Personally I find dark blue on black hard on the eyes. SCREENRES 480,480,32 dim as integer v,p,q,s,c const WW = 120 'world width const WH = 120 '...
by BasicCoder2
Feb 14, 2021 2:02
Forum: Community Discussion
Topic: Should beginners learn OOP first?
Replies: 15
Views: 447

Re: Should beginners learn OOP first?

@MrSwiss,
Always appreciate your honesty.
Is my code example in the "experimenting with sprites" thread any better?
by BasicCoder2
Feb 13, 2021 14:16
Forum: Game Dev
Topic: experimenting with sprites
Replies: 21
Views: 793

Re: experimenting with sprites

@ron77 You only need one SPRITE class Code below is a move in that direction. Remember literals are not a good thing. You need to be able to handle different sized sprites. Attached are larger sprites as they are easier for me to see :) If you want to try the large sprites just edit these lines, con...
by BasicCoder2
Feb 12, 2021 10:38
Forum: Game Dev
Topic: experimenting with sprites
Replies: 21
Views: 793

Re: experimenting with sprites

Your interest has piqued my interest in improving how I code.
by BasicCoder2
Feb 12, 2021 0:24
Forum: Game Dev
Topic: experimenting with sprites
Replies: 21
Views: 793

Re: experimenting with sprites

ron77 Hope you are taking on board the comments made by MrSwiss for 'good coding practice'? I seem to recognize the warrior sprites from this article? https://games.freebasic.net/BASICGaming/Issue2/index.html#tutorial1 The problem I see here is that the computations to display the animations are par...
by BasicCoder2
Feb 11, 2021 20:24
Forum: Game Dev
Topic: experimenting with sprites
Replies: 21
Views: 793

Re: experimenting with sprites

@MrSwiss
unfortunately the current examples given to you, are lacking in 'good coding practice'.

The problem is a lot of game tutorials were written before OO features were added to FreeBASIC.
by BasicCoder2
Feb 10, 2021 23:37
Forum: Projects
Topic: Alvarian Tales
Replies: 26
Views: 6285

Re: Alvarian Tales

@mrToad

Nice looking artwork and animations.
So is the game you were working on like this?
https://www.youtube.com/watch?v=TW3OQbxXuqY
by BasicCoder2
Feb 10, 2021 23:16
Forum: Game Dev
Topic: experimenting with sprites
Replies: 21
Views: 793

Re: experimenting with sprites

ron77 the trouble is that the sprite i'm using is limited and does not include "left or right up or down" positions You could use free template sprite sheets to test your code. The author says you can use them for your own use just don't claim them as your own. https://forums.rpgmakerweb.c...
by BasicCoder2
Feb 10, 2021 18:15
Forum: Game Dev
Topic: experimenting with sprites
Replies: 21
Views: 793

Re: experimenting with sprites

You can load and save in other file formats. https://www.freebasic.net/forum/viewtopic.php?f=14&t=24105 #ifndef __FBImage_bi__ #define __FBImage_bi__ #ifdef __FB_WIN32__ # libpath "lib/win" #else # libpath "lib/lin" #endif #ifndef __FB_64BIT__ # inclib "FBImage-32-static...

Go to advanced search