Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

andyharglesis

@andyharglesis
About
Posts
14
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Hey guys, mind telling me what you think of my first actual game with updating of movement?
    A andyharglesis

    BUT what about the program itself? Maybe less criticizing??

    Game Development graphics game-dev question

  • Hey guys, mind telling me what you think of my first actual game with updating of movement?
    A andyharglesis

    Here is the source code... forgive me for the length, but I'd appreciate it if someone dared to test it.

    #include <windows.h>
    HDC hdc;
    HWND hwnd;
    PAINTSTRUCT ps;
    bool room1 = 0;
    short constupdate()
    {
    while(1)
    {
    InvalidateRect(hwnd, NULL, TRUE);
    }
    }
    int floor;
    static int x, y;
    int jmpjmp = x+5;
    int atpos = jmpjmp;
    bool right = 1;
    bool left = 0;
    void first();
    bool keyinroom = 1;
    bool havekey = 0;
    bool inmenu = 0;
    /* Declare Windows procedure */
    LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

    /* Make the class name into a global variable */

    = "CodeBlocksWindowsApp";

    int WINAPI WinMain (HINSTANCE hThisInstance,
    HINSTANCE hPrevInstance,
    LPSTR lpszArgument,
    int nCmdShow)
    {
    HWND hwnd; /* This is the handle for our window */
    MSG messages; /* Here messages to the application are saved */
    WNDCLASSEX wincl; /* Data structure for the windowclass */

    /\* The Window structure \*/
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /\* This function is called by windows \*/
    wincl.style = CS\_DBLCLKS;                 /\* Catch double-clicks \*/
    wincl.cbSize = sizeof (WNDCLASSEX);
    
    /\* Use default icon and mouse-pointer \*/
    wincl.hIcon = LoadIcon (NULL, IDI\_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI\_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC\_ARROW);
    wincl.lpszMenuName = NULL;                 /\* No menu \*/
    wincl.cbClsExtra = 0;                      /\* No extra bytes after the window class \*/
    wincl.cbWndExtra = 0;                      /\* structure or the window instance \*/
    /\* Use Windows's default colour as the background of the window \*/
    wincl.hbrBackground = (HBRUSH) COLOR\_BACKGROUND+7;
    
    /\* Register the window class, and if it fails quit the program \*/
    if (!RegisterClassEx (&wincl))
        return 0;
    
    /\* The class is registered, let's create the program\*/
    hwnd = CreateWindowEx (
           0,                   /\* Extended possibilites for variation \*/
           szClassName,         /\* Classname \*/
           "Window's GDI Pixel Game",       /\* Title Text \*/
           WS\_OVERLAPPEDWINDOW, /\* default window \*/
           CW\_USEDEFAULT,       /\* Windows decides the position \*/
           CW\_USEDEFAULT,       /\* where the window ends up on the screen \*/
    
    Game Development graphics game-dev question

  • What do you think of my game I made, strictly in Windows API?
    A andyharglesis

    Here is the source code:

    #include <windows.h>
    HDC hdc;
    HWND hwnd;
    PAINTSTRUCT ps;
    bool room1 = 0;
    short constupdate()
    {
    while(1)
    {
    InvalidateRect(hwnd, NULL, TRUE);
    }
    }
    int floor;
    static int x, y;
    int jmpjmp = x+5;
    int atpos = jmpjmp;
    bool right = 1;
    bool left = 0;
    void first();
    bool keyinroom = 1;
    bool havekey = 0;
    bool inmenu = 0;
    /* Declare Windows procedure */
    LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

    /* Make the class name into a global variable */

    = "CodeBlocksWindowsApp";

    int WINAPI WinMain (HINSTANCE hThisInstance,
    HINSTANCE hPrevInstance,
    LPSTR lpszArgument,
    int nCmdShow)
    {
    HWND hwnd; /* This is the handle for our window */
    MSG messages; /* Here messages to the application are saved */
    WNDCLASSEX wincl; /* Data structure for the windowclass */

    /\* The Window structure \*/
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /\* This function is called by windows \*/
    wincl.style = CS\_DBLCLKS;                 /\* Catch double-clicks \*/
    wincl.cbSize = sizeof (WNDCLASSEX);
    
    /\* Use default icon and mouse-pointer \*/
    wincl.hIcon = LoadIcon (NULL, IDI\_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI\_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC\_ARROW);
    wincl.lpszMenuName = NULL;                 /\* No menu \*/
    wincl.cbClsExtra = 0;                      /\* No extra bytes after the window class \*/
    wincl.cbWndExtra = 0;                      /\* structure or the window instance \*/
    /\* Use Windows's default colour as the background of the window \*/
    wincl.hbrBackground = (HBRUSH) COLOR\_BACKGROUND+7;
    
    /\* Register the window class, and if it fails quit the program \*/
    if (!RegisterClassEx (&wincl))
        return 0;
    
    /\* The class is registered, let's create the program\*/
    hwnd = CreateWindowEx (
           0,                   /\* Extended possibilites for variation \*/
           szClassName,         /\* Classname \*/
           "Window's GDI Pixel Game",       /\* Title Text \*/
           WS\_OVERLAPPEDWINDOW, /\* default window \*/
           CW\_USEDEFAULT,       /\* Windows decides the position \*/
           CW\_USEDEFAULT,       /\* where the window ends up on the screen \*/
           544,                 /\* The program's width \*/
           375,
    
    Game Development graphics game-dev json question discussion

  • Not a big one but...
    A andyharglesis

    What's wrong with my code??

    The Weird and The Wonderful

  • I love you, but I'm not *in* love with you
    A andyharglesis

    This whole topic is becoming a juvenile discussion of raging chimps.

    The Lounge question

  • I love you, but I'm not *in* love with you
    A andyharglesis

    Sexist.

    The Lounge question

  • I love you, but I'm not *in* love with you
    A andyharglesis

    Sexist.

    The Lounge question

  • What do you think of my small game made in Windows API RAW?
    A andyharglesis

    Here is the source code... some feedback would nice:

    #include <windows.h>
    HDC hdc;
    HWND hwnd;
    PAINTSTRUCT ps;
    bool room1 = 0;
    short constupdate()
    {
    while(1)
    {
    InvalidateRect(hwnd, NULL, TRUE);
    }
    }
    int floor;
    static int x, y;
    int jmpjmp = x+5;
    int atpos = jmpjmp;
    bool right = 1;
    bool left = 0;
    void first();
    bool keyinroom = 1;
    bool havekey = 0;
    bool inmenu = 0;
    /* Declare Windows procedure */
    LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

    /* Make the class name into a global variable */

    = "CodeBlocksWindowsApp";

    int WINAPI WinMain (HINSTANCE hThisInstance,
    HINSTANCE hPrevInstance,
    LPSTR lpszArgument,
    int nCmdShow)
    {
    HWND hwnd; /* This is the handle for our window */
    MSG messages; /* Here messages to the application are saved */
    WNDCLASSEX wincl; /* Data structure for the windowclass */

    /\* The Window structure \*/
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /\* This function is called by windows \*/
    wincl.style = CS\_DBLCLKS;                 /\* Catch double-clicks \*/
    wincl.cbSize = sizeof (WNDCLASSEX);
    
    /\* Use default icon and mouse-pointer \*/
    wincl.hIcon = LoadIcon (NULL, IDI\_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI\_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC\_ARROW);
    wincl.lpszMenuName = NULL;                 /\* No menu \*/
    wincl.cbClsExtra = 0;                      /\* No extra bytes after the window class \*/
    wincl.cbWndExtra = 0;                      /\* structure or the window instance \*/
    /\* Use Windows's default colour as the background of the window \*/
    wincl.hbrBackground = (HBRUSH) COLOR\_BACKGROUND+7;
    
    /\* Register the window class, and if it fails quit the program \*/
    if (!RegisterClassEx (&wincl))
        return 0;
    
    /\* The class is registered, let's create the program\*/
    hwnd = CreateWindowEx (
           0,                   /\* Extended possibilites for variation \*/
           szClassName,         /\* Classname \*/
           "Window's GDI Pixel Game",       /\* Title Text \*/
           WS\_OVERLAPPEDWINDOW, /\* default window \*/
           CW\_USEDEFAULT,       /\* Windows decides the position \*/
           CW\_USEDEFAULT,       /\* where the window ends up on the screen \*/
           544,                 /\* The program's
    
    The Weird and The Wonderful graphics game-dev beta-testing json question

  • What do you think of my game I made, strictly in Windows API?
    A andyharglesis

    BUT the approach I've taken got the job done, didn't it? All in all, bad coding or not, you still have a working game(assuming someone actually compiled and tested the code).

    Windows API graphics game-dev json question discussion

  • What do you think of my game made in Windows API RAW(source code included)?
    A andyharglesis

    What's funny about my code?

    Game Development graphics game-dev json question discussion

  • I love you, but I'm not *in* love with you
    A andyharglesis

    Still sexists.

    The Lounge question

  • What do you think of my game made in Windows API RAW(source code included)?
    A andyharglesis

    Here is the source code:

    = "CodeBlocksWindowsApp"; int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nCmdShow) { HWND hwnd; /* This is the handle for our window */ MSG messages; /* Here messages to the application are saved */ WNDCLASSEX wincl; /* Data structure for the windowclass */ /* The Window structure */ wincl.hInstance = hThisInstance; wincl.lpszClassName = szClassName; wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */ wincl.style = CS_DBLCLKS; /* Catch double-clicks */ wincl.cbSize = sizeof (WNDCLASSEX); /* Use default icon and mouse-pointer */ wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION); wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION); wincl.hCursor = LoadCursor (NULL, IDC_ARROW); wincl.lpszMenuName = NULL; /* No menu */ wincl.cbClsExtra = 0; /* No extra bytes after the window class */ wincl.cbWndExtra = 0; /* structure or the window instance */ /* Use Windows's default colour as the background of the window */ wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND+7; /* Register the window class, and if it fails quit the program */ if (!RegisterClassEx (&wincl)) return 0; /* The class is registered, let's create the program*/ hwnd = CreateWindowEx ( 0, /* Extended possibilites for variation */ szClassName, /* Classname */ "Window's GDI Pixel Game", /* Title Text */ WS_OVERLAPPEDWINDOW, /* default window */ CW_USEDEFAULT, /* Windows decides the position */ CW_USEDEFAULT, /* where the window ends up on the screen */ 544, /* The program's width */ 375,

    Game Development graphics game-dev json question discussion

  • What do you think of my game I made, strictly in Windows API?
    A andyharglesis

    Here is the source code:

    = "CodeBlocksWindowsApp"; int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nCmdShow) { HWND hwnd; /* This is the handle for our window */ MSG messages; /* Here messages to the application are saved */ WNDCLASSEX wincl; /* Data structure for the windowclass */ /* The Window structure */ wincl.hInstance = hThisInstance; wincl.lpszClassName = szClassName; wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */ wincl.style = CS_DBLCLKS; /* Catch double-clicks */ wincl.cbSize = sizeof (WNDCLASSEX); /* Use default icon and mouse-pointer */ wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION); wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION); wincl.hCursor = LoadCursor (NULL, IDC_ARROW); wincl.lpszMenuName = NULL; /* No menu */ wincl.cbClsExtra = 0; /* No extra bytes after the window class */ wincl.cbWndExtra = 0; /* structure or the window instance */ /* Use Windows's default colour as the background of the window */ wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND+7; /* Register the window class, and if it fails quit the program */ if (!RegisterClassEx (&wincl)) return 0; /* The class is registered, let's create the program*/ hwnd = CreateWindowEx ( 0, /* Extended possibilites for variation */ szClassName, /* Classname */ "Window's GDI Pixel Game", /* Title Text */ WS_OVERLAPPEDWINDOW, /* default window */ CW_USEDEFAULT, /* Windows decides the position */ CW_USEDEFAULT, /* where the window ends up on the screen */ 544, /* The program's width */ 375,

    Windows API graphics game-dev json question discussion

  • I love you, but I'm not *in* love with you
    A andyharglesis

    Sexists.

    The Lounge question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups