Results 1 to 22 of 22

Thread: Using graphics

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2005
    Posts
    24

    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?

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    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

  3. #3
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    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.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Oct 2005
    Posts
    24

    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.

  5. #5
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Using graphics

    Is this Vb 6 or .Net?

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Oct 2005
    Posts
    24

    Re: Using graphics

    Oh, its VB 6. Sorry I forgot to mention that.

  7. #7
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Re: Using graphics

    Then check out my tile tutorial, read it carefully and when done read the extensions (eg. units and pathfinding) and present the game here when everything is finished

    (And just to make you eager: Here's a screenshot from someone that read my tutorials )

  8. #8
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    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

  9. #9
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    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 )

  10. #10
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    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.

  11. #11
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Using graphics

    Quote 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

  12. #12
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    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.

  13. #13
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Using graphics

    I learnt api through bitblt, maybe I made it hard for myself lol :-/

  14. #14
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    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.

  15. #15
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Using graphics

    Quote 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

    Quote 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

  16. #16
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    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.

  17. #17
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Maine, USA
    Posts
    277

    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

  18. #18
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Using graphics

    That's what I just said

  19. #19
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    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

  20. #20
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Using graphics

    Mode 13h

    ASM pwnz j0000!

  21. #21
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Using graphics

    Quote 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.

  22. #22
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    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
  •  



Click Here to Expand Forum to Full Width