Search found 1788 matches

by leopardpm
Jan 08, 2019 0:59
Forum: General
Topic: Image Buffer Flipping
Replies: 22
Views: 678

Re: Image Buffer Flipping

Why not using GET and PUT for flipping and mirror ? It's fast works with all Video modes and the drawing modes like PSET, ALPHA, CUSTOM are for free. Joshy um... how? I looked at the manual and didn't see how to do that... EDIT: just saw your post on Tips and tricks... interesting.... gotta be much...
by leopardpm
Jan 06, 2019 22:56
Forum: General
Topic: Image Buffer Flipping
Replies: 22
Views: 678

Re: Image Buffer Flipping

dodicat wrote:Nicely done leopardpm, very fast.
you did the hard work, sir!
by leopardpm
Jan 06, 2019 20:58
Forum: General
Topic: Image Buffer Flipping
Replies: 22
Views: 678

Re: Image Buffer Flipping

dodicat.... here it is testing with my adjustment... 1/3 of the time on average (3 times faster) comment/uncomment in your reverse routine to test other way 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 ppo...
by leopardpm
Jan 06, 2019 20:03
Forum: General
Topic: Image Buffer Flipping
Replies: 22
Views: 678

Re: Image Buffer Flipping

In general Is the word "flipping" mirror around X - axis and the word "mirror" around the Y - axis ? Joshy not really... you can flip horz (x-axis) or flip vert (y-axis).... you can mirror horz and mirror vert too flip and mirror are interchangeable I think EDIT: all the edits t...
by leopardpm
Jan 06, 2019 20:00
Forum: General
Topic: Image Buffer Flipping
Replies: 22
Views: 678

Re: Image Buffer Flipping

dodicat, actually this does save time... only half as many 'ppoints'.... and if the image has odd number of pixels then the center pixel is ignored as well... 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 p...
by leopardpm
Jan 06, 2019 19:20
Forum: General
Topic: Image Buffer Flipping
Replies: 22
Views: 678

Re: Image Buffer Flipping

Here's another nice...but... why do you make a temporary array to hold the color values? since you are going to overwrite the original image anyways, why not just straight modify it, swapping from on end to the other? would be twice as fast.... actually, was just trying to do that and since the 'sw...
by leopardpm
Jan 06, 2019 17:52
Forum: General
Topic: Image Buffer Flipping
Replies: 22
Views: 678

Re: Image Buffer Flipping

But never were able to fix the little shift of 1pixel of the picture. Maybe someone could tell me a fix by the same way here. the error must occur in this line: *cptr(ulong ptr, @flppixdata[y*flpH] + sizeOf(ulong)*x\flpbypp) = *cptr(ulong ptr, @imgpixdata[y*flpH] + 800 - sizeOf(ulong)*x\imgbypp) ei...
by leopardpm
Jan 06, 2019 16:08
Forum: General
Topic: Image Buffer Flipping
Replies: 22
Views: 678

Image Buffer Flipping

Is there a built-in way to flip an image buffer horizontally? like a flag in the PUT routine? or will I have to write a little routine to do it? I know the various image blitters posted here do it (multiPut, etc), but all I need is this single ability and would rather not include an entire additiona...
by leopardpm
Jan 03, 2019 3:21
Forum: Game Dev
Topic: GOAP: A Basic AI Tutorial
Replies: 32
Views: 1727

Re: GOAP: A Basic AI Tutorial

This is fun. It took me a bit to realize I had to face the tent to eat and sleep. Yeah, its just for testing right now, but I got a bit carried away... and now I have used up all my goblin animations! Already using the 'Death Blow' animation to sleep with! I am thinking just flashing an Icon over t...
by leopardpm
Jan 03, 2019 1:43
Forum: Game Dev
Topic: GOAP: A Basic AI Tutorial
Replies: 32
Views: 1727

Re: GOAP: A Basic AI Tutorial

well, working on getting the Actions Coded So far: Pick Berries Eat Berries Go To Sleep Chop Tree Put Wood in Firepit Light Campfire Move still need: Get Axe Get Matches Get Pick Get Magic Wand Make Magic campfire Make Axe Collect Branches Mine Iron Ore Smelt Iron Ore/Make Iron Bar and about 3,000 o...
by leopardpm
Jan 02, 2019 22:17
Forum: Game Dev
Topic: GOAP: A Basic AI Tutorial
Replies: 32
Views: 1727

Re: GOAP: A Basic AI Tutorial

That's really cool - I can't wait to check out your networking code I totally understand about the graphics being distracting to the main thrust of coding... but they are sooo 'immediate gratification'... same with sounds, as I found out last night. I really am avoiding doing the grunt work on hooki...
by leopardpm
Jan 02, 2019 21:51
Forum: Game Dev
Topic: GOAP: A Basic AI Tutorial
Replies: 32
Views: 1727

Re: GOAP: A Basic AI Tutorial

Multiplayer 3d ascii RTS game Really? Multiplayer LAN or through the internet? Thats exciting! I also would like to eventually include multi-player (LAN and internet), but that is far from top-priority at the moment Why ASCII? Doesn't seem any 'easier' to implement over a graphical game.... Can't w...
by leopardpm
Jan 02, 2019 17:20
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 360
Views: 19613

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

Landeel wrote:Here's some gameplay of my WIP:
https://youtu.be/BcY3NG7bqkw
Excellent! Looking great! The horse in space is a bit.... forced?... but that's just my opinion of course! Everything looks smooth and you have alot of different graphic effects... really sweet and old school!
by leopardpm
Jan 02, 2019 17:03
Forum: Game Dev
Topic: GOAP: A Basic AI Tutorial
Replies: 32
Views: 1727

Re: GOAP: A Basic AI Tutorial

This is looking really good, I'm looking forward to seeing them combined. In the folder are also the required fbsound library files which should work as long as they are in the same folder as the program - please let me know if you get errors or no sounds... There isn't any sound library files for ...
by leopardpm
Jan 02, 2019 16:22
Forum: Game Dev
Topic: GOAP: A Basic AI Tutorial
Replies: 32
Views: 1727

Re: GOAP: A Basic AI Tutorial

OK, got side tracked with sounds, no less.... but decided I would be smarter as to how to provide access for anyone would wants all the files... hence trying Google Drive Here is the link to the project: https://drive.google.com/drive/folders/1MW0dMC2jL_Q0-y7qpOy8R1YTeH01QWrW?usp=sharing I will now ...

Go to advanced search