EOSERV Forum > Lounge > My First Allegro Game (Pong/Snake)
Topic is locked.
Page: << 1 2 >>
My First Allegro Game (Pong/Snake)
Author Message
Post #87827 Re: My First Allegro Game (Pong/Snake)
DanScott posted: (14th Jul 2011 12:33 am)

the gameplay is a lot faster than the snake I made in pascal :L! Kinda difficult :X


I'll have to slow it down, especially since I made the play area smaller!

I can NOT get the fonts to work though. I followed the example exactly, even used their font, even ran the example and saw it work. When I use the same code though it crashes at 

al_draw_textf(font, al_map_rgb(255, 0, 0), 10, 10, 0, "text");

edit - Figured it out! I wasn't including/initializing the image addon and its a bitmap font. 
---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};
13 years, 49 weeks ago
Post #87841 Re: My First Allegro Game (Pong/Snake)

yeah u shuld add a speed change option when u get the font loaded.

Edit: Gratz!

---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
13 years, 49 weeks ago
Post #87863 Re: My First Allegro Game (Pong/Snake)

I added a bunch of stuff! I'm posting the next version (see original post). Note that the .exe is correctly named now. Among other things. Press enter to start, arrows to select your difficulty (before the game starts playing).

---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};
13 years, 49 weeks ago
Page: << 1 2 >>
Topic is locked.
EOSERV Forum > Lounge > My First Allegro Game (Pong/Snake)