Michael_80 0 Newbie Poster

In Unity 3D, utilizing the Starter Assets package, I am trying to swap the mesh on the Starter Asset character that I duplicated in the scene. I unpacked a prefab so that I could utilize the mesh filter of the new prefab that I imported. I realized that there are several meshes on the (prefab/game object) that I unpacked and wanted to know how to layer them onto the skinned mesh renderer of the starter asset character? The new prefab contains multiple mesh overlays,(i believe the original is in underpants as Man_Body Mesh) and are they layered individually onto the game object?

I have attempted to add a mesh filter (Man_BodyMesh) and used the root which was different on the Man-BodyMesh from the Starter Asset Mesh…….basically my object upon play looked like the vertices were jumbled resulting in The Thing from John Carpenter? Iknow the Armature on the Unity Asset has a skeleton, weighted and has a root. I was hoping to copy and paste until I was proven wrong.

polles 0 Newbie Poster

i would choose JavaScript

kishanrg 0 Newbie Poster

When it comes to developing a Ludo game, the choice of programming language largely depends on your familiarity with the language and the platforms you intend to target. However, some commonly used languages for game development, including Ludo games, are C++, C#, Java, JavaScript, and Python.

Ultimately, the "best" programming language for Ludo game development depends on your specific requirements, target platforms, and your proficiency with the language. It's also worth considering the availability of game engines and frameworks that support your chosen language.

kishanrg 0 Newbie Poster

Developing a game can vary greatly in terms of time depending on several factors such as the complexity of the game, the size of the development team, and the resources available. However, on average, it can take anywhere from six months to several years to develop a game from start to finish.

Simple mobile games with basic mechanics might take a few months to develop, while larger-scale projects with advanced graphics, complex gameplay mechanics, and multiplayer features can take several years to complete. Additionally, factors like debugging, testing, and polishing can extend the development timeline.

jackwells 0 Newbie Poster
Here is a code i created
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Minecraft Circle Generator</title>
  <link rel="stylesheet" href="styles.css">
</head>
<body>
  <h1>Minecraft Circle Generator</h1>
  <div class="form">
    <label for="radius">Enter Radius (blocks):</label>
    <input type="number" id="radius" min="1" value="10">
    <button onclick="generateCircle()">Generate Circle</button>
  </div>
  <div id="circle"></div>
  <script src="script.js"></script>
</body>
</html>

body {
  font-family: Arial, sans-serif;
}

.form {
  margin-bottom: 20px;
}

label {
  font-weight: bold;
}

#circle {
  margin-top: 20px;
  width: 300px;
  height: 300px;
  border: 1px solid black;
  border-radius: 50%;
  background-color: lightblue;
}
function generateCircle() {
  const radius = document.getElementById('radius').value;
  const diameter = radius * 2;
  const circle = document.getElementById('circle');

  circle.style.width = diameter + 'px';
  circle.style.height = diameter + 'px';
  circle.innerHTML = `Radius: ${radius} blocks`;
}
jackwells 0 Newbie Poster

Hello, fellow coders,

I'm relatively new to coding and web development but excited to embark on a project combining my passion and my budding programming skills. I'm eager to create a tool like this https://minecraftcirclegenerate.com/ created using HTML, CSS, and JavaScript.

As a beginner, I'm seeking guidance on where to start and how to approach this project effectively. What essential steps must I take to bring this idea to life? Are there any tutorials, online resources, or beginner-friendly libraries you recommend to someone like me?

Additionally, I'm keen to learn about best practices for designing and implementing user-friendly features in the tool. How can I ensure that the interface is intuitive and easy for visitors to my website?

Any advice, tips, or insights you can provide would be immensely valuable as I embark on this coding journey. I'm grateful for any assistance you can offer to help me turn my vision into reality.

Thank you for your time and support.

Best regards

Gulshan_6 15 Newbie Poster

Thanks a lot for sharing it here with us. Secondly, choosing the best programming language also depends on your expertise and familiarity with a particular language. In my opinion, Unity C#, Swift are also very good options for Ludo game development.
Thanks

AndreRet 526 Senior Poster

To produce a AAA game as mentioned, you are in for 3-5 years as a team. See an article on this subject at -
How long does game development process take? Big titles, big time.)

But for games in the AAA category, it’s a good assumption to say that they take something between 3 to 5 years to develop. This can be a lot more if the gameplay or assets need to be done from scratch, or if the assets are already there from the previous year (like they do with Call of Duty).

rproffitt 2,580 "Nothing to see here." Moderator

That game with all its assets should be something close to 50 people years.

Also, your site has broken links such as https://skydownloading.com/subnautica-free-download-for-pc--grand-theft-auto-v/

jimmyhen77 0 Newbie Poster

First, I'm a passionate gamer and professionally a game developer. It's a dream of me to create games like assassin creed series, I also own a website which basically all about gaming. You might know how much I'm into gaming. If I start working out than how many Days or years gonna spend?

rproffitt 2,580 "Nothing to see here." Moderator

Again, until you move to a current Visual Basic we have to lean on prior discussions.

  1. Google "loadpicture vb6" and plenty of examples that work.
  2. To draw on that picture, example at https://www.vbforums.com/showthread.php?893506-Draw-on-StdPicture-objects
  3. There will be limitations such as the Bitmap type pictures only.
  4. There are few of us with access to VB6. While I wrote a lot of code back then, I no longer have the VB6 environment up and running.
Joaquim_5 145 Light Poster

how can i read a file to StdPicture?
and draw it on memory HDC?

Public Sub LoadImage(strPath As String)
    Dim myPic As New StdPicture
    Set myPic = LoadPicture(strPath)

    NewImage myPic.Width, myPic.Height
    BitBlt MemoryHDC, 0, 0, Width, Height, myPic.Handle, 0, 0, SRCCOPY 'i get only a black background color
End Sub
rproffitt commented: Topic doesn't seem to match the questions. +17
Tarık Can -11 Newbie Poster

here have a lot of free texture. LotPixel Can you use this texture on Unreal engine 5.

pritaeas commented: That is not free. -4
rproffitt commented: Not free and 10 years late. -4
AndreRet commented: LOL!! -3
ashishhhroe 0 Newbie Poster

As per my experience and knowledge, Python is an excellent programming language for Ludo game development.

Joaquim_5 145 Light Poster

'&H808080' is gray :(
"I'm not sure why you were assigning a negative value to biHeight, then taking a negative of the negative to achieve a positive."
if is positive, when we change a pixel, the Y start point is on bottom, instead on top ;)

SCBWV 71 Junior Poster

The error is in the color value, and I don't know what value would display red. I randomly achieved a gray with the code below, which is improved from your code. I'm not sure why you were assigning a negative value to biHeight, then taking a negative of the negative to achieve a positive. Fixed in the code below.

Private Sub Form_Load()
    Me.Show
    With DIBInf.bmiHeader
        .biSize = Len(DIBInf.bmiHeader)
        .biWidth = 100
        .biHeight = 100
        .biPlanes = 1
        .biBitCount = 32
        .biCompression = BI_RGB
        .biSizeImage = AlignScan(.biWidth, .biBitCount) * .biHeight
        '.biXPelsPerMeter = (GetDeviceCaps(MemhDC, HORZRES) / _
            'GetDeviceCaps(MemhDC, HORZSIZE)) * 1000
        '.biYPelsPerMeter = (GetDeviceCaps(hDC, VERTRES) / _
            'GetDeviceCaps(MemhDC, VERTSIZE)) * 1000
        .biClrUsed = 0
        .biClrImportant = 0
    End With
    MemhDC = CreateCompatibleDC(0&)
    hDIB = CreateDIBSection(MemhDC, DIBInf, DIB_RGB_COLORS, DataPtr, 0, 0)
    Form1.AutoRedraw = True ' Messy, but ok for test
    hOldBMP = SelectObject(MemhDC, hDIB)
    Call RtlFillMemory(ByVal DataPtr, DIBInf.bmiHeader.biSizeImage, &H808080)
    Call BitBlt(Form1.hdc, 0, 0, DIBInf.bmiHeader.biWidth, DIBInf.bmiHeader.biHeight, MemhDC, 0, 0, vbSrcCopy)
    Call SelectObject(MemhDC, hOldBMP)
End Sub
Joaquim_5 145 Light Poster
Option Explicit

Private Type BITMAPINFOHEADER ' 40 bytes
    biSize As Long
    biWidth As Long
    biHeight As Long
    biPlanes As Integer
    biBitCount As Integer
    biCompression As Long
    biSizeImage As Long
    biXPelsPerMeter As Long
    biYPelsPerMeter As Long
    biClrUsed As Long
    biClrImportant As Long
End Type

Private Type BITMAPINFO
    bmiHeader As BITMAPINFOHEADER
    bmiColors(0 To 255) As Long
End Type
Private Const BI_RGB As Long = &H0
Private Const DIB_RGB_COLORS As Long = &H0 ' Colour table in RGBs

Private Declare Function CreateDIBSection Lib "gdi32.dll" (ByVal hdc As Long, _
ByRef pBMI As BITMAPINFO, ByVal iUsage As Long, ByRef ppvBits As Long, _
ByVal hSection As Long, ByVal dwOffset As Long) As Long
Private Declare Function CreateCompatibleDC Lib "gdi32.dll" (ByVal hdc As Long) As Long
Private Declare Function DeleteDC Lib "gdi32.dll" (ByVal hdc As Long) As Long
Private Declare Function DeleteObject Lib "gdi32.dll" (ByVal hObject As Long) As Long

Private Declare Function GetDeviceCaps Lib "gdi32.dll" ( _
ByVal hdc As Long, ByVal nIndex As Long) As Long
Private Const HORZSIZE As Long = &H4 ' Horizontal size in millimetres
Private Const VERTSIZE As Long = &H6 ' Vertical size in millimetres
Private Const HORZRES As Long = &H8 ' Horizontal width in pixels
Private Const VERTRES As Long = &HA ' Vertical width in pixels

Private Declare Function SelectObject Lib "gdi32.dll" ( _
ByVal hdc As Long, ByVal hObject As Long) As Long
Private Declare Function BitBlt Lib "gdi32.dll" (ByVal hDestDC As Long, _
ByVal x As Long, ByVal y As Long, ByVal nWidth …
SCBWV 71 Junior Poster

You haven't posted enough code for me to use in replicating the error. Perhaps attach as zip of files that include your types and definitions.

Joaquim_5 145 Light Poster

'&HFF&' give me white :(
the problem here is: why i can't use another colors?

SCBWV 71 Junior Poster

I don't know. RflFillMemory expects a long for the Fill, so perhaps try &HFF&

Joaquim_5 145 Light Poster
Private Declare Sub RtlFillMemory Lib "Kernel32.dll" ( _
ByRef Destination As Any, ByVal Length As Long, ByVal Fill As Long)

with RtlFillMemory() i only get black and white :(

Private Function AlignScan(ByVal inWidth As Long, ByVal inDepth As Integer) As Long
    AlignScan = (((inWidth * inDepth) + &H1F) And Not &H1F&) \ &H8
End Function


Private Sub Form_Load()
    Me.Show
    With DIBInf.bmiHeader
        .biSize = Len(DIBInf.bmiHeader)
        .biWidth = 100
        .biHeight = -100
        .biPlanes = 1
        .biBitCount = 32
        .biCompression = BI_RGB
        .biSizeImage = AlignScan(.biWidth, .biBitCount) * -.biHeight
        '.biXPelsPerMeter = (GetDeviceCaps(MemhDC, HORZRES) / _
            'GetDeviceCaps(MemhDC, HORZSIZE)) * 1000
        '.biYPelsPerMeter = (GetDeviceCaps(hDC, VERTRES) / _
            'GetDeviceCaps(MemhDC, VERTSIZE)) * 1000
        .biClrUsed = 0
        .biClrImportant = 0
    End With
    MemhDC = CreateCompatibleDC(0&)
    hDIB = CreateDIBSection(MemhDC, DIBInf, DIB_RGB_COLORS, DataPtr, 0, 0)
    Form1.AutoRedraw = True ' Messy, but ok for test
    hOldBMP = SelectObject(MemhDC, hDIB)
    Call RtlFillMemory(ByVal DataPtr, DIBInf.bmiHeader.biSizeImage, vbRed)
    Call BitBlt(Form1.hDC, 0, 0, DIBInf.bmiHeader.biWidth, _
    -DIBInf.bmiHeader.biHeight, MemhDC, 0, 0, vbSrcCopy)
    Call SelectObject(MemhDC, hOldBMP)



End Sub
SCBWV 71 Junior Poster

There are color constants in VB6 for the basic colors. Specifying the color with hex or RGB values allows you to select one of 16,777,216, thus there aren't constants for all of them.

vbBlack 0x0
vbRed 0xFF
vbGreen 0xFF00
vbYellow 0xFFFF
vbBlue 0xFF0000
vbMagenta 0xFF00FF
vbCyan 0xFFFF00
vbWhite 0xFFFFFF
AndreRet commented: Correct answer +15
Joaquim_5 145 Light Poster

i use the RtlFillMemory():

Call RtlFillMemory(ByVal DataPtr, DIBInf.bmiHeader.biSizeImage, &H80)

the '&H80' is the mid-grey color.... what are the others colors code?

AndreRet 526 Senior Poster

Reverend Jim is totally correct. I modified your code a little to address the drawing of the hangman. Tested in Python fiddle - Python Sandbox -

import random

def select_word():
    words_in_computer_memory = ['magazine', 'stars', 'computer', 'python', 'organisation']
    word = random.choice(words_in_computer_memory)
    return word

def is_guessed(word, guessed_letter_list):
    count = 0
    for letter in word:
        if letter in guessed_letter_list:
            count += 1
    if count == len(word):
        return True
    else:
        return False

def guessed_word(word, guessed_letter_list): 
    string = ""
    for letter in word:
        if letter in guessed_letter_list:
            string += letter
        else:
            string += "_ "
    return string

def available_letters(guessed_letter_list):
    string = ""
    s = 'abcdefghijklmnopqrstuvwxyz'
    for letter in s:
        if letter not in guessed_letter_list:
            string += letter
    return string

def print_hangman(chances):
    stages = [
        '''
           --------
           |      |
           |      O
           |     \\|/
           |      |
           |     / \\
        ''',
        '''
           --------
           |      |
           |      O
           |     \\|/
           |      |
           |     / 
        ''',
        '''
           --------
           |      |
           |      O
           |     \\|/
           |      |
           |      
        ''',
        '''
           --------
           |      |
           |      O
           |     \\|
           |      |
           |     
        ''',
        '''
           --------
           |      |
           |      O
           |      |
           |      |
           |     
        ''',
        '''
           --------
           |      |
           |      O
           |    
           |      
           |     
        ''',
        '''
           --------
           |      |
           |      
           |    
           |      
           |     
        '''
    ]
    print(stages[chances])

def hangman_game(word):  
    length = len(word)
    print('''------------------WELCOME TO HANGMAN GAME---------------------------
                                    O   
                                   /|\\  
                                   / \\  
        ''')
    print("The word you have to guess is", length, "letters long.")
    chances = 2 * len(word)
    guessed_letter_list = []

    while chances != 0:
        if word != guessed_word(word, guessed_letter_list):
            print("You have", chances, "chances.")
            print("Letters …
Gulshan_6 commented: Thanks +0
Gulshan_6 15 Newbie Poster

@Reverend Jim Thanks a lot for your kind respond, yes it really work for me. @pritaeas problem soved now.
Thanks again.

Reverend Jim 4,780 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

On line 10 you have count+=1:. Python will tell you that this is a syntax error. Take off the trailing colon. However this still leaves you with a problem. The game runs, but it does not display the hangman in progress when you guess a wrong letter.

pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster

some error at the time of its execution

What error do you get?

Gulshan_6 15 Newbie Poster

Hello this is Gulshan Negi
Well, I am writing a program for making hangman game in python but it shows some error at the time of its execution. Here is my source code:

import random
def select_word():
    words_in_computer_memory = ['magazine','stars','computer','python','organisation']
    word = random.choice(words_in_computer_memory)
    return word
def is_gussed(word, guessed_letter_list):
    count=0
    for letters in word:
        if letters in guessed_letter_list:
            count+=1:
    if count==len(word):
        return True
    else:
        return False
def guessed_word(word, guessed_letter_list): 
    string=""
    for key in word:
        if key in guessed_letter_list:
            string+=key
        else:
            string+="_ "
    return string
def available_letters(guessed_letter_list):

    string=""
    count=0
    s='abcdefghijklmnopqrstuvwxyz'
    for letter in s:
        if letter in guessed_letter_list:
            count+=1
        else:
            string+=letter
    return string
def hangman_game(word):  
    length=len(word)
    print('''------------------WELCOME TO HANGMAN GAME---------------------------
                                    O   
                                   /|\  
                                   / \  
        ''')
    print("The word you have to guess is of ",length, "letters long.")
    chances=2*len(word)
    i=0
    guessed_letter_list=[]
    while (chances!=0):     

        if word!=guessed_word(word, guessed_letter_list):
            print("You Got", chances, "Chances.")
            print("Letters you can enter should be from these ",available_letters(guessed_letter_list))
            guess=input("ENTER A LETTER ")
            print('\n'*50)

            guessInLowerCase = guess[0].lower()      
            if guessInLowerCase  in guessed_letter_list:
                print("SORRY! YOU HAVE GUSSED THIS LETTER ALREADY! ",guessed_word(word, guessed_letter_list))
            elif guessInLowerCase not in word: 
                print(" SORRY! THE LETTER IS NOT IN WORD",guessed_word(word, guessed_letter_list))
                chances-=1
            else:
                guessed_letter_list.append(guessInLowerCase)
                print("NICE YOU GUSESSED THE RIGHT LETTER! ",guessed_word(word, guessed_letter_list))

        elif word==guessed_word(word, guessed_letter_list):
            print("YOU WON!")
            break

    else:
        print('''
        ********************************************
   YOU LOSS!!
                                 O 
                                /|\  
                                / \  
     ******************************************''')
        print('The word was',word,)

word = select_word()
hangman_game(word)

Can anyone give their suggestions on this?
Thanks

AndreRet commented: What error and on which line? +15
Joaquim_5 145 Light Poster

with CreateDIBSection() we create an array of DIB's pixels .. but it's a copy and not a pointer :(
when i change 1 pixel or draw a rectangle, i must re-create the DIB's and then draw the result.

Private bmpPtr() As Long
ReDim bmpPtr(ImageWidth * ImageHeight - 1)
  hBitmap = CreateDIBSection(hdc, bmpInfoHeader, BI_RGB, ByVal bmpPtr, 0, 0)

but when i do:

bmpPtr(PosY * Width + PosX) = color

the value is changed on 'bmpPtr' but not on Bitmap or HDC :(

SCBWV 71 Junior Poster

You're welcome. Good luck.