Search found 2752 matches

by Tourist Trap
May 01, 2019 19:33
Forum: General
Topic: Remove items from array without changing the order
Replies: 7
Views: 428

Re: Remove items from array without changing the order

dodicat wrote:using memcpy

Thanks dodicat. For this issue, it seems that there will be no other workaround than memcopy really available to deal with this in a straightforward manner. Or we still miss it but right now I doubt.
by Tourist Trap
May 01, 2019 18:23
Forum: General
Topic: Remove items from array without changing the order
Replies: 7
Views: 428

Re: Remove items from array without changing the order

_BUFFERTYPESIZE(_BTS, integer, (8 - 5)) *cptr(_BTS ptr, @arrayOfInteger(5)) = *cptr(_BTS ptr, @arrayOfInteger(6)) redim preserve arrayOfInteger (7) #undef _BTS Hi, and thank you fxm for your quick help. - Memory allocation is useless. - In your above code, there is memory leak because your memory d...
by Tourist Trap
May 01, 2019 16:49
Forum: General
Topic: Remove items from array without changing the order
Replies: 7
Views: 428

Remove items from array without changing the order

Hello, In general, I would remove items from an array by sending them at the upperbound, and then doing a downsizing (redim preserve in a downsize maneer). But what I'm thinking about, it's well known, sends the items from the upperbound to any places inside the array. This is not very bad, until we...
by Tourist Trap
Apr 30, 2019 19:44
Forum: Game Dev
Topic: Help on an Infinite Tile Engine
Replies: 14
Views: 864

Re: Help on an Infinite Tile Engine

Hi, a real infinite world will be difficult. There is not enough storage space in the universe for that :-) Not sure, it could grow from a procedural seed. I mean like a fractal for example. In any case, once sufficently grown (far before infinity), no player would be able to visit every places wit...
by Tourist Trap
Apr 30, 2019 19:42
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2
Replies: 100
Views: 7161

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2

gothon wrote:In this game I already have a little piece of a compiler and a little piece of an OS. Soon I will have a little piece of an IDE. Eventually I plan to put a big piece of a game engine in it too!

Hi gothon any news?
by Tourist Trap
Apr 30, 2019 19:32
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2
Replies: 100
Views: 7161

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2

You cannot win :-) You can only try to get beat the highest score :-p Ahah, it still challenging enough :) I loved your rotating tetris, you demonstrated monthes ago. I hope you'll publish a well polished game like this one, based on the rotating concept someday. I feel it would be more dynamic and...
by Tourist Trap
Apr 30, 2019 19:13
Forum: Game Dev
Topic: Help on an Infinite Tile Engine
Replies: 14
Views: 864

Re: Help on an Infinite Tile Engine

Any help will be greatly appreciated and I'll post the source for others Hello, I tried this a while ago. Maybe it can help? https://www.freebasic.net/forum/viewtopic.php?f=15&t=24355&p=215514#p215514 Your best luck otherwise would be to search the forum for topics on tiles from BasicCoder2...
by Tourist Trap
Apr 30, 2019 19:08
Forum: Community Discussion
Topic: Please help me translate this Python code fragment to implement Steam Achievements
Replies: 21
Views: 1221

Re: Please help me translate this Python code fragment to implement Steam Achievements

SteamUserStats = steam.SteamUserStats SteamUserStats.restype = ctypes.c_void_p Dylibsymbol won't find "SteamUserStats". How does this work? How to translate this to FreeBASIC? Thanks in advance. Hi Landeel, before some Python afficionado comes to rescue. It seems to me that this is here a...
by Tourist Trap
Apr 30, 2019 19:00
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2
Replies: 100
Views: 7161

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2

badidea wrote:I downloaded your game, but I have to boot Windows for that is seems. I'll try later.

I played yours, it's pretty nice. I still have to figure out how to win. Congratulations!
by Tourist Trap
Apr 29, 2019 20:54
Forum: Beginners
Topic: Best Implementation for Set of Elements that I manually change
Replies: 15
Views: 1194

Re: Best Implementation for Set of Elements that I manually change

First I'll have to play around with these dynamic arrays. Thanks again. As far as I remember from my own tries, it's rediming often the array that is slow (changing the size). Redim Preserve is even worst. But if you don't redim all the time, arrays are not slow. And they are very instinctive to ha...
by Tourist Trap
Apr 29, 2019 20:24
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2
Replies: 100
Views: 7161

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2

I couldn't make it (unexpected happenings). So, best of luck to both. I tried both games and they seem to work fine here (crappy Celeron laptop with Win10 and IntelHD card). I can perfectly understand how difficult it is to make something in time, above all something as refined as what you projecte...
by Tourist Trap
Apr 29, 2019 18:34
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2
Replies: 100
Views: 7161

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2

Same and final version, but with executables (Linux/Windows): freebasic_vs_tetris_2019-04-29.zip (~5 MB) If "00:00, french hour" is the deadline, then I am just in time. I still didn't play your game! Downloaded it but a little busy and tired. I can't wait anyway. Do you know what happene...
by Tourist Trap
Apr 29, 2019 18:31
Forum: Community Discussion
Topic: Are you happy with your office's lightings?
Replies: 20
Views: 1291

Re: Are you happy with your office's lightings?

TT, that is called dynamic lighting. Philips has such a system. Essentially, the lighting system can be programmed to vary the intensity and color temperature of the general lighting in a space during the day. I have not had a project use that system yet; in fact, I am not aware of any systems havi...
by Tourist Trap
Apr 28, 2019 17:10
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2
Replies: 100
Views: 7161

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2

Hi all. I'm on my way. I'm on the last few lines of codes absolutely needed. Then I expect a delivery at my repo before tonight 00:00, french hour. It will be a short game! But it seems to work until now. Even if I can hardly say that this is suitable for all screen sizes. But this is the least amon...
by Tourist Trap
Apr 26, 2019 12:49
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2
Replies: 100
Views: 7161

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2

Hi all,

new WIP, here:
https://github.com/trapmania/Fbgenlab/tree/WIP2604/DIR

And yes, before you ask, we still don't play for the moment.

Added some graphics and sounds (stolen to DJ.Peters fbsounds examples). And a new title!
Image

Go to advanced search