Results 1 to 24 of 24

Thread: Nocturne2D

  1. #1

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Thumbs up Nocturne2D

    Here we go, this is the current engine. Feel free to download, but if you use any part in your project please put me in the credits

    Btw: I'd be thankfull if anyone gave me some graphics/sounds! I need a player animation set (attack/walk/fight animations) and tiles as you can see in the current engine...

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    what about the tileset they offered at vbexplorer.com? since you are just using it for demonstration that should work...
    (talking about the tiles not the character set)
    I'll send it to you if you don't have it/know it..
    also this was posted a few days ago in some other thread
    http://www.vbforums.com/attachment.php?s=&postid=981539
    it's mady by progeix
    you might wanna ask him...
    Sanity is a full time job

    Puh das war harter Stoff!

  3. #3
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    the DDraw mode runs incredibly slow on my machine!
    I changed the blitting to asynchron blit and it still was really slow!
    I think something's wrong since my machine is moderatly fast.
    Sanity is a full time job

    Puh das war harter Stoff!

  4. #4

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Nope. Try increasing the tile size, this is the major problem when using DDraw (and why I prefer BitBlt for such small games)

    Try increasing the tile size; will give you much performance. Or switch to Fullscreen and use much bigger tiles will help, too.

  5. #5
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    hm well I do not want to use a predone engine anyways I was just ran your sample. So what's the problem with DD in windowed mode?? Is there any reason to use it when using windowed mode?
    Sanity is a full time job

    Puh das war harter Stoff!

  6. #6

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Well I could switch to fullscreen but I prefer this pocket engine in a window. Like GameBoy you know ^^" Of course it's just my personal love to these pocket games... And as you said It's still just an example but I'm sure people can learn from it better when it's not just fullscreen (and it's easier to debug )

  7. #7
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    you are right
    the only thing I keep on wondering about is why DD is slower than bitblt...
    Sanity is a full time job

    Puh das war harter Stoff!

  8. #8

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Well 2 things: The project isn't originally made for DDraw so there's a lack of performance because I just converted it from BitBlt to DDraw (eg. the rects that are created in each frame for each tile). Second is (what I suppose) that DDraw just isn't made to draw this kind of graphics (small but many) ... don't know for sure though..

  9. #9
    Member nXt's Avatar
    Join Date
    May 2001
    Location
    UK
    Posts
    37
    hey fox this is looking great!

    i have to say that on my pc, the game runs a tad slow. I got a high end pc and all, its just it starts up slow and theres a lag between my first movement and stuff. Is this just my machine ?

  10. #10
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    try the bitblt one it runs flawless on my machine... I had the same trouble with the Dx one.
    Sanity is a full time job

    Puh das war harter Stoff!

  11. #11
    Member nXt's Avatar
    Join Date
    May 2001
    Location
    UK
    Posts
    37
    the Dx engine runs fine, but the character moves really slow!

    also i get a small black area around the bottom and too the right, where the tiles blur (im not sure what the technical term is for when it does that)

    the dx one appears to run a bit better, however

  12. #12
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    Hello Fox,

    I downloaded your little engine. It runs fine on my computer. Everything ran fine and nice and smooth. I noticed your little demo similar to this you did ages ago with bit blt. That was pretty cool and so is this.

    Nice Code, Good Work, Good Job !

    P.s - The sound is a bit odd, i wasnt sure if it was when your walking or when something hits something so iremoved the enemies and found it does it when you move, tho it was outta sync a bit.

    Still Kewl Tho !
    Last edited by PsyVision; May 16th, 2002 at 04:05 PM.

  13. #13

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Yes I didn't take the time to do the clipping in DDraw .. won't continue on this one though.

    Well about the sound (and graphics): I'm a programmier, not a designer Jim!

  14. #14
    Lively Member FireSlash518's Avatar
    Join Date
    Nov 2001
    Posts
    67
    i might help a little. im doing a 2D platform shooter engine actually...

    if you need help with direct sound, external form creation from text files, reading ini files, or particle systems... (still working on the particles, keep having to start over because of poorly written slop of code )

    and i still need to find a stable way of limiting the FPS, as 250+ fps is a bit excessive. windows timers are clunky...

    Leader of the Maxoverkill Mods
    -Fire§lash

  15. #15
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    FireSlash use gettickcout to limit your FPS, but don't you think opening a new thread would be better for own questions...?
    Sanity is a full time job

    Puh das war harter Stoff!

  16. #16
    Addicted Member Janus's Avatar
    Join Date
    Aug 2001
    Location
    California
    Posts
    221
    Fox: Don't use Video memory for your backbuffer, unless you use video memory for your tilesets too. Copying from video memory to system memory, and vice versa, is VERY slow. Mixing and matching doesn't work well at all.

    Try changing all your surfaces to video ram, and your engine will scream. (I'll download it and try it. )

    Edit: I altered all your surface creation routines to use this flag:
    VB Code:
    1. Or DDSCAPS_VIDEOMEMORY
    It ran very, very fast afterward. Oh, one tip - never, ever, EVER create a DDSCAPS_PRIMARYSURFACE surface without specifying DDSCAPS_VIDEOMEMORY - it creates it in software mode, which makes it much, much, much slower. Only create the primary surface in software mode if creating it in hardware mode fails.

    Looking good though, keep up the great work!

    Edit #2: Oh, Misanthrop - the tileset and sprites they offered on vbexplorer.com are horrible. The grid is misaligned, the mask color is almost completely random, and some of the tiles are the wrong size. It's a pain in the ass to use that tileset.

    Edit #3: Hehe, I need to think longer before posting. Fox, you really should use GPL or LGPL or something on your code, so that you'll at least get credit for your work.
    Last edited by Janus; May 31st, 2002 at 12:52 AM.
    "1 4m 4 1337 #4xz0r!'
    Janus

  17. #17
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Did someone say particle systems?

    Heh... missed me?
    Sorry for being away for so long. I huh hmm well basically I started doing other stuff when I was on the net (mIRC and e-mails mainly ) and completely forgot about the forums. Of course I didn't stop programming, but I had a lot more to think about so all I did was advance a bit on my game, create some other minor programs and demos (unreleased ) and learn C++, a bit of ASM, hmm... I also made a small mIRC script (sorry I just had to try it ). Anyway. I'll get back at the G&G programming forum as soon as I can. I still have some exams left though. I'll see if I can come back later today and after that I think I'll have some time until the hardest exams, that should be in a week or so. Then I'll have the whole vacations to come here hehe
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  18. #18
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    You never miss your monthly brag do you Jotaf

    Nice to have you back!
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  19. #19
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Heh thanks
    Well hmm I had a look at the G&G forum and there doesn't seem to be any really cool thread like we usually had. Oh well... back to answering questions
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  20. #20
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Yeah, its kinda boring.

    OK Fox, we'll stop vandalising your thread
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  21. #21
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Yeah. Sure dude. We're really really sorry. We'll stop vandalizing your thread don't worry.
    Attached Images Attached Images  
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  22. #22

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    My poor thread *cries*

    Janus: Thanks, hard to judge if a program runs slow if it just flows here -.-" And btw: Since we're using DX8, didn't you mean the D3DPOOL_MANAGED flag?
    Last edited by Fox; Jun 7th, 2002 at 08:56 AM.

  23. #23
    Addicted Member Janus's Avatar
    Join Date
    Aug 2001
    Location
    California
    Posts
    221
    Uh, the Nocturne2D I downloaded was DirectDraw. :P
    "1 4m 4 1337 #4xz0r!'
    Janus

  24. #24
    Zaei
    Guest
    If its DX8, use D3DPOOL_DEFAULT.

    Z.

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