#include <stdio.h>
#include "variables_interface.c"
int main(int argc, char **argv){ //
//#include "interface.h"
int interface = 3;
//printf(a);
//#include "interface2.c"
if(interface == 2){
//printf("Interface2");
#include "interface2.c"
}
else if(interface == 3){
//printf("Interface3");
#include "interface3.c"
}
return 0;
}
#include <stdio.h>
printf("Interface2");
#include <stdio.h>
printf("Interface3");
int a = "texto do ficheiro variables interface";
- Lyberta.Linus stubbornness
Julius {l Wrote}:Rust will replace C/C++ anyway
https://blogs.gnome.org/uraeus/2017/12/ ... -for-2018/
Duion {l Wrote}:
Why you want to develop another engine?
Farrer {l Wrote}: And why not? ... Keep it up climjark, and don't let those "why doesn't you do what I think is better for you to do" discourage you. Do what *you* believe is worth for you to do.
SDL_Window *window; // Declare a window
SDL_Renderer *renderer; // Declare a renderer
SDL_Init(SDL_INIT_VIDEO); // Initialize SDL2
//Create an application window with the following settings:
window = SDL_CreateWindow("Game Window", // window title
SDL_WINDOWPOS_UNDEFINED, // initial x position
SDL_WINDOWPOS_UNDEFINED, // initial y position
640, // width, in pixels
480, // height, in pixels
0 // flags
);
renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);
SDL_RenderSetLogicalSize(renderer, 320, 240);
SDL_Surface *sheet = IMG_Load("sheet.png");
if(!sheet)
{
printf("Cannot find sheet\n");
return 1;
}
man.sheetTexture = SDL_CreateTextureFromSurface(renderer, sheet);
SDL_FreeSurface(sheet);
//load enemy
sheet = IMG_Load("badman_sheet.png");
if(!sheet)
{
printf("Cannot find sheet\n");
return 1;
}
enemy.sheetTexture = SDL_CreateTextureFromSurface(renderer, sheet);
SDL_FreeSurface(sheet);
//load the bg
SDL_Surface *bg = IMG_Load("background.png");
if(!sheet)
{
printf("Cannot find background\n");
return 1;
}
backgroundTexture = SDL_CreateTextureFromSurface(renderer, bg);
SDL_FreeSurface(bg);
//load the bullet
SDL_Surface *bullet = IMG_Load("bullet.png");
if(!bullet)
{
printf("Cannot find bullet\n");
return 1;
}
bulletTexture = SDL_CreateTextureFromSurface(renderer, bullet);
SDL_FreeSurface(bullet);
// The window is open: enter program loop (see SDL_PollEvent)
int done = 0;
//Event loop
while(!done)
{
//Check for events
done = processEvents(window, &man);
//Update logic
updateLogic(&man);
//Render display
doRender(renderer, &man);
//don't burn up the CPU
SDL_Delay(10);
}
// Close and destroy the window
SDL_DestroyWindow(window);
SDL_DestroyRenderer(renderer);
SDL_DestroyTexture(man.sheetTexture);
SDL_DestroyTexture(backgroundTexture);
SDL_DestroyTexture(bulletTexture);
SDL_DestroyTexture(enemy.sheetTexture);
for(int i = 0; i < MAX_BULLETS; i++)
removeBullet(i);
// Clean up
SDL_Quit();
/* SYSTEM LIBRARY */
#include "error.c"
#include "string.c"
#include "paths.c"
#include "file.c"
#include "database.c"
#include "image.c"
#include "image_png.c"
char path;
char string_length;
int path_length;
int extension_length;
char extension;
/* SYSTEM LIBRARY */
#include "colors.c"
#include "image.c"
#include "image_png.c
"
/* main.c */
int i;
"
jdc {l Wrote}:A replay to lyberta and samerson this guy at libre engine have a good one for you people:Duion {l Wrote}:
Why you want to develop another engine?Farrer {l Wrote}: And why not? ... Keep it up climjark, and don't let those "why doesn't you do what I think is better for you to do" discourage you. Do what *you* believe is worth for you to do.
"You don't replay to people"
"we the coders" or "people are watching"
Ferrer "Put your code in a public repository"
jdc {l Wrote}:If you have more crazy accusations send them to the admins. They are the ones to handle that kind of situations?
jdc {l Wrote}:If i din't replay is because some one is being ignored.
People that come and mention :"we the coders" or "people are watching"
they speak by other's. I can't take this people serious. They suffer some kind of mental delusion?
jdc {l Wrote}:Julius:
With this change of position, don't see it the beneficts of having my project posted in the forums, or have it open source.
I will evaluate project status.
The project may no longer be open source.
Templates_icons = array(
"spells" => array(
"1" =>
array (
"name" => "Magic spells by 1"
"license" => "CC",
"autor" => "Kifan",
"sizes" => "246x, 128x, 48x",
"icons" => array(),
),
"2" =>
array (
"name" => "Magic spells by 2"
"license" => "CC",
"autor" => "Tuzgeg",
"sizes" => "246x, 128x, 48x",
"icons" => array(),
),
"abilitys" =>
"1" =>
array (
"name" => "RPG spells by ..."
"license" => "GPL",
"autor" => "CC",
"icons" => array(),
),
"2" =>
array (
"name" => "RPG spells by ..."
"license" => "GPL",
"autor" => "CC",
"icons" => array(),
),
)
);
languages = array(
"C" => "1", (between code);
"C++" => "1", (between code);
"Assembly" => "1", (between code);
"PHP" => "1", (between code);
);
default_values = array(
"number_of_lines" => "1", (between code);
);
process_array = array (
"3" => "variable_mapper",
"23" => "function_mapper",
"33" => "file_mapper",
"4" = "database_mapper",
)
variable_mapper = array (
"1" = array (
"name" => "npc",
"type" = "int",
"default" = "",
"starting_line" = 200,
"ending_line" = 201,
"process_position" => 1,
"connectios" => "",
"files" => array ("main", ),
"functions" => array ("combat",),
),
"2" = array (
"name" => "game_loading",
"type" = "bool",
"default" = "0",
"starting_line" = 200,
"ending_line" = 201,
"process_position" => 2,
"connectios" => "",
"files" => array ("main", ),
"functions" => array ("combat",),
),
);
file_mapper = array (){
"process_position" => 2,
"name" => "npc",
"connectios" => "",
"files" => "main",
"functions" => "combat, ",
}
function_mapper = array (){
"1" = array (
"process_position" => 3,
"name" => "npc",
"connectios" => "",
"files" => "main",
"variables" => array(),
"functions" => "combat, ",
)
}
database_mapper = array (){
"process_position" => 3,
"name" => "npc",
"connectios" => "",
"files" => "main",
"functions" => "combat, ",
}
Files -> variables & Functions & DB's
DB Mapper = array (){
"name" => "npc",
"connectios" => "",
"files" => "main",
"functions" => "combat, ",
}
extern int counter_1;
extern int counter_2;
extern int counter_3;
int x;
int y;
int a1;
int a2;
uint8_t* src;
uint8_t* dst;
LIMatRectInt src1;
LIMatRectInt dst1;
// ========== DECLARATION =================
extern int counter_1;
extern int counter_2;
extern int counter_3;
/* GENERIC Pointers */
extern int *int_pointer;
extern char *char_pointer;
extern float *float_pointer;
extern FILE *file_pointer;
int main (int argc, char** argv)
{
MYSQL mysql;
if(mysql_init(&mysql) == NULL) {
printf("\nInitialization error\n");
return 0;
}
mysql_real_connect(&mysql,"localhost", "user","pass","dbname",0,NULL,0);
printf("Client version: %s",mysql_get_client_info());
printf("\nServer version: %s",mysql_get_server_info(&mysql));
mysql_close(&mysql);
return 1;
}
// ========== DECLARATION =================
extern char database;
extern char database_password;
extern char database_user;
extern char database_host;
extern int database_column;
extern int database_row;
extern int database_ret;
extern int database_size;
// ========== DEFINITION =================
extern char database = "box";
extern char database_password = "";
extern char database_user = "test";
extern char database_host = "localhost";
Users browsing this forum: No registered users and 1 guest