Results for "Author: joshd"
This tutorial is intended as a guide for people new to Visual Basic. It shows common coding conventions and basic use of VB. ============================================== 1. Option Explicit 2. Code Formatting 3. Commenting 4. Variable Types 5. Static Variables 6. Global/Local Variables 7. Public/Private Functions 8. Arrays 9. Constants 10. Control Names 11. Variable/Constant/Procedure Names ================================== NB: The zip file has the HTML file of the tutorial.
If you ever wanted to have a string with quotes inside this is a handy tip.
For those who don't know what this does just d'load it and take a look. The premise is that you can draw pictures and they appear to "move" at the colours cycle. An update to the code I submitted last night. This version has: drawing with both squares and circles, as well as delete. It also allows you to change the colour scheme to get different effects.
An almost-complete screen saver that fills your screen with (transperent) water and lets fish swim around. Uses bitblt and is fairly fast. Not customizable (yet) and designed for 800x600 res. Take a look. (I left out a module last submit)
A REALLY simple way to do AI chatting. Uses the instr function to see if a word exists in a question. Show how to use instr, arrays, sesquentenial file reading/writing. I haven't programmed in much question's (open chat.dat in notepad) follows structue keyword1,keyword2,keyword3,answer (comma seperates, must do comma even if you use only 1 or 2 keywords)
Envision 2d Engine BETA 2: Heaps of easy to use graphics functions -Animation in one line. -Easy sprite in one line. -Screenshots: Incremental file names. -ZOrder: Drawing objects in order. -Tiling: Some function incomplete Existing Functions: blending (by percentage), rotating, copying using a colourkey, creating masks, printing text with border/bg, and printing a custom bitmapped font. It also includes the "Envision" engine which has a few functions: validating paths, easy FPS counter, nice "stopwatch" style timer. To it use simply compile to a DLL and add a reference to it in your app. This app is a prelude to a pure VB 3D engine I am planning on. The engine will be based on the code I've already posted here - so have a look at my previous submissions I've spent a while on this so any feedback positive or negative (preferably positive) would be appretiated. PLEASE PLEASE vote!
ANOTHER starfield (like there is not enough already) this is faily basic code using X,Y,Z distances, VERY simple 3D.
Merry Xmas - a little app that snows... the snow will roll down the trees and house. I'll prolly make this into a screensaver when I have the time.
If you ever wanted to have a string with quotes inside this is a handy tip.
This is a basic game - engine, very simple, intended as an idea. It refers to a mask to see where you can move. Can move left, right, jump(even while in mid air :) and shoot little red squares. Good for beginners. No tileing (yet).
An update on my plain old starfield. This consists or a couple of hundred randomly placed stars that you can fly through. You can move forward using the "w" and "s" keys. You can rotate using the arrow keys. The rotating code is thanks to a tutorial at http://www.geocities.com/SiliconValley/Horizon/6933/3d.html. Please VOTE 'cause no one ever does.
A demo of an incomplete 3d engine for a strategy (space) game. It features a "sky box"(cylinder of stars) and the ability to load different models (with points, lines, faces and 2d sprites[eg. for planets]). Yet to implement filled faces and click detection. Can someone help me with this. When the user clicks on the screen I want to detect where it is in 3d space (it always be on the same plane as the planets [horizontal plane 15 below 0]). Tell me how it runs on your computer. I get about 20 on my 1Ghz (uncompiled). Leave a comment/suggestion and PLEASE vote if you like it. Controls are now: Left, right, up and down: strafe around y plane. w,s: move up and down. a,d: spin. r,f: look, up/down. I've done this kind of control because of the intended genre (obviously it won't br keyboard operated. Now backface removal is implemented, i might try to make this more efficient though. Next up I will add filled faces, shading(ie angle of face determines face colour), and implement painters algorithm. This simply determins which face is fartest away and draws it first etc.
A REALLY simple way to do AI chatting. Uses the instr function to see if a word exists in a question. Show how to use instr, arrays, sesquentenial file reading/writing. I haven't programmed in much question's (open chat.dat in notepad) follows structue keyword1,keyword2,keyword3,answer (comma seperates, must do comma even if you use only 1 or 2 keywords)
An almost-complete screen saver that fills your screen with (transperent) water and lets fish swim around. Uses bitblt and is fairly fast. Not customizable (yet) and designed for 800x600 res. Take a look. (I left out a module last submit)
For those who don't know what this does just d'load it and take a look. The premise is that you can draw pictures and they appear to "move" at the colours cycle. An update to the code I submitted last night. This version has: drawing with both squares and circles, as well as delete. It also allows you to change the colour scheme to get different effects.
Merry Xmas - a little app that snows... the snow will roll down the trees and house. I'll prolly make this into a screensaver when I have the time.
Envision 2d Engine BETA 2: Heaps of easy to use graphics functions -Animation in one line. -Easy sprite in one line. -Screenshots: Incremental file names. -ZOrder: Drawing objects in order. -Tiling: Some function incomplete Existing Functions: blending (by percentage), rotating, copying using a colourkey, creating masks, printing text with border/bg, and printing a custom bitmapped font. It also includes the "Envision" engine which has a few functions: validating paths, easy FPS counter, nice "stopwatch" style timer. To it use simply compile to a DLL and add a reference to it in your app. This app is a prelude to a pure VB 3D engine I am planning on. The engine will be based on the code I've already posted here - so have a look at my previous submissions I've spent a while on this so any feedback positive or negative (preferably positive) would be appretiated. PLEASE PLEASE vote!
This tutorial is intended as a guide for people new to Visual Basic. It shows common coding conventions and basic use of VB. ============================================== 1. Option Explicit 2. Code Formatting 3. Commenting 4. Variable Types 5. Static Variables 6. Global/Local Variables 7. Public/Private Functions 8. Arrays 9. Constants 10. Control Names 11. Variable/Constant/Procedure Names ================================== NB: The zip file has the HTML file of the tutorial.
This program will let you create your own window's and objects without using controls. Primarily for those creating games in DX etc. Currently supports minimizing (Mac style), resizing, draging, buttons and labels (both with click events).
ANOTHER starfield (like there is not enough already) this is faily basic code using X,Y,Z distances, VERY simple 3D.