Questions tagged [allegro]

Allegro is a low-level game programming library distributed freely, supporting desktop and mobile platforms. It is coded in C and offers several language bindings.

The latest stable version is 5.0. It is completely rewritten with a new API and full hardware accelerated graphics via OpenGL or D3D. There is official support for Windows, OS X, Linux, and iOS. There is also an unstable branch 5.1.

Links

383 questions
-2
votes
0 answers

Error compiling c++ on ubuntu with VS-Code

I'm trying to create a small game using Allegro. I've already downloaded the library and it is now on usr/include/allegro. When I'm trying to compile I get: /usr/bin/ld: /tmp/ccvQ9fiI.o: in function `main': first_test.c++:(.text+0x1d): undefined…
-2
votes
1 answer

C++ Allegro rotate group of line()

I would like to roatate a line() object which I have created using Allegro 4 library. circle( buffer, xm=xm+xx, ym=ym+yy, r=r+q, c0); line( buffer, xm , ym-30, xm+15, ym-15, c0 ); line( buffer, xm+15, ym-15, xm+5, ym-15, c0 ); …
Lenny
  • 887
  • 1
  • 11
  • 32
-2
votes
2 answers

Non-numerical Random Errors

The problem I've been coding a game in Microsoft Visual Studio 2010 Professional using C++ and Allegro 5.0.10 for the past year, and it's getting to the point where there isn't much left to do before release. However, when I build the game now, I…
-2
votes
1 answer

Allegro load_bitmap not working

i'm trying to load bitmap like this: BITMAP *image = load_bitmap("picture.bmp", NULL); when I test it: if (image == NULL) printf("No image loaded\n"); it prints No image loaded so load_bitmap doesn't work ... i have also tried absolute path but…
miskohut
  • 957
  • 1
  • 14
  • 34
-3
votes
1 answer

Can I use Allegro in Visual Studio 2017?

I'm trying to make simple games, because I want to teach design patterns and lot of things. But I and my students are using VS2017 and I'd seen that allegro supports until VS2012... so we'll have problems of compability or something like that? If…
Emanuel Clur
  • 95
  • 1
  • 9
-5
votes
1 answer

snake game with allegro

hi can someone please help me i m trying to code a snake game with allegro(in ubuntu) i managed to write this code but it doesn't work and i cant seem to find the problem when i compile it appears to be alright but when i execute some type of memory…
zoroKun
  • 1
  • 1
  • 2
-7
votes
1 answer

Drunk Mandelbrot implementation

I wrote a program that is supposed to draw the Mandelbrot fractal. Unfortunately, it seems to be drunk. Here is the output: The relevant function: void drawMandelbrot(float x, float y, float width, float height, float delta) { for (float…
11684
  • 7,356
  • 12
  • 48
  • 71
-8
votes
1 answer

in C, a variable doesn't retain the value i assign it and goes back to 0

I am writing a simple game engine in C and I have come across a very odd problem. //SANJI objs[1].animation = 1; objs[1].pho.h = 52; objs[1].pho.w = 25; objs[1].pho.tmp_pos.x = 190; objs[1].pho.tmp_pos.y = 40; objs[1].pho.gravity = 1; objs[1].hp =…
Sirius
  • 1
  • 1
1 2 3
25
26