Thank you Mr Swiss.
I did not realize that Line Input could get its end of line from the line feed character only.
Search found 541 matches
- May 20, 2017 1:51
- Forum: Game Dev
- Topic: Bliss - Stunts Track Editor
- Replies: 10
- Views: 3043
- May 19, 2017 5:16
- Forum: Game Dev
- Topic: Bliss - Stunts Track Editor
- Replies: 10
- Views: 3043
Re: Bliss - Stunts Track Editor
Looks interesting. The source code editor you used places the LF and the end of a line but not the CR, so FBEdit puts everything on one line. I am sure there are many cures for this but here is one (obviously, replace the filename paths as necessary): Const As String INFILE = "C:\Freebasic Stuf...
- May 18, 2017 5:27
- Forum: Community Discussion
- Topic: Latest ransomware attacks
- Replies: 5
- Views: 1616
Re: Latest ransomware attacks
Thanks, I downloaded the fix for XP from MS.St_W wrote:See https://technet.microsoft.com/library/security/ms17-010 for some more details about the problem and the fix.
- May 16, 2017 3:20
- Forum: Community Discussion
- Topic: Latest ransomware attacks
- Replies: 5
- Views: 1616
Latest ransomware attacks
I have been having a hard time finding any practical info regarding the growing concern of this most recent large scale ransomware attack. I am talking about the one that took down the UK hospitals systems. From what I have read this is a worm and there will be a newer stronger version released soon...
- May 12, 2017 20:21
- Forum: Sources, Examples, Tips and Tricks
- Topic: BREAKOUT
- Replies: 20
- Views: 3994
Re: BREAKOUT
@BasicCoder: There seems to be errors in mmsystem.bi. (ex DWORD undefined). Without any investigation, I suspect it needs windows.bi loaded first. @thesanman: There is no need to draw to the screen and use get to build the image. You can draw directly to the image. I don't know if it makes much diff...
- May 12, 2017 5:33
- Forum: Sources, Examples, Tips and Tricks
- Topic: BREAKOUT
- Replies: 20
- Views: 3994
Re: BREAKOUT
I noticed that you can sort of grab the ball if you move the paddle at the right time. You say this is demo code, are you interested in some of code corrections? I'll post a few that I've found in case anyone else is reading the code. Some of these look like they are part of a more expanded version ...
- May 12, 2017 3:44
- Forum: Sources, Examples, Tips and Tricks
- Topic: BREAKOUT
- Replies: 20
- Views: 3994
Re: BREAKOUT
100 lines only because statements are combined. You could place it all on a single line and claim its only 1 line. I played this game and like some others it was super fast on my computer. I changed the sleep 1 to sleep 20 (on line 98) and it worked. The game plays quite well. I got to level 1.9 whe...
- May 09, 2017 4:50
- Forum: General
- Topic: try at directx 9 3d
- Replies: 10
- Views: 3185
Re: try at directx 9 3d
I tried the code and I got about ten lines of errors, all the D3D constants and what not, and first error was something about -lang.... The errors are coming from a difference in the number of arguments in the translated header functions such as createdevice. The FB functions require the pointer va...
- May 09, 2017 1:06
- Forum: Sources, Examples, Tips and Tricks
- Topic: Simple Accountmanager
- Replies: 1
- Views: 940
Re: Simple Accountmanager
Looks good.
The sub parsewords is not used.
The sub parsewords is not used.
- May 06, 2017 2:15
- Forum: Beginners
- Topic: Can functions return arrays?
- Replies: 40
- Views: 5618
Re: Can functions return arrays?
There is also the option of wrapping the array in a type and returning that: Type MyArray As Integer n(1 To 10) End Type Function test() As MyArray Dim As MyArray t For x As Integer = 1 To 10 t.n(x) = x Next Return t End Function Dim p As MyArray p = test() For x As Integer = 1 To 10 Print p.n(x) Ne...
- May 01, 2017 0:26
- Forum: Beginners
- Topic: Compile Error driving me nuts
- Replies: 3
- Views: 894
Re: Compile Error driving me nuts
The static sub is not given an instance of the class, unlike a non-static sub. So there is no 'this'. You pust pass the static sub an instance. Declaration changed: Declare Static Sub LogCallBack(ByVal myInstance As cCTSQLite, ByVal pAny as Any Ptr, _ ByVal iError as Long, _ ByVal pMessage as ZStrin...
- May 01, 2017 0:12
- Forum: Projects
- Topic: Eric: The Mysterious Stranger - RTS game(WIP)
- Replies: 337
- Views: 38784
Re: Eric: The Mysterious Stranger - RTS game(WIP)
In a two or more player strategy game you take turns in making a move Except that the RT in RTS stands for Real Time. In Command and Conquer: Red Alert the agents carried on their affairs and you as the player would use the mouse to select groups or individual agents and modify their behavior. I on...
- Apr 29, 2017 3:39
- Forum: Community Discussion
- Topic: New FreeBASIC beginners website
- Replies: 61
- Views: 14429
Re: New FreeBASIC beginners website
Same here Sarg. No problems. Both the .6.8 and the .7 versions run on win10.
- Apr 26, 2017 4:30
- Forum: Game Dev
- Topic: Action animations and agent states
- Replies: 18
- Views: 5716
Re: Action animations and agent states
Have never zipped anything up before and have no where to put anything apart from this forum for access anyway. Zipping is a piece of cake. You simply select the files you want to add to the zip file and give it a file name. As for storing the file; GIT is my suggestion. Reading through this thread...
Re: Grid??
Maybe there is more to this but all graphics screens (the ones that work with pset) use the same formula. The top left is (0,0) and they increase horizontally 1 pixel until you get to screen width - 1, and vertically 1 pixel until you get to screen height - 1. So an 800 x 600 screen top left (0,0) a...