Jump to content
Sign in to follow this  
Ovidiu29

C++ Game Engine

Recommended Posts

As dori un game engine 2D in care sa programezi cu limbajul c++ si daca se poate niste tutoriale cu el. Multumesc anticipat.


Respecta si vei fi respectat.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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 ?

Share this post


Link to post
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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...