Search found 1788 matches

by leopardpm
Jan 12, 2019 21:44
Forum: Beginners
Topic: LOAD PNG TO IMAGE
Replies: 15
Views: 679

Re: LOAD PNG TO IMAGE

i think creating the entire PNG loading routine would be pretty involved, especially considering the various(?) possible compression techniques... though you have a good start on the header already... still would suggest just using the library... MUCH simpler and you can continue on with your progra...
by leopardpm
Jan 12, 2019 20:12
Forum: Beginners
Topic: LOAD PNG TO IMAGE
Replies: 15
Views: 679

Re: LOAD PNG TO IMAGE

check the library FBimage for various graphical filetype loadings... once you have the FBimage library loaded, then it is a simple statement dim shared as any ptr campfire campfire = imagecreate(32,32) 'or whatever campfire = LoadRGBAFile("data/graphics/Campfire.png") it is an unfortunate ...
by leopardpm
Jan 12, 2019 6:50
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 19582

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

Multiplayer strategy game I've been working on. Still much to do but here is a video of my WIP. https://www.youtube.com/watch?v=YMVUlnkMW7M&feature=youtu.be Wow! Super-nice! I really like it - surprising with the graphics level, you have done a great job... I like the 'Assembly Age, then the 'Q...
by leopardpm
Jan 11, 2019 1:30
Forum: Game Dev
Topic: GOAP: A Basic AI Tutorial
Replies: 32
Views: 1718

Re: GOAP: A Basic AI Tutorial

Really I think a simple code example of GOAP in action would have more tutorial value if it isn't clogged up with fancy graphics and the need for a dll to be included so that the code concentrates more on the mechanics behind the simulation. you are absolutely correct, i was getting carried away wi...
by leopardpm
Jan 11, 2019 1:18
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 19582

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

Lachie Dazdarian wrote:Hello everyone. It's 3.5 weeks until the end of compo, and I would really appreciate that all who plan to submit something to post some info on their progress. The time is really nigh for that.

<grumble> 3.5 weeks! <grumble>

Pitto! That is really nicely done!
by leopardpm
Jan 09, 2019 15:02
Forum: Game Dev
Topic: GOAP: A Basic AI Tutorial
Replies: 32
Views: 1718

Re: GOAP: A Basic AI Tutorial

Leopardpm wrote: This routine does not check for infinite loops which you can easily accidentally create by the way you define the actions effects & pre-conditions. It seems to me that mistakes in what preconditions and effects are required for an action may become a real issue as it become mor...
by leopardpm
Jan 08, 2019 22:57
Forum: Game Dev
Topic: GOAP: A Basic AI Tutorial
Replies: 32
Views: 1718

Re: GOAP: A Basic AI Tutorial

BasicCoder2, were you able to run v005 now?
by leopardpm
Jan 08, 2019 21:36
Forum: Game Dev
Topic: GOAP: A Basic AI Tutorial
Replies: 32
Views: 1718

Re: GOAP: A Basic AI Tutorial

the PNG file "sample of possible Agent graphics...about 48x48 each.png" was just a game I came across that had pretty neat, but simple agent graphics, something that someone with a bit more graphical aptitude than I might be able to replicate with animations.... I like how they are small, ...
by leopardpm
Jan 08, 2019 21:25
Forum: Game Dev
Topic: GOAP: A Basic AI Tutorial
Replies: 32
Views: 1718

Re: GOAP: A Basic AI Tutorial

you can try commenting out lines 17-20 - this is the hide console trick #If Defined(__FB_WIN32__) declare function hideConsoleWindow alias "FreeConsole"() as long hideConsoleWindow #EndIf I also notice that ALL files are in the main directory.... i think the program requires the sub direct...
by leopardpm
Jan 08, 2019 21:20
Forum: Libraries
Topic: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
Replies: 41
Views: 2119

Re: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)

Creating a WAV-file (from data in memory) does not seem too hard: http://soundfile.sapp.org/doc/WaveFormat/ since its just a onetime thing...using an online converter works fine for me. plus, that page describes the WAV format...would also need the OGG format and then a way to translate from ogg->w...
by leopardpm
Jan 08, 2019 18:13
Forum: Libraries
Topic: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
Replies: 41
Views: 2119

Re: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)

Joshy,
I am using both WAV files and OGG files... is there an easy way to convert OGG to a WAV file?

I would rather have all the same file type for loading/playing etc....

EDIT: Found an online converter, that will work for me... sorry to bother you
by leopardpm
Jan 08, 2019 18:04
Forum: Game Dev
Topic: GOAP: A Basic AI Tutorial
Replies: 32
Views: 1718

Re: GOAP: A Basic AI Tutorial

The beep means fbsound failed to initiate. Do you have the runtime libraries coied out of the "put these in same folder as the BASIC program" folder? good catch! Both BasicCoder2 and I have issues dealing with libraries and such - I think he hates them almost as much as I do.... since we ...
by leopardpm
Jan 08, 2019 17:32
Forum: Game Dev
Topic: GOAP: A Basic AI Tutorial
Replies: 32
Views: 1718

Re: GOAP: A Basic AI Tutorial

... and now I have used up all my goblin animations! Perhaps use still images of the actions like those little figures in the image, yeah.... since I will definitely not have all the animations for all the possible different actions, I will use a blinking icon overtop the sprite to indicate what th...
by leopardpm
Jan 08, 2019 6:27
Forum: General
Topic: Image Buffer Flipping
Replies: 22
Views: 678

Re: Image Buffer Flipping

FPS: 590-760 but I can't get your routine to work on a non-screen image buffer so I can compare to : Function reverse(Byref im As Any Ptr) As Any Ptr #define ppset(_x,_y,colour) *Cptr(Ulong Ptr,row+ (_y)*pitch+ (_x) Shl 2) =(colour) #define ppoint(_x,_y) *Cptr(Ulong Ptr,row + (_y)*pitch + (_x) Shl 2...
by leopardpm
Jan 08, 2019 4:51
Forum: Game Dev
Topic: GOAP: A Basic AI Tutorial
Replies: 32
Views: 1718

Re: GOAP: A Basic AI Tutorial

argh... keep procrastinating and playing with graphics, just a waste of time... sorry... had to adjust mapsize and now comma and period keys iterate through different sprites.... only gobby has animations though... need to re-write a bunch of this stuff, is just cobbled together..... the google driv...

Go to advanced search