Jump to content

C++ Game Engine


Ovidiu29

Recommended Posts

  • 1 month later...

Game editor e un program si sunt multe coduri. Eu o sa pun codul cand apesi butonul space(spatiu)

Unele variabile sunt in joc si nu mai trebuiesc declarate sau sunt globale.

int i,j,X=-260,Y=-760;

CreateActor("player", "player", "(none)", "(none)", 0, 0, false);

for(j=1;j<=4;j++)
{
  for(i=1;i<=6;i++)
  {
       CreateActor("enemy", "enemy", "(none)", "(none)", X, Y, false);
       X+=100;
       q++;
  }
  X=-260;
  Y+=90;
}

DestroyActor("Game");

Respecta si vei fi respectat.

Link to comment
Share on other sites

Functiile event CreateActor si DestroyActor fac parte din engine. Nu e munca ta. Dar stai linistit ca n-o spun cu rautate. Vroiam sa-ti transmit ca ar fi mai bine sa incerci sa-ti faci jocurile cu propriul cod si doar sa te inspiri din ceva gata facut.

Care e faza cu CodeBlocks ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.