Online game

Hey all, I was wondering how to make a online game, Like where can I make one. Could someone lend a hand out. It's just going to be a online dinosaur game like the google one

Do you plan to use an Arduino for some part of this project?

By Arduino, do you mean Arduino board, or the Arduino IDE for the code checking, I’ll be using Arduino IDE for the coding yes @pert

cole101:
By Arduino, do you mean Arduino board, or the Arduino IDE for the code checking

Good point! It is confusing that we use the term "Arduino" to refer to so many different things. I usually try to be more specific in my writing and actually had noticed that I left "board" off after posting that, but I didn't bother to edit it.

I was referring to an Arduino board. The Arduino IDE is only appropriate to use when writing code for an Arduino board. And when I say "Arduino board", I include all the 3rd party boards, which include bare chips. However, if you're writing code to run on a computer (which could be your own, or a server on the Internet), the Arduino IDE is not at all appropriate. It's likely you would not even want to use the C++ programming language the Arduino language is based on.

This forum is also not the best place to ask for assistance with this sort of project. I've moved this topic to the "General Discussion" board, where non-Arduino topics are welcome, and you may well get some help from the super smart forum members, but it's just not a subject we specialize in here.

Fortunately, there are a huge amount of free resources available on the Internet to help you with this project, so I'm sure you'll have no problem getting the information you need.

Well, I’ll be looking to make one based on Arduino, or using Arduino’s boards, so yes I will be using an Arduino board!!

But is it possible to make a Dino online game using Arduino boards?

If you know a little python, I guess so...Maybe this also helps you?

cole101:
But is it possible to make a Dino online game using Arduino boards?

I don't know anything about this dino game, but you certainly could use an Arduino board as a web server to make a game you wrote as an Arduino sketch available for play via the Internet.

You will need a way to connect your Arduino board to the network. That could be a board that has a built-in WiFi radio, such as the Arduino Nano 33 IoT, Arduino MKR WiFi 1010, ESP8266, ESP32, etc. Or you could put an Ethernet shield (example) or module on an Arduino board and then connect it to the network with an Ethernet cable.

cole101:
But is it possible to make a Dino online game using Arduino boards?

I don't understand why you would want to make an online game using an Arduino board.

I don't play computer games but imagine that an online game needs a powerful webserver that is permanently connected to the internet and which can be accessed by many users at the same time. I don't think any of the Arduino boards or boards like the ESP32 would have the necessary performance.

...R

Easy. Use interpreted languages... :wink:

TheUNOGuy:
Easy. Use interpreted languages... :wink:

What is that referring to?

It seems to have popped up out of nowhere.

...R

Robin2:
I don't understand why you would want to make an online game using an Arduino board.

I don't play computer games but imagine that an online game needs a powerful webserver that is permanently connected to the internet and which can be accessed by many users at the same time. I don't think any of the Arduino boards or boards like the ESP32 would have the necessary performance.

...R

pert asked me on if I was going to use a Arduino board to make a online game. I don't really want to so I was just asking if it's possible. My question was, what should I use to make an online game?
I might use a board because it's the only way i know right now

Is it possible to use Visual Studio's as the platform to make the game?

cole101:
Is it possible to use Visual Studio's as the platform to make the game?

Yes

Robin2:
It seems to have popped up out of nowhere.

Sorry for not being clear...I was trying to say that instead of using an Arduino board which Robin said in Reply #8 would not meet the requirements of a fully powered online game, it could easily be run by interpreted languages making a better server than what is made by Arduino...

cole101:
pert asked me on if I was going to use a Arduino board to make a online game. I don't really want to so I was just asking if it's possible.

If you don't want to use an Arduino then it is hard to understand why you asked your question on the Arduino Forum.

There must be hundreds of websites about creating computer games.

Also I get the impression you first need to learn the basics of web programming and how web projects are deployed and made available to other users. Again there are hundreds of websites with tutorials about that stuff.

...R

ALR then I’ll try find others, I used Arduino forum’s because it was the only one I knew of, Do you have any specific website in your head which could help me right now with turtorials, or should I just research them?

Tezzy

Without a clear intention of what you are trying to do, I cannot help you and I would advice you to research...

I'm trying to make a game on visual studio's. When I opened it, it came up with this code

// Game test.cpp : Defines the entry point for the application.
//

#include "framework.h"
#include "Game test.h"

#define MAX_LOADSTRING 100

// Global Variables:
HINSTANCE hInst;                                // current instance
WCHAR szTitle[MAX_LOADSTRING];                  // The title bar text
WCHAR szWindowClass[MAX_LOADSTRING];            // the main window class name

// Forward declarations of functions included in this code module:
ATOM                MyRegisterClass(HINSTANCE hInstance);
BOOL                InitInstance(HINSTANCE, int);
LRESULT CALLBACK    WndProc(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK    About(HWND, UINT, WPARAM, LPARAM);

int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
                     _In_opt_ HINSTANCE hPrevInstance,
                     _In_ LPWSTR    lpCmdLine,
                     _In_ int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    // TODO: Place code here.

    // Initialize global strings
    LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
    LoadStringW(hInstance, IDC_GAMETEST, szWindowClass, MAX_LOADSTRING);
    MyRegisterClass(hInstance);

    // Perform application initialization:
    if (!InitInstance (hInstance, nCmdShow))
    {
        return FALSE;
    }

    HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_GAMETEST));

    MSG msg;

    // Main message loop:
    while (GetMessage(&msg, nullptr, 0, 0))
    {
        if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
        {
            TranslateMessage(&msg);
            DispatchMessage(&msg);
        }
    }

    return (int) msg.wParam;
}



//
//  FUNCTION: MyRegisterClass()
//
//  PURPOSE: Registers the window class.
//
ATOM MyRegisterClass(HINSTANCE hInstance)
{
    WNDCLASSEXW wcex;

    wcex.cbSize = sizeof(WNDCLASSEX);

    wcex.style          = CS_HREDRAW | CS_VREDRAW;
    wcex.lpfnWndProc    = WndProc;
    wcex.cbClsExtra     = 0;
    wcex.cbWndExtra     = 0;
    wcex.hInstance      = hInstance;
    wcex.hIcon          = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_GAMETEST));
    wcex.hCursor        = LoadCursor(nullptr, IDC_ARROW);
    wcex.hbrBackground  = (HBRUSH)(COLOR_WINDOW+1);
    wcex.lpszMenuName   = MAKEINTRESOURCEW(IDC_GAMETEST);
    wcex.lpszClassName  = szWindowClass;
    wcex.hIconSm        = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));

    return RegisterClassExW(&wcex);
}

//
//   FUNCTION: InitInstance(HINSTANCE, int)
//
//   PURPOSE: Saves instance handle and creates main window
//
//   COMMENTS:
//
//        In this function, we save the instance handle in a global variable and
//        create and display the main program window.
//
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
   hInst = hInstance; // Store instance handle in our global variable

   HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
      CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr);

   if (!hWnd)
   {
      return FALSE;
   }

   ShowWindow(hWnd, nCmdShow);
   UpdateWindow(hWnd);

   return TRUE;
}

//
//  FUNCTION: WndProc(HWND, UINT, WPARAM, LPARAM)
//
//  PURPOSE: Processes messages for the main window.
//
//  WM_COMMAND  - process the application menu
//  WM_PAINT    - Paint the main window
//  WM_DESTROY  - post a quit message and return
//
//
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch (message)
    {
    case WM_COMMAND:
        {
            int wmId = LOWORD(wParam);
            // Parse the menu selections:
            switch (wmId)
            {
            case IDM_ABOUT:
                DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);
                break;
            case IDM_EXIT:
                DestroyWindow(hWnd);
                break;
            default:
                return DefWindowProc(hWnd, message, wParam, lParam);
            }
        }
        break;
    case WM_PAINT:
        {
            PAINTSTRUCT ps;
            HDC hdc = BeginPaint(hWnd, &ps);
            // TODO: Add any drawing code that uses hdc here...
            EndPaint(hWnd, &ps);
        }
        break;
    case WM_DESTROY:
        PostQuitMessage(0);
        break;
    default:
        return DefWindowProc(hWnd, message, wParam, lParam);
    }
    return 0;
}

// Message handler for about box.
INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
    UNREFERENCED_PARAMETER(lParam);
    switch (message)
    {
    case WM_INITDIALOG:
        return (INT_PTR)TRUE;

    case WM_COMMAND:
        if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
        {
            EndDialog(hDlg, LOWORD(wParam));
            return (INT_PTR)TRUE;
        }
        break;
    }
    return (INT_PTR)FALSE;
}

Is this just to launch the app on the windows because I have no idea what it says lol.

cole101:
I'm trying to make a game on visual studio's...

I don't understand why you come to the Arduino Forum without a question about Arduino...You can ask general programming stuff here in the general board but don't ask random stuff like this...Is there no other forum online where you can ask this?