## Search found 124 matches

Sat Aug 09, 2008 2:00 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Scrolling tile RPG
Replies: 45
Views: 23522
The way I learnt to do is it is simple and fast. (I you haven't already, I recommand btw using a assembly key handler, search for multikey if you don't know one) I make a lookuptable for the biggest axe of the map. So if the map is 25x20 and the tiles 64x64, I make 2 lookuptables of the size 64*25 (...
Thu Jul 24, 2008 4:41 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Problem with billinear filtering with fixed point math
Replies: 3
Views: 3943
I think it is due of the inaccuraccy of integer math, because when I changed the scaleing size to a bigger, there were a lot more pixels coloured wrong. still I hate this error, but I'll still put the rotozoomer in a demo because it's kind of impressive.
Tue Jul 22, 2008 4:37 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Problem with billinear filtering with fixed point math
Replies: 3
Views: 3943

### Problem with billinear filtering with fixed point math

I made a rotozoomer that is billinear interpolated and uses fixed point math, but it has a big problem. Everywhere were dark pixels should be, white pop up. It really irritates me because I really spend some time on the program and this is the last bug, if this one's out then I can be extremely prou...
Mon Jun 09, 2008 10:14 am
Forum: QBASIC and QB64 Questions & Answers
Replies: 5
Views: 4951
Mmm. there are some weird things you say there. LINE (0,0) ? (40,40), 3, BF Should make a box. It's filled because of the BF at the end. B will show the edges(B = Box, BF = Box, Filled). No BF or B will show the line. Notice that in some screen modes, (I remember 9 and 13 but I'm not quite sure), sq...
Tue Apr 15, 2008 1:23 pm
Forum: General Discussion
Topic: A 2d light program I want to show you...
Replies: 2
Views: 4010
*By the way, sorry if it is not allowed to post links to non-qbasic sites... if you're a moderator please only remove the link... please? xD
Tue Apr 15, 2008 1:22 pm
Forum: General Discussion
Topic: A 2d light program I want to show you...
Replies: 2
Views: 4010

### A 2d light program I want to show you...

Sorry there are no comments. It computes for every point if there's light at that point. You have to see to understand... Hope you like it, I saw this in a game and tried for some time to code it and I got it working some time ago... I will try multiple lights soon, shouldn't be too hard... The game...
Tue Apr 15, 2008 1:12 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: 3D Rotation Question
Replies: 4
Views: 4400
Usually, you translate, rotate and translate again. You can avoid that first translate if you have a static(not-moving) rotation point. Then you translate everything one time and save the new points. Then you just rotate and translate...
Sun Apr 06, 2008 5:24 am
Forum: News and Announcements
Topic: (TCB) Scrolling plateform game
Replies: 41
Views: 38797
Lachie Dazdarian wrote:Codemss, you need to play more QB games.

But yeah, this looks really cool. Please complete it.

And then port it to FB.
Yeah it is true that I don't play QB games that much. They don't work often. It seems like every game that seems fun doesn't work...
Thu Apr 03, 2008 2:13 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Just a thought...
Replies: 5
Views: 4496
You mean a browser in QB? Or just loading them with some SHELL command? The 1st would be very hard. The second not...

Thu Apr 03, 2008 2:07 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help... screen 13 virtual memory and a few library questions
Replies: 6
Views: 5777
Well. There is, somewhere in memory, a large portion of bytes which holds the screen data. You can manipulate them with POKE and PEEK. If you set DEF SEG = &HA000, and then poke at 320 * y + x, and with the colour as argument, you have a faster alternative for pset. Example: (pset) POKE y * 320 + x,...
Tue Mar 04, 2008 12:59 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Inserting Hexadecimal in a file
Replies: 11
Views: 9776
It might be better if you read some tutorial on this first... BTW, you use GET to get a character from a file, and PUT to put a character at some position. ASCII number go from 0 to 255, and they can represent text or a colour or whatever you want. You get these ASCII characters in a string with len...
Mon Mar 03, 2008 12:33 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Inserting Hexadecimal in a file
Replies: 11
Views: 9776
You want to open a binary file (if that's not the problem, please clarify it a bit, because I don't understand the problem)? That goes like this: OPEN file\$ FOR BINARY AS #1 (Suppose file #1 is free) FOR position = 1 to 10 PUT #1, position, number NEXT position CLOSE #1 There may be some things wron...
Sat Mar 01, 2008 11:57 am
Forum: General Discussion
Topic: Making something: Saving a text file as an .exe?
Replies: 5
Views: 5134
Have you read burger's post: Renaming a file as a .EXE is not right: you need to compile it. Basically you can give any file any extension: it is just to let windows know what program to open it with. A .EXE and a .TXT file can both hold the same data.
Fri Feb 29, 2008 5:32 pm
Topic: A TRILLION PROBLEMS
Replies: 12
Views: 13095
Burger was 100% right. Trillions of bits is a ridicilous idea. There is another way I can think of to still try the things you want, pepsijoe. Say each cell has a lifespan of 100. Then you can make an array of 100 long integers wich hold how many cells have that lifespan. Then you put them in a loop...
Sun Feb 17, 2008 4:26 pm
Forum: News and Announcements
Topic: (TCB) Scrolling plateform game
Replies: 41
Views: 38797
It looks really great, no reason to be shy for this :D. I advice you to spend some time to make controls work really well(if there aren't already), because that is the only thing I can think off that can make a game that looks like that bad. I think it looks really proffessional, and better then alm...
Thu Feb 14, 2008 9:52 am
Forum: Pete's QB Site News
Topic: QB Express #26
Replies: 12
Views: 28556
Here's an example program, if you want to run in interpreter, make offset, p and mul320() long integers!

EDIT: There's a very weird error in the forum, I can't post the code here correctly. I uploaded it to here: http://members.lycos.nl/rubynl/scroll.bas.
Wed Feb 13, 2008 12:06 pm
Forum: Pete's QB Site News
Topic: QB Express #26
Replies: 12
Views: 28556
The bit stuff was needed to store a large map in an array of 32000 integers. It is a map that uses only one bit instead of eight(so you need to convert them). Like that you're able to expand the limit of the map by 8 times. Then you apply a texture on that. I'm still finding a good manner to draw th...
Sun Feb 10, 2008 4:07 pm
Forum: Pete's QB Site News
Topic: QB Express #26
Replies: 12
Views: 28556
I especcially like the tutorial on springs and I look forward to the next part. My tutorial about Worms-style stuff was better in my memories :P. But it actually kinda sucks now. (Not that I had another version or something, I just expected that it was better). Maybe I will make a tutorial part 2, ...
Sun Feb 10, 2008 6:53 am
Forum: Pete's QB Site News
Topic: QB Express #26
Replies: 12
Views: 28556
I especcially like the tutorial on springs and I look forward to the next part. My tutorial about Worms-style stuff was better in my memories :P. But it actually kinda sucks now. (Not that I had another version or something, I just expected that it was better). Maybe I will make a tutorial part 2, w...
Wed Feb 06, 2008 4:28 am