11 here too :|.
Type: Posts; User: ThomasJohnsen
Just had to comment on your variable names {good, bad, wow, yo, stri}. Good fun :wave:
#EDIT: So as I'm not completely ot - jmcilhinney has a nice example in his sig. It helped me alot, but may be...
As .paul. suggested in this thread, the DataTable has a Compute method that can do some expression parsing. I haven't tested how extensive it is, but it might be a very simple solution to your...
Æ, Ø and Å are all considered vowels (danish language). Usually though Æ is represented as AE, Ø as OE and Å as AA.
There are ways to get the same/good performance regardless of the size of the map. For instance you can divide the map into equally sized blocks, only a few of which are shown at any one time (ofc...
As I see it, the only place that the error can arise is due to your approximation of Pi with 3.142.
Pi represented as a double is actually 3,14159265358979.
If you don't want to bother with the trig-functions, the coordinates for the regular unit-hexagon with center (0, 0) are:
{ (1, 0), (0.5, sqrt(3/4)), (-0.5, sqrt(3/4)), (-1, 0), (-0.5, -sqrt(3/4)),...
There are several excellent examples on exactly how to do that online, all of which are in C# though, I'm afraid.
If converting one from C# to VB is terribly tricky for you, you could ask Shaggy...
My guess is, that this is not XNA-related. You're most likely looking for a way to include XNA elements into VB.Net (ie. XNA in a windows control), right?
Well the easiest (though potentially rather memory-heavy) solution in this case imo is:
1) Copy all information from the DB to some kind of memory data-structure and use the DB only when...
As has been mentioned before (many times), we do not help solve assignments here. The first step is to attempt a solution yourself, and when/if you run into problems, post the parts of the code that...
Well imo it depends upon the map. If the map is non-cylindrical in nature, the simplest would probably be to just use a panel with autoscroll. A cylindrical map (going out of the map in a specific...
When working with multiline strings, i prefer using the RegexOptions.Multiline option. It will change the meaning of ^ and $ from beginning respectively end of string to beginning respectively end of...
...or if you find subtraction to be more intuitive than using not (though you did specify bitwise operators), you can try something like:
Dim result As Byte = Convert.ToByte((yourbyte And &HF0) +...
Creating the hexagons isn't a big deal. But I didn't quite get the rules from that clip (didn't watch the whole thing tbh) - do you have to check for lines through the map, or?
But with my formatting (as per the request in the OP) it returns 02:30:000 as it was supposed to.
1) You should use Option Explicit - declaring a variable without type is not the most readable...
You could try something like:
MessageBox.Show(New TimeSpan(Convert.ToInt64(m * TimeSpan.TicksPerMinute)).ToString("mm\:ss\:fff"))
where m is a floating-point value in the format specified in the...
First off - this is a commented/edited version of your code - should be mainly self-explanatory:
'This is a modified version of your code - I have put in remarks, where changes have been made:
...
You're right as usual. But now you know how it's implemented :)
And besides the OP seemed to want to encapsulate the results into some classes while searching, which means that he has to do the...
Why not just use a "Requires Login" screen-saver?
Btw what is up with starting every word in capital letters?
#EDIT: Just realized what you meant with the 2nd part :)
I can see several problems with your code:
1) You have declared a function, but as it never returns anything, you might as well use a sub.
2) Using Application.DoEvents is really not the way to do...
Or you could try something like:
'Will replace any occurence of a character in replace_chars with index i that is present in source
'with the corresponding character in replace_with at...
I honestly haven't got a clue about what you're trying to do!
I cannot see why you would want to use memorystreams, base64 encoding, splitting into 100 char chunks that apparently are put in "s. It...
Well if you could explain which encryption you're trying to apply to the file.
As it stands, without knowing Split0923, KP, ECT.RijEC, GE, IK93 etc., it's a little bit hard to even decipher your...
There is! Only product supporting it, I have come across till date though, is the aforementioned Phone Version.
Btw how did you create a Content project - do you have a version of VB that supports...
Is this also true for 2012? Are there other versions than the 2010 Phone that supports XNA for VB?
#EDIT: I'm asking because if 2012 dosen't support XNA for VB, then VB-XNA is pretty much a lost...
Nope - I meant to post it right here :).
It's mainly intended for one specific member.
The audience for VB specific XNA introduction examples strictly concerning 2D is too limited for a codebank...
I honestly don't think that it will matter much. Switching from VB.Net to C# or back isn't a big deal. IMO the various programming languages are more similar today than programming languages have...
Example 7: A complete game using just 100 lines of code and relying on nothing but what you've learned.
I thought that I would end this series of examples with a little funny game with rich...
Example 6: Using HLSL (High Level Shader Language) to generate interesting picture effects.
Public Class Game1
Inherits Microsoft.Xna.Framework.Game
Private WithEvents graphics As...
Example 5: Using Perlin simplex-noise to generate an infinite tiled map.
Public Class Game1
Inherits Microsoft.Xna.Framework.Game
Private WithEvents graphics As GraphicsDeviceManager
...
Example 4: Simple buttons and sprite-fonts.
Public Class Game1
Inherits Microsoft.Xna.Framework.Game
Private WithEvents graphics As GraphicsDeviceManager
Private WithEvents...
Example 3c: RenderTargets and Blending.
NOTE: This example also uses the GradientBall class from example 3 and 3b. Also the picture Penguins.jpg has been added to Content.
Public Class Game1
...
Example 3b: Using multiple instances of DrawableGameComponent.
Supplied below are the only two methods that have been changed from example 3:
Public Class Game1
Protected Overrides Sub...
Example 3: Using a DrawableGameComponent.
Public Class Game1
Inherits Microsoft.Xna.Framework.Game
Private WithEvents graphics As GraphicsDeviceManager
Private WithEvents...
Example 2b: Expanding a bit on example 2 to illustrate mouse-input and wrapping of textures.
Public Class Game1
Inherits Microsoft.Xna.Framework.Game
Private WithEvents graphics As...
Example 2: Fournier, Fussell, Carpenter algorithm modified to generate seamless clouds (using non-content data).
Public Class Game1
Inherits Microsoft.Xna.Framework.Game
Private...
Short list of examples on how XNA can be utilized to create a range of interesting effects (with almost complete focus on 2D).
Disclaimer: This is not a guide for XNA. Nor it is an in-depth...
If you create a new project and add a button and textbox (both using the given names of Button1 and TextBox1) the following might give you a place to begin:
'Declare a sub to handle all your...
True! Tbh I didn't think about that. I guess changing formats and standards for files, hardware etc. is more difficult now than it has ever been.