|
-
Nov 6th, 2005, 11:38 AM
#1
Thread Starter
Junior Member
Using graphics
What is the best way to use graphics for a game? I was thinking about making a Zelda-style game. Is there a better way than the .move method?
-
Nov 6th, 2005, 11:53 PM
#2
Re: Using graphics
Zelda is 2D correct? You're obviously using a PictureBox or ImageBox ? If so, those are evil when it comes to game programming. Research the BitBlt API Function.
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Nov 7th, 2005, 02:02 AM
#3
PowerPoster
Re: Using graphics
Using the .move method states you as a total beginner 
BitBlt is a goot start then.. next thing to know is that Zelda uses a tile-based 2D engine. Read everything about tile engines on my website http://fox.yhoko.com (see tile-engine tutorial). You can also find BitBlt and other tutorials there..
However, be forewarned - this is more or less hard stuff, especially when it comes to the real game. Just drawing a map and moving a player is one thing - changing the map, managing enemies, animating objects and game events can kill any beginner.
Last edited by Fox; Nov 7th, 2005 at 02:06 AM.
-
Nov 7th, 2005, 09:01 AM
#4
Thread Starter
Junior Member
Re: Using graphics
I admit, yes, I am pretty new to VB. However, I don't plan to begin this project immediately. I want to have it finished by the end of this school year (Mayish). I do not actually expect to have a full 8 dungeons or anything, just the basic principles and maybe 2 or 3 dungeons. Thank you for your help however.
-
Nov 7th, 2005, 09:38 AM
#5
-
Nov 7th, 2005, 01:18 PM
#6
Thread Starter
Junior Member
Re: Using graphics
Oh, its VB 6. Sorry I forgot to mention that.
-
Nov 8th, 2005, 12:41 AM
#7
-
Nov 8th, 2005, 04:35 AM
#8
Re: Using graphics
Fox: I might actually dive into that and write up an engine for people wanting to do this. I admit, I haven't tried doing something like that in a while, but I'll give it a shot.
Map Editor
Game Engine.
-- Possibly a sample game.
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Nov 8th, 2005, 04:43 AM
#9
Re: Using graphics
BitBlt is great for small 2d games and actually great for any application using simple graphics, its a nice introduction into api as well. It helped m e make the transition to DX. I've never properly looked at fox's guide (altho it looks very good) but if your after another one theres a very very basic one in my sig, aimed at total begginers (I wrote it years back so not up to my satndards now )
-
Nov 8th, 2005, 04:48 AM
#10
Re: Using graphics
As API calls go its probably the most horrifically complicated to set up and use for a beginner 
I'm thinking about writing a replacement for bitblt in assembly language (in a few months when I've advanced in the craft). One better suited to game graphics. Probably compile it into a DLL for use in any language.
I don't live here any more.
-
Nov 8th, 2005, 04:53 AM
#11
Re: Using graphics
 Originally Posted by wossname
As API calls go its probably the most horrifically complicated to set up and use for a beginner
I'm thinking about writing a replacement for bitblt in assembly language (in a few months when I've advanced in the craft). One better suited to game graphics. Probably compile it into a DLL for use in any language.
That would definately be worth the download.
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Nov 8th, 2005, 04:58 AM
#12
Re: Using graphics
It'd be a good challenge actually, plus brightness selection could be added with hardly any performance loss (judging by D#'s blitter experiment). I'll have to make some notes.
I threw together a very basic image drawing routine in ASM last night, it draws thousands of smiley's all over the screen I love mode 13h graphics
I don't live here any more.
-
Nov 8th, 2005, 05:11 AM
#13
Re: Using graphics
I learnt api through bitblt, maybe I made it hard for myself lol :-/
-
Nov 8th, 2005, 05:15 AM
#14
Re: Using graphics
Yeah most people learn bitblt first, just a bit ironic that its probably one of the hardest to fathom out 
Coupled with the fact that it has a fleet of other API's required to support it, GetDC, CreateCompatibleBitmap and so on...
I don't live here any more.
-
Nov 8th, 2005, 05:16 AM
#15
Re: Using graphics
 Originally Posted by wossname
It'd be a good challenge actually, plus brightness selection could be added with hardly any performance loss (judging by D#'s blitter experiment). I'll have to make some notes.
I threw together a very basic image drawing routine in ASM last night, it draws thousands of smiley's all over the screen  I love mode 13h graphics 
God I hate it 
 Originally Posted by Pino
I learnt api through bitblt, maybe I made it hard for myself lol :-/
Join the club 
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Nov 9th, 2005, 12:36 PM
#16
Re: Using graphics
The BitBlt API is difficult to work with, especially for beginners. And although it is faster and better than pure VB's graphical functions, it's still too slow and limited. The best place any beginner interested in game/graphics programming is DirectX. Now it may look hard at first (like it did for me), but as you start working with it, it all begins to make sense. It is super fast, allows 2D and 3D, works with your hardware, such as input devices, sound card, graphics card, etc., and will make your games look and feel good.
-
Nov 9th, 2005, 12:40 PM
#17
Hyperactive Member
Re: Using graphics
Ditch bitblt, use DirectX 
And download Visual Basic Express 2005. It's free and much better than VB 6.
<deis> I turn on god mode when I program
<deis> I just call it .NET
If my post was helpful, please Rate it
-
Nov 9th, 2005, 12:44 PM
#18
Re: Using graphics
That's what I just said
-
Nov 9th, 2005, 01:35 PM
#19
Re: Using graphics
but imo dx is much much harder to get to grips with its a lot more involved sooo
Standard vb then bitblt then dx its the bets way
-
Nov 9th, 2005, 03:05 PM
#20
Re: Using graphics
Mode 13h 
ASM pwnz j0000!
-
Nov 9th, 2005, 03:18 PM
#21
Re: Using graphics
 Originally Posted by Pino
but imo dx is much much harder to get to grips with its a lot more involved sooo
Standard vb then bitblt then dx its the bets way 
Much harder to get in grips with? Not exactly, at least with me it wasn't.
-
Nov 10th, 2005, 05:56 AM
#22
Re: Using graphics
You have to slave away for hours in order to plot a triangle in DX but once you've got things working its only a little bit more work to add things to the program.
I don't live here any more.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|