Advertisement

Results for "Author: javin"

2002ASP #6164
Binary <--> Numeric conversion - THE RIGHT WAY!!!! {Updated!}

I came in here looking for a quick and dirty method of converting numeric values to binary, and back again. I don't mean to be rude, people, but if you don't know what you're doing, don't upload the code. I poured through well over 2 dozen horribly ugly "methods" of conversion that all involved nested loops, select case, if/then trees, and all other sorts of nonsense. Finally, I gave up and wrote it myself. Once you understand the maths that go into making a binary number, you'll understand how simple this code really is. It can manage to convert any Long Integer to binary, and back again, quick, easy, and with a minimum of overhead. I'm sure there's probably even APIs to do this, now, but they likely wouldn't be available on legacy systems, and this method will work in any language.

2002C #14768
Binary <--> Numeric conversion - THE RIGHT WAY!!!! {Updated!}

I came in here looking for a quick and dirty method of converting numeric values to binary, and back again. I don't mean to be rude, people, but if you don't know what you're doing, don't upload the code. I poured through well over 2 dozen horribly ugly "methods" of conversion that all involved nested loops, select case, if/then trees, and all other sorts of nonsense. Finally, I gave up and wrote it myself. Once you understand the maths that go into making a binary number, you'll understand how simple this code really is. It can manage to convert any Long Integer to binary, and back again, quick, easy, and with a minimum of overhead. I'm sure there's probably even APIs to do this, now, but they likely wouldn't be available on legacy systems, and this method will work in any language.

2002VB #23372
Binary <--> Numeric conversion - THE RIGHT WAY!!!! {Updated!}

I came in here looking for a quick and dirty method of converting numeric values to binary, and back again. I don't mean to be rude, people, but if you don't know what you're doing, don't upload the code. I poured through well over 2 dozen horribly ugly "methods" of conversion that all involved nested loops, select case, if/then trees, and all other sorts of nonsense. Finally, I gave up and wrote it myself. Once you understand the maths that go into making a binary number, you'll understand how simple this code really is. It can manage to convert any Long Integer to binary, and back again, quick, easy, and with a minimum of overhead. I'm sure there's probably even APIs to do this, now, but they likely wouldn't be available on legacy systems, and this method will work in any language.

ASP_Volume2 #26437
Complete GDI 2D Sprite class. (2D Game Devlopment?)

First, keep in mind that this uses Windows API and GDI only. No DirectX. It's certainly not the BEST method in the world for making a 2D game on a windows platform (DirectX would be your best bet) but this is an excellent tool for all 2D GDI work, whether that be manipulating images on the fly, or anything else requiring 2D GDI. This has a massive amount of commenting in it, and was designed more as a tutorial, and started as a learning experience for myself. However, it is fairly well optimized, and I can do a full screen refresh (with animations) at 1024x768 with a framerate at about 530 FPS (RADEON 9600, AMD 1.5 gHZ) I would be interested in hearing about other people's framerates and system specs. *** EDIT: After seeing some of the framerates with the "lower end" systems, I'm considering putting together a simple tile-based Legend Of Zelda type of example. If someone wants to beat me to it, feel free. ;) Also, if there's anything you'd like to see added, let me know. I'm not promising I'll add it (since this was really designed for my own personal use) but maybe I can give you an idea how to add it yourself, or if it's something useful to me too, I may end up adding it afterall. (Anyone got a good floodfill algorithm? Been considering adding gradient fills.)

ASP_Volume2 #27592
Binary String<--> Numeric conversion - THE RIGHT WAY!!!! {Updated!}

First some clarification: This takes a number (say, 65) and the number of bits you want returned (say 8) and returns a STRING of 1's and 0's (such as "01000001"). Also converts the other way, too. Since VB doesn't have any bitshifting capability, this MIGHT be the only way to do it. (If someone has a better method, by all means PLEASE let me know.) I came in here looking for a quick and dirty method of doing this. I don't mean to be rude, people, but if you don't know what you're doing, don't upload the code. I poured through well over 2 dozen horribly ugly "methods" of conversion that all involved nested loops, select case, if/then trees, and all other sorts of nonsense. Finally, I gave up and wrote it myself. Once you understand the maths that go into making a binary number, you'll understand how simple this code really is. It can manage to convert any Long Integer to binary, and back again, quick, easy, and with a minimum of overhead. I'm sure there's probably even APIs to do this, now, but they likely wouldn't be available on legacy systems, and this method will work in any language. Note that this is marked as "Advanced" code. If you can't figure out how to use it, that's on you. In reality, it's pretty straightforward.

ASP_Volume2 #27595
Virtual Key Checker (emulates DirectInput with API)

I want to appologize in advance for the complete lack of commenting, or direction with this code. Note that this is for ADVANCED users. If you can't figure it out, I don't want to hear it. I didn't actually intend to post this for other people, so I didn't take any steps to make it easier to use, but I got to thinking maybe someone else can use it. This uses only Windows API but has most of the same functionality as DirectX's InputEngine. Even quite a bit of functionality that DirectX's Input Engine doesn't have. About the only thing it doesn't do is joysticks. (Yet.) Believe it or not, the speed is actually comperable to DirectX too, and I often use this instead of the DirectX InputEngine in my DirectX apps. It's fairly simple and straightforward (which is good since there's no accompanying examples). You create an instance of the class, and if you want to see if a key was pressed since the last time the object was called, you would check the value of VKObject.Pressed(VK_KEYNAME). Has handlers for mouse functions too.

ASP_Volume3 #54719
Binary String<--> Numeric conversion - THE RIGHT WAY!!!! {Updated!}

First some clarification: This takes a number (say, 65) and the number of bits you want returned (say 8) and returns a STRING of 1's and 0's (such as "01000001"). Also converts the other way, too. Since VB doesn't have any bitshifting capability, this MIGHT be the only way to do it. (If someone has a better method, by all means PLEASE let me know.) I came in here looking for a quick and dirty method of doing this. I don't mean to be rude, people, but if you don't know what you're doing, don't upload the code. I poured through well over 2 dozen horribly ugly "methods" of conversion that all involved nested loops, select case, if/then trees, and all other sorts of nonsense. Finally, I gave up and wrote it myself. Once you understand the maths that go into making a binary number, you'll understand how simple this code really is. It can manage to convert any Long Integer to binary, and back again, quick, easy, and with a minimum of overhead. I'm sure there's probably even APIs to do this, now, but they likely wouldn't be available on legacy systems, and this method will work in any language. Note that this is marked as "Advanced" code. If you can't figure out how to use it, that's on you. In reality, it's pretty straightforward.

ASP_Volume3 #54720
Complete GDI 2D Sprite class. (2D Game Devlopment?)

First, keep in mind that this uses Windows API and GDI only. No DirectX. It's certainly not the BEST method in the world for making a 2D game on a windows platform (DirectX would be your best bet) but this is an excellent tool for all 2D GDI work, whether that be manipulating images on the fly, or anything else requiring 2D GDI. This has a massive amount of commenting in it, and was designed more as a tutorial, and started as a learning experience for myself. However, it is fairly well optimized, and I can do a full screen refresh (with animations) at 1024x768 with a framerate at about 530 FPS (RADEON 9600, AMD 1.5 gHZ) I would be interested in hearing about other people's framerates and system specs. *** EDIT: After seeing some of the framerates with the "lower end" systems, I'm considering putting together a simple tile-based Legend Of Zelda type of example. If someone wants to beat me to it, feel free. ;) Also, if there's anything you'd like to see added, let me know. I'm not promising I'll add it (since this was really designed for my own personal use) but maybe I can give you an idea how to add it yourself, or if it's something useful to me too, I may end up adding it afterall. (Anyone got a good floodfill algorithm? Been considering adding gradient fills.)

ASP_Volume3 #54721
Virtual Key Checker (emulates DirectInput with API)

I want to appologize in advance for the complete lack of commenting, or direction with this code. Note that this is for ADVANCED users. If you can't figure it out, I don't want to hear it. I didn't actually intend to post this for other people, so I didn't take any steps to make it easier to use, but I got to thinking maybe someone else can use it. This uses only Windows API but has most of the same functionality as DirectX's InputEngine. Even quite a bit of functionality that DirectX's Input Engine doesn't have. About the only thing it doesn't do is joysticks. (Yet.) Believe it or not, the speed is actually comperable to DirectX too, and I often use this instead of the DirectX InputEngine in my DirectX apps. It's fairly simple and straightforward (which is good since there's no accompanying examples). You create an instance of the class, and if you want to see if a key was pressed since the last time the object was called, you would check the value of VKObject.Pressed(VK_KEYNAME). Has handlers for mouse functions too.

C_Volume2 #67499
Complete GDI 2D Sprite class. (2D Game Devlopment?)

First, keep in mind that this uses Windows API and GDI only. No DirectX. It's certainly not the BEST method in the world for making a 2D game on a windows platform (DirectX would be your best bet) but this is an excellent tool for all 2D GDI work, whether that be manipulating images on the fly, or anything else requiring 2D GDI. This has a massive amount of commenting in it, and was designed more as a tutorial, and started as a learning experience for myself. However, it is fairly well optimized, and I can do a full screen refresh (with animations) at 1024x768 with a framerate at about 530 FPS (RADEON 9600, AMD 1.5 gHZ) I would be interested in hearing about other people's framerates and system specs. *** EDIT: After seeing some of the framerates with the "lower end" systems, I'm considering putting together a simple tile-based Legend Of Zelda type of example. If someone wants to beat me to it, feel free. ;) Also, if there's anything you'd like to see added, let me know. I'm not promising I'll add it (since this was really designed for my own personal use) but maybe I can give you an idea how to add it yourself, or if it's something useful to me too, I may end up adding it afterall. (Anyone got a good floodfill algorithm? Been considering adding gradient fills.)

C_Volume2 #68654
Binary String<--> Numeric conversion - THE RIGHT WAY!!!! {Updated!}

First some clarification: This takes a number (say, 65) and the number of bits you want returned (say 8) and returns a STRING of 1's and 0's (such as "01000001"). Also converts the other way, too. Since VB doesn't have any bitshifting capability, this MIGHT be the only way to do it. (If someone has a better method, by all means PLEASE let me know.) I came in here looking for a quick and dirty method of doing this. I don't mean to be rude, people, but if you don't know what you're doing, don't upload the code. I poured through well over 2 dozen horribly ugly "methods" of conversion that all involved nested loops, select case, if/then trees, and all other sorts of nonsense. Finally, I gave up and wrote it myself. Once you understand the maths that go into making a binary number, you'll understand how simple this code really is. It can manage to convert any Long Integer to binary, and back again, quick, easy, and with a minimum of overhead. I'm sure there's probably even APIs to do this, now, but they likely wouldn't be available on legacy systems, and this method will work in any language. Note that this is marked as "Advanced" code. If you can't figure out how to use it, that's on you. In reality, it's pretty straightforward.

C_Volume2 #68657
Virtual Key Checker (emulates DirectInput with API)

I want to appologize in advance for the complete lack of commenting, or direction with this code. Note that this is for ADVANCED users. If you can't figure it out, I don't want to hear it. I didn't actually intend to post this for other people, so I didn't take any steps to make it easier to use, but I got to thinking maybe someone else can use it. This uses only Windows API but has most of the same functionality as DirectX's InputEngine. Even quite a bit of functionality that DirectX's Input Engine doesn't have. About the only thing it doesn't do is joysticks. (Yet.) Believe it or not, the speed is actually comperable to DirectX too, and I often use this instead of the DirectX InputEngine in my DirectX apps. It's fairly simple and straightforward (which is good since there's no accompanying examples). You create an instance of the class, and if you want to see if a key was pressed since the last time the object was called, you would check the value of VKObject.Pressed(VK_KEYNAME). Has handlers for mouse functions too.

Java_Volume1 #86043
Complete GDI 2D Sprite class. (2D Game Devlopment?)

First, keep in mind that this uses Windows API and GDI only. No DirectX. It's certainly not the BEST method in the world for making a 2D game on a windows platform (DirectX would be your best bet) but this is an excellent tool for all 2D GDI work, whether that be manipulating images on the fly, or anything else requiring 2D GDI. This has a massive amount of commenting in it, and was designed more as a tutorial, and started as a learning experience for myself. However, it is fairly well optimized, and I can do a full screen refresh (with animations) at 1024x768 with a framerate at about 530 FPS (RADEON 9600, AMD 1.5 gHZ) I would be interested in hearing about other people's framerates and system specs. *** EDIT: After seeing some of the framerates with the "lower end" systems, I'm considering putting together a simple tile-based Legend Of Zelda type of example. If someone wants to beat me to it, feel free. ;) Also, if there's anything you'd like to see added, let me know. I'm not promising I'll add it (since this was really designed for my own personal use) but maybe I can give you an idea how to add it yourself, or if it's something useful to me too, I may end up adding it afterall. (Anyone got a good floodfill algorithm? Been considering adding gradient fills.)

Java_Volume1 #87198
Binary String<--> Numeric conversion - THE RIGHT WAY!!!! {Updated!}

First some clarification: This takes a number (say, 65) and the number of bits you want returned (say 8) and returns a STRING of 1's and 0's (such as "01000001"). Also converts the other way, too. Since VB doesn't have any bitshifting capability, this MIGHT be the only way to do it. (If someone has a better method, by all means PLEASE let me know.) I came in here looking for a quick and dirty method of doing this. I don't mean to be rude, people, but if you don't know what you're doing, don't upload the code. I poured through well over 2 dozen horribly ugly "methods" of conversion that all involved nested loops, select case, if/then trees, and all other sorts of nonsense. Finally, I gave up and wrote it myself. Once you understand the maths that go into making a binary number, you'll understand how simple this code really is. It can manage to convert any Long Integer to binary, and back again, quick, easy, and with a minimum of overhead. I'm sure there's probably even APIs to do this, now, but they likely wouldn't be available on legacy systems, and this method will work in any language. Note that this is marked as "Advanced" code. If you can't figure out how to use it, that's on you. In reality, it's pretty straightforward.

Java_Volume1 #87201
Virtual Key Checker (emulates DirectInput with API)

I want to appologize in advance for the complete lack of commenting, or direction with this code. Note that this is for ADVANCED users. If you can't figure it out, I don't want to hear it. I didn't actually intend to post this for other people, so I didn't take any steps to make it easier to use, but I got to thinking maybe someone else can use it. This uses only Windows API but has most of the same functionality as DirectX's InputEngine. Even quite a bit of functionality that DirectX's Input Engine doesn't have. About the only thing it doesn't do is joysticks. (Yet.) Believe it or not, the speed is actually comperable to DirectX too, and I often use this instead of the DirectX InputEngine in my DirectX apps. It's fairly simple and straightforward (which is good since there's no accompanying examples). You create an instance of the class, and if you want to see if a key was pressed since the last time the object was called, you would check the value of VKObject.Pressed(VK_KEYNAME). Has handlers for mouse functions too.

1_2002 #110126
Binary <--> Numeric conversion - THE RIGHT WAY!!!! {Updated!}

I came in here looking for a quick and dirty method of converting numeric values to binary, and back again. I don't mean to be rude, people, but if you don't know what you're doing, don't upload the code. I poured through well over 2 dozen horribly ugly "methods" of conversion that all involved nested loops, select case, if/then trees, and all other sorts of nonsense. Finally, I gave up and wrote it myself. Once you understand the maths that go into making a binary number, you'll understand how simple this code really is. It can manage to convert any Long Integer to binary, and back again, quick, easy, and with a minimum of overhead. I'm sure there's probably even APIs to do this, now, but they likely wouldn't be available on legacy systems, and this method will work in any language.

2_2002-2004 #113191
Complete GDI 2D Sprite class. (2D Game Devlopment?)

First, keep in mind that this uses Windows API and GDI only. No DirectX. It's certainly not the BEST method in the world for making a 2D game on a windows platform (DirectX would be your best bet) but this is an excellent tool for all 2D GDI work, whether that be manipulating images on the fly, or anything else requiring 2D GDI. This has a massive amount of commenting in it, and was designed more as a tutorial, and started as a learning experience for myself. However, it is fairly well optimized, and I can do a full screen refresh (with animations) at 1024x768 with a framerate at about 530 FPS (RADEON 9600, AMD 1.5 gHZ) I would be interested in hearing about other people's framerates and system specs. *** EDIT: After seeing some of the framerates with the "lower end" systems, I'm considering putting together a simple tile-based Legend Of Zelda type of example. If someone wants to beat me to it, feel free. ;) Also, if there's anything you'd like to see added, let me know. I'm not promising I'll add it (since this was really designed for my own personal use) but maybe I can give you an idea how to add it yourself, or if it's something useful to me too, I may end up adding it afterall. (Anyone got a good floodfill algorithm? Been considering adding gradient fills.)

2_2002-2004 #114345
Binary String<--> Numeric conversion - THE RIGHT WAY!!!! {Updated!}

First some clarification: This takes a number (say, 65) and the number of bits you want returned (say 8) and returns a STRING of 1's and 0's (such as "01000001"). Also converts the other way, too. Since VB doesn't have any bitshifting capability, this MIGHT be the only way to do it. (If someone has a better method, by all means PLEASE let me know.) I came in here looking for a quick and dirty method of doing this. I don't mean to be rude, people, but if you don't know what you're doing, don't upload the code. I poured through well over 2 dozen horribly ugly "methods" of conversion that all involved nested loops, select case, if/then trees, and all other sorts of nonsense. Finally, I gave up and wrote it myself. Once you understand the maths that go into making a binary number, you'll understand how simple this code really is. It can manage to convert any Long Integer to binary, and back again, quick, easy, and with a minimum of overhead. I'm sure there's probably even APIs to do this, now, but they likely wouldn't be available on legacy systems, and this method will work in any language. Note that this is marked as "Advanced" code. If you can't figure out how to use it, that's on you. In reality, it's pretty straightforward.

2_2002-2004 #114348
Virtual Key Checker (emulates DirectInput with API)

I want to appologize in advance for the complete lack of commenting, or direction with this code. Note that this is for ADVANCED users. If you can't figure it out, I don't want to hear it. I didn't actually intend to post this for other people, so I didn't take any steps to make it easier to use, but I got to thinking maybe someone else can use it. This uses only Windows API but has most of the same functionality as DirectX's InputEngine. Even quite a bit of functionality that DirectX's Input Engine doesn't have. About the only thing it doesn't do is joysticks. (Yet.) Believe it or not, the speed is actually comperable to DirectX too, and I often use this instead of the DirectX InputEngine in my DirectX apps. It's fairly simple and straightforward (which is good since there's no accompanying examples). You create an instance of the class, and if you want to see if a key was pressed since the last time the object was called, you would check the value of VKObject.Pressed(VK_KEYNAME). Has handlers for mouse functions too.

3_2004-2005 #131734
Complete GDI 2D Sprite class. (2D Game Devlopment?)

First, keep in mind that this uses Windows API and GDI only. No DirectX. It's certainly not the BEST method in the world for making a 2D game on a windows platform (DirectX would be your best bet) but this is an excellent tool for all 2D GDI work, whether that be manipulating images on the fly, or anything else requiring 2D GDI. This has a massive amount of commenting in it, and was designed more as a tutorial, and started as a learning experience for myself. However, it is fairly well optimized, and I can do a full screen refresh (with animations) at 1024x768 with a framerate at about 530 FPS (RADEON 9600, AMD 1.5 gHZ) I would be interested in hearing about other people's framerates and system specs. *** EDIT: After seeing some of the framerates with the "lower end" systems, I'm considering putting together a simple tile-based Legend Of Zelda type of example. If someone wants to beat me to it, feel free. ;) Also, if there's anything you'd like to see added, let me know. I'm not promising I'll add it (since this was really designed for my own personal use) but maybe I can give you an idea how to add it yourself, or if it's something useful to me too, I may end up adding it afterall. (Anyone got a good floodfill algorithm? Been considering adding gradient fills.)

Languages
Top Categories
Global Discovery