Search found 124 matches

by Codemss
Fri Dec 21, 2007 10:22 am
Forum: General Discussion
Topic: What programming languages have a bit as variable type?
Replies: 9
Views: 12288

What programming languages have a bit as variable type?

What programming languages have a "bit" as variable type? I saw QB64 has. This is very useful. In a engine wher eI scroll an large monochrome map. For this, I have to make an array of integers, load them with PEEK and POKE(because they use bytes) and then use a byte-to-bit LUT, and again a 8-bits-to...
by Codemss
Fri Dec 21, 2007 9:33 am
Forum: General Discussion
Topic: 64 bit QBASIC
Replies: 32
Views: 49862

I have to say that I really, really like it. It is easy to use and seems to cover a lot of qb syntax already. The compiled exe is fast. Give it like about a year, and it will be really cool, I think. Maybe it would be better for Galleon's reputation if he released a demo when the project was in a fu...
by Codemss
Thu Dec 20, 2007 10:10 am
Forum: News and Announcements
Topic: Announcing Gflux
Replies: 15
Views: 23052

SETMOUSE , ,0 to hide the mouse. The big black box? The background? line(0,0)-(320,200),4,bf I guess that does what you want or just PAINT (0, 0), 1, 15 ?. Thanks. I meant the console though (didn't know that they called it so). I found out that you can hide it with adding -s gui in the command lin...
by Codemss
Thu Dec 20, 2007 10:07 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Compiler problem with QuickBasic 7.10
Replies: 5
Views: 6051

Use qb 4.5 when you can. It is faster and, like Nodtveidt said, it produces smaller .exe's (I didn't know this though :P). But, qb 7.1 has a few more options. I needed it once because it has a command to show you all files in a map or something like that. If you have to use qb 7.1, you can download ...
by Codemss
Wed Dec 19, 2007 5:05 pm
Forum: News and Announcements
Topic: Scrolling engine
Replies: 20
Views: 33966

Thanks. BTW I already know that Freebasic is the future, QB is the past.

I had some problems with compiling, but I am gonna move on to FB soon, I think. Maybe I will release a Qbasic demo soon(with Optimus). After that I'm definately done with QB.
by Codemss
Wed Dec 19, 2007 3:53 pm
Forum: News and Announcements
Topic: Announcing Gflux
Replies: 15
Views: 23052

You are making that 256 bit color depth in screen res command :shock: screenres width,height,[depth],[num_pages],[flag],[refresh_rate] try giving 60 hz as refresh rate? Haha, 256 colours I thought :P. Well it works with: SCREENRES 320, 200, 8, 1, 1, 60 Nice! Now is there a way to hide that ugly emp...
by Codemss
Wed Dec 19, 2007 3:23 pm
Forum: News and Announcements
Topic: Scrolling engine
Replies: 20
Views: 33966

Damn. Please, be reasonable. I already said sorry for forgetting. Too much weed probably. Anyway, try to tell why you lose your mind before you lose your mind. What code you mean? I never credit someone's other code, so if it happens, it's accidentally. But please, tell me about it. I don't play a g...
by Codemss
Sun Dec 16, 2007 7:14 am
Forum: QBASIC and QB64 Questions & Answers
Topic: "Expression too complex" error when compiling
Replies: 3
Views: 4443

Use block IFs instead of trying to cram it all onto one line. You might also want to come up with a more intuitive method of representing your code too, as that looks rather inefficient. Decimal-to-binary converter, eh? :) Yes :). I've found that the problem is the binary-to-number converter, becau...
by Codemss
Sat Dec 15, 2007 4:55 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: "Expression too complex" error when compiling
Replies: 3
Views: 4443

"Expression too complex" error when compiling

I want to compile a program that consists this piece of code: CLS DEFINT A-Z DIM SHARED btn(1, 1, 1, 1, 1, 1, 1, 1) DIM SHARED ntb(255, 7) FOR n = 0 TO 255 IF (n AND 1) THEN ntb(n, 0) = 1: b0 = 1 ELSE b0 = 0 IF (n AND 2) THEN ntb(n, 1) = 1: b1 = 1 ELSE b1 = 0 IF (n AND 4) THEN ntb(n, 2) = 1: b2 = 1 ...
by Codemss
Fri Dec 14, 2007 5:29 pm
Forum: News and Announcements
Topic: Scrolling engine
Replies: 20
Views: 33966

Re: CREDIT?

burger2227 wrote:What ever happened to the graphics text stuff Ildurest and I showed you?
What graphics text stuff. Sorry but I really don't know where you are talking about. Can you tell me or send me a link to that?
by Codemss
Wed Dec 12, 2007 4:36 pm
Forum: General Discussion
Topic: Pete, are you going to release a new coding competition?
Replies: 20
Views: 25217

The competition could either be about coding something specific the shortest way, or it could be about the "best" program. In that case, a poll or something should be in the QBE. I would like to organize the competition, but I don't know how to make a poll in QBE. It would be great if someone could ...
by Codemss
Sun Dec 09, 2007 4:49 pm
Forum: General Discussion
Topic: I need a tileset to test my platform engine
Replies: 8
Views: 10515

nice (like your programs use to be)!
by Codemss
Sun Dec 09, 2007 1:55 pm
Forum: General Discussion
Topic: Pete, are you going to release a new coding competition?
Replies: 20
Views: 25217

Well I only know about the contest to code a game in 4 lines, but I have seen no contests in the last QBE. But it soundslike fun indeed. I really hope on a new contest.
by Codemss
Sat Dec 08, 2007 5:22 pm
Forum: General Discussion
Topic: Pete, are you going to release a new coding competition?
Replies: 20
Views: 25217

Pete, are you going to release a new coding competition?

Please? Serious, I would like a new coding competition. It would be really nice. I am very interested in it. I searched and acidentally came across one in 2004 or something to code a game in four lines. That kind of stuff is really nice, and it could help to fill some space in QBE, for if you have l...
by Codemss
Sat Dec 08, 2007 4:21 pm
Forum: News and Announcements
Topic: Scrolling engine
Replies: 20
Views: 33966

Scrolling engine

This is about a map scrolling engine that I've thought of while writing an article for QBE. I first doubted if it was fast enough, but I'm very enthousast now, because it runs at 100 fps(compiled of course) on a good computer. The engine doen't look good, but look beneath that and look at the possib...
by Codemss
Fri Dec 07, 2007 7:06 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Serial Port Input
Replies: 3
Views: 6553

The NR variable will never reach more then two becuase this line: IF IN1 = 1 THEN NR = 1 ELSE NR = 0 Sets NR to 0 or 1. So the maximal value of NR at the end of the loop is two (1 from the IF statement and one because you added one after that with NR = NR + 1) What always helps is looking at your pr...
by Codemss
Wed Dec 05, 2007 8:11 am
Forum: General Discussion
Topic: small window/picklist routines?
Replies: 2
Views: 5009

Here is some code. Try to understand it. I tried to give the variables self-explaining names. I can add some comments if you want. BTW, you can change the variables, but the program will get an error if you make the values too large or small (for example if you tweak the list so that it becomes bigg...
by Codemss
Tue Dec 04, 2007 3:18 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Cut binary file
Replies: 5
Views: 8100

You mean you want to compress the file? :S BTW, all the files can be opened with OPEN file$ FOR BINARY AS #1, it's actually not that they "are" binary files. They are just changed the binary way. I don't know about LOF(X) but I think it just returns the amount of bytes that that file uses. Ow, wait....
by Codemss
Tue Dec 04, 2007 3:12 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: View a vehicle track on a ground grid
Replies: 4
Views: 5612

Ow sorry. I thought you meant to built that code out to an engine or something. Thought you was a noob haha. I think you can just take a polyfiller from somewhere (or make your own if you can, else you can try to learn it, I believe it ain't that hard). Then you have to sort the polygons on z-center...
by Codemss
Tue Dec 04, 2007 2:36 pm
Forum: News and Announcements
Topic: Announcing Gflux
Replies: 15
Views: 23052

You can also just use a screen buffer in screen 13. This would be easier then using a library in my opinion. If you're familiar with PUT, it's fairly easy. But, with a library it probably faster and you probably will have to code less, but you won't learn much from it.