Tag Archives: vb.net

Game developing – RPG Maker comment on YouTube

Sure, this is fine if you want to make a meaningless game to play on your own or maybe to send to a close buddy. However, this is not a real production environment. If you people want to make games, learn how to program and start with a simpler platform such as mobile gaming.

(from https://www.youtube.com/all_comments?v=pdKHAe6StuE)

There used to be a time when one developer could make a game using a programming language like visual basic or even lower level languages, that is no longer the case as the expected number of features has increased dramatically.

It’s probably why vb.net doesn’t offer “shapes”(components to draw squares,circles,etc) like it used to, people who are serious about graphics are not going to use them opting instead for lower level graphics and people who are doing something trivial are going for something like flash or svg.

My mistake as a successful game developer while still 14 years old was to imagine that my increase in skill would result in me using less and less third party resources(images, primarily) and using more and more low level tools. That’s probably the reason I’ve failed since then in producing something worth of being hosted in other people’s websites.

Leave a comment

Filed under Uncategorized

Ein Gedi MP3 Player

Screenshot:

Image

Download: http://yourlinkyourad.co.nf/EinGediMp3Player.7z

Leave a comment

Filed under Uncategorized

Creating an AxWindowsMediaPlayer programmatically

below Public Class Form1:

Dim AxWindowsMediaPlayer1 As New AxWMPLib.AxWindowsMediaPlayer

 

Inside Form1_Load:

Me.Controls.Add(AxWindowsMediaPlayer1)

AxWindowsMediaPlayer1.Show()

Leave a comment

Filed under Uncategorized

How to draw a hexagram

    Private Sub Form1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint

        Dim myPen1 As New Pen(New SolidBrush(Color.FromArgb(255, 0, 0, 0)), 10)

        Dim Tri1Point1 As New Point((Me.Width / 2) – Me.Height / 6, (Me.Height / 3) + (Me.Height / 18))
        Dim Tri1Point2 As New Point((Me.Width / 2) + Me.Height / 6, (Me.Height / 3) + (Me.Height / 18))
        Dim Tri1Point3 As New Point((Me.Width / 2), ((Me.Height / 3) * 2) + (Me.Height / 18))

        e.Graphics.DrawPolygon(myPen1, {Tri1Point1, Tri1Point2, Tri1Point3})

        Dim Tri2Point1 As New Point((Me.Width / 2) – Me.Height / 6, ((Me.Height / 3) * 2) – (Me.Height / 18))
        Dim Tri2Point2 As New Point((Me.Width / 2) + Me.Height / 6, ((Me.Height / 3) * 2) – (Me.Height / 18))
        Dim Tri2Point3 As New Point((Me.Width / 2), (Me.Height / 3) – (Me.Height / 18))

        e.Graphics.DrawPolygon(myPen1, {Tri2Point1, Tri2Point2, Tri2Point3})

    End Sub

The code above is Public Domain

Image

Leave a comment

Filed under Uncategorized

VB strings seem to be binary safe

Code to test it:

Dim s1 As String = “”

        For i As Integer = 0 To 255
            Dim hexI As String = Hex(i)
            If hexI.Length = 1 Then
                hexI = “0” + hexI
            End If

            s1 = s1 + System.Text.RegularExpressions.Regex.Unescape(“\x” + hexI)
        Next

        For i2 As Integer = 0 To 255

            RichTextBox1.AppendText(Hex(Microsoft.VisualBasic.AscW(s1(i2))) + vbNewLine)
        Next

I didn’t check all values, but all values that could be used as delimiters(\x00 for instance) seem retrievable. Also, notepad tells me the richtextbox has 256 lines(plus one empty at the end).

You need a form and a richtextbox for this code(the code is public domain btw)

Leave a comment

Filed under Uncategorized

VB rocks

When it comes down to GUI and cryptography, but sucks in everything else. I have a huge program and I’m not close to finishing my header-adding program, I would have already finished with few lines in python. Given that most users won’t need to add headers(only “webmasters”) I will move to python for this part. The worst part is that I don’t even know whether VB.net strings are binary-safe. That would easy my life somewhat.

Leave a comment

Filed under Uncategorized