PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

My first and my last EVB Game

SmokingFish · 04 Jun 2002, 21:24 UTC
moin
i tried making a small snake game in evb.
i use vb for my windows games/apps too and i think its fast enough for the most things...but evb is slow! very slow! but look youself. (there are some effects i wanted to use in the game on the menuform(waves if you move mouse..)..but evb is too slow to run the effects and the game )
here:

http://smokingfish.virtualave.net/Snake.zip

tell me what you think..it was my first and my last try to make a game in evb
I'm making a wack a rat type game in eVB right now. I noticed that eVB was really slow too, but I found a work a round. Use the WinCE API! You can use functions of the GDI like BitBlt, that really speed up graphics. I say as much as 10 times faster. :)
SmokingFish · 05 Jun 2002, 06:41 UTC
ha..i know that i can use api..i wanted to use gapi too (i use dx in winows too) but dont know how... i cant use bitblt api because it dont work with pic boxes and cant use gapi because i cant find some good infos for it
Hey SmokingFish, how did you animate your snake? I read that the API BitBlt thingy would work, but I have found virtually no documentation for incorporating it in eVB. I could use ASpriteCE from http://www.spritehand.com to do it, but I don't have any money to buy it. The BitBlt function supposedly is very fast, like I said before, but I can't get it to work. If like you say is true, and it doesn't work with PictureBoxes then thats my problem. If you could provide some code for animating sprites in eVB, I would be extremely greatfull. :)
SmokingFish · 05 Jun 2002, 13:27 UTC
TechMage wrote:
how did you animate your snake?

what do you mean? its not animated...
if you want i can send you the source..i dont need it anymore (contact me @ icq,aim or so..)

ps: i cant get the bitblt api to work...i think it does not work in evb. a simple gapi for evb tutorial would be nice..i can code directx very well but i dont know the commands for gapi (and even not how to initialize it)
Remember that BitBlt does not blit from one bitmap to another. It blits from one Device Context to another. Thus you have to create a "memory" Device Context, and select your bitmap into it. That would be your source image, and the window's device context would be the target.

Dan East
SmokingFish · 05 Jun 2002, 14:40 UTC
i know . but in vb its much easyer to use.. (you only need 2 picboxes...source and dest) but this does not work in evb.. i know that there is way to use it..(getdc api or something like that) but this is slow too and stupid..i think if gapi in evb is slow too i will use evc++ ..