mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
prepare for first release
This commit is contained in:
parent
7667473206
commit
85056130ac
2 changed files with 29 additions and 20 deletions
|
@ -1,6 +1,6 @@
|
|||
Become Derpy Hooves and fight with Muffinzombies in this free software game in order to rescue Ponyville ponies so they can defeat Discord once again!
|
||||
Become Derpy Hooves and fight with muffinzombies in this free software game in order to rescue Ponyville ponies so they can defeat Discord once again!
|
||||
|
||||
Equestria is again under Discord's attack! Now he's using an army of Muffinzombies to bring back chaos and lack of harmony into ponies world. But he didn't think about some mare who knows everything about muffins...
|
||||
Equestria is again under Discord's attack! Now he's using an army of muffinzombies to bring back chaos and lack of harmony into ponies world. But he didn't think about some mare who knows everything about muffins...
|
||||
|
||||
*Super Derpy: Muffin Attack* is written in C and requires Allegro 5.0.6. Works on Windows, GNU/Linux and Mac OS X.
|
||||
|
||||
|
|
45
src/about.c
45
src/about.c
|
@ -40,8 +40,8 @@ void About_Draw(struct Game *game) {
|
|||
float x = game->about.x;
|
||||
if (x<0) x=0;
|
||||
ALLEGRO_BITMAP* subbitmap;
|
||||
subbitmap = al_create_sub_bitmap(game->about.text_bitmap, 0, x*al_get_bitmap_height(game->about.text_bitmap), al_get_bitmap_width(game->about.text_bitmap), al_get_display_height(game->display)*0.8);
|
||||
al_draw_rotated_bitmap(subbitmap, al_get_bitmap_width(subbitmap)/2.0, al_get_bitmap_height(subbitmap)/2.0, al_get_display_width(game->display)*0.5+al_get_bitmap_width(subbitmap)/2.0, al_get_display_height(game->display)*0.1+al_get_bitmap_height(subbitmap)/2.0, -0.1, 0);
|
||||
subbitmap = al_create_sub_bitmap(game->about.text_bitmap, 0, x*al_get_bitmap_height(game->about.text_bitmap), al_get_bitmap_width(game->about.text_bitmap), al_get_display_height(game->display));
|
||||
al_draw_rotated_bitmap(subbitmap, al_get_bitmap_width(subbitmap)/2.0, al_get_bitmap_height(subbitmap)/2.0, al_get_display_width(game->display)*0.5+al_get_bitmap_width(subbitmap)/2.0, al_get_display_height(game->display)*0.1+al_get_bitmap_height(subbitmap)/2.0, -0.11, 0);
|
||||
al_destroy_bitmap(subbitmap);
|
||||
game->about.x+=tps(game, 60*0.00025);
|
||||
if (game->about.x>1) {
|
||||
|
@ -89,16 +89,16 @@ void About_Preload(struct Game *game, void (*progress)(struct Game*, float)) {
|
|||
fprintf(stderr, "Audio clip sample not loaded!\n" );
|
||||
exit(-1);
|
||||
}
|
||||
game->about.text_bitmap = al_create_bitmap(al_get_display_width(game->display)*0.4, al_get_display_height(game->display)*3.5);
|
||||
game->about.text_bitmap = al_create_bitmap(al_get_display_width(game->display)*0.4, al_get_display_height(game->display)*3.225);
|
||||
al_set_target_bitmap(game->about.text_bitmap);
|
||||
al_clear_to_color(al_map_rgba(0,0,0,0));
|
||||
al_draw_text(game->about.font, al_map_rgb(0,0,0), 0.5*al_get_bitmap_width(game->about.text_bitmap), 0.015*al_get_bitmap_height(game->about.text_bitmap), ALLEGRO_ALIGN_CENTRE, "Super Derpy: Muffin Attack");
|
||||
al_draw_text(game->about.font, al_map_rgb(0,0,0), 0.5*al_get_bitmap_width(game->about.text_bitmap), 0.035*al_get_bitmap_height(game->about.text_bitmap), ALLEGRO_ALIGN_CENTRE, "Version 0.1");
|
||||
al_draw_text(game->about.font, al_map_rgb(0,0,0), 0.5*al_get_bitmap_width(game->about.text_bitmap), 0.035*al_get_bitmap_height(game->about.text_bitmap), ALLEGRO_ALIGN_CENTRE, "Version 0.1 (prealpha)");
|
||||
|
||||
float y=0.07;
|
||||
void draw_text(char* text) {
|
||||
al_draw_text(game->about.font, al_map_rgb(0,0,0), 0, y*al_get_bitmap_height(game->about.text_bitmap), ALLEGRO_ALIGN_LEFT, text);
|
||||
y+=0.0128;
|
||||
y+=0.0131;
|
||||
}
|
||||
|
||||
draw_text("Written by:");
|
||||
|
@ -110,30 +110,37 @@ void About_Preload(struct Game *game, void (*progress)(struct Game*, float)) {
|
|||
draw_text(" http://yudhaikeledai.deviantart.com/");
|
||||
draw_text("");
|
||||
draw_text("Voices:");
|
||||
draw_text(" - BaldDumboRat");
|
||||
draw_text(" Derpy Hooves");
|
||||
/*draw_text(" - BaldDumboRat");
|
||||
draw_text(" Derpy Hooves");*/
|
||||
draw_text(" - Meredith Sims");
|
||||
draw_text(" http://emichwan88.tumblr.com/");
|
||||
draw_text(" Twilight Sparkle");
|
||||
draw_text(" Fluttershy");
|
||||
draw_text(" - Hnilmik");
|
||||
/*draw_text(" - Hnilmik");
|
||||
draw_text(" Rarity");
|
||||
draw_text(" - Karen VO");
|
||||
draw_text(" Applejack");
|
||||
draw_text(" Applejack");*/
|
||||
draw_text(" - MEMJ0123");
|
||||
draw_text(" http://memj0123.tumblr.com/");
|
||||
draw_text(" Princess Celestia");
|
||||
draw_text(" - Erica Mendez");
|
||||
/* draw_text(" - Erica Mendez");
|
||||
draw_text(" Rainbow Dash");
|
||||
draw_text(" - Emily Fajardo");
|
||||
draw_text(" Pinkie Pie");
|
||||
draw_text(" Pinkie Pie");*/
|
||||
draw_text("");
|
||||
draw_text("Original graphics:");
|
||||
draw_text(" - Anna Karlik");
|
||||
draw_text(" - Ania Karlik");
|
||||
draw_text(" (Eris)");
|
||||
draw_text(" - Agata Kurczewska");
|
||||
draw_text(" http://kiciazkrainyczarow.deviantart.com/");
|
||||
draw_text(" - Wiktor Grześkowiak");
|
||||
draw_text(" http://gl0w.pl/");
|
||||
draw_text("");
|
||||
draw_text("Music:");
|
||||
draw_text(" - Dr Dissonance");
|
||||
draw_text(" http://dr-dissonance.tumblr.com/");
|
||||
draw_text(" - Claire Anne Carr");
|
||||
draw_text(" http://claireannecarr.bandcamp.com/");
|
||||
draw_text(" - Dr Dissonance");
|
||||
draw_text(" http://dr-dissonance.tumblr.com/");
|
||||
draw_text(" - Dan O'Connor");
|
||||
draw_text(" http://www.danosongs.com/");
|
||||
draw_text(" - Kevin MacLeod");
|
||||
|
@ -172,6 +179,8 @@ void About_Preload(struct Game *game, void (*progress)(struct Game*, float)) {
|
|||
draw_text("Author of Super Derpy is not");
|
||||
draw_text("affiliated to Hasbro, The Hub");
|
||||
draw_text("or its associates.");
|
||||
draw_text("");
|
||||
draw_text("http://www.superderpy.com/");
|
||||
PROGRESS;
|
||||
|
||||
game->about.fade_bitmap = al_create_bitmap(al_get_display_width(game->display), al_get_display_height(game->display));
|
||||
|
@ -180,8 +189,8 @@ void About_Preload(struct Game *game, void (*progress)(struct Game*, float)) {
|
|||
al_draw_bitmap(game->about.image, 0, 0, 0);
|
||||
al_draw_bitmap(game->about.letter, al_get_display_width(game->display)*0.3, -al_get_display_height(game->display)*0.1, 0);
|
||||
ALLEGRO_BITMAP* subbitmap;
|
||||
subbitmap = al_create_sub_bitmap(game->about.text_bitmap, 0, 0, al_get_bitmap_width(game->about.text_bitmap), al_get_display_height(game->display)*0.8);
|
||||
al_draw_rotated_bitmap(subbitmap, al_get_bitmap_width(subbitmap)/2.0, al_get_bitmap_height(subbitmap)/2.0, al_get_display_width(game->display)*0.5+al_get_bitmap_width(subbitmap)/2.0, al_get_display_height(game->display)*0.1+al_get_bitmap_height(subbitmap)/2.0, -0.1, 0);
|
||||
subbitmap = al_create_sub_bitmap(game->about.text_bitmap, 0, 0, al_get_bitmap_width(game->about.text_bitmap), al_get_display_height(game->display));
|
||||
al_draw_rotated_bitmap(subbitmap, al_get_bitmap_width(subbitmap)/2.0, al_get_bitmap_height(subbitmap)/2.0, al_get_display_width(game->display)*0.5+al_get_bitmap_width(subbitmap)/2.0, al_get_display_height(game->display)*0.1+al_get_bitmap_height(subbitmap)/2.0, -0.11, 0);
|
||||
al_destroy_bitmap(subbitmap);
|
||||
|
||||
al_set_target_bitmap(al_get_backbuffer(game->display));
|
||||
|
@ -197,8 +206,8 @@ void About_Unload(struct Game *game) {
|
|||
al_draw_bitmap(game->about.letter, al_get_display_width(game->display)*0.3, -al_get_display_height(game->display)*0.1, 0);
|
||||
|
||||
ALLEGRO_BITMAP* subbitmap;
|
||||
subbitmap = al_create_sub_bitmap(game->about.text_bitmap, 0, game->about.x*al_get_bitmap_height(game->about.text_bitmap), al_get_bitmap_width(game->about.text_bitmap), al_get_display_height(game->display)*0.8);
|
||||
al_draw_rotated_bitmap(subbitmap, al_get_bitmap_width(subbitmap)/2.0, al_get_bitmap_height(subbitmap)/2.0, al_get_display_width(game->display)*0.5+al_get_bitmap_width(subbitmap)/2.0, al_get_display_height(game->display)*0.1+al_get_bitmap_height(subbitmap)/2.0, -0.1, 0);
|
||||
subbitmap = al_create_sub_bitmap(game->about.text_bitmap, 0, game->about.x*al_get_bitmap_height(game->about.text_bitmap), al_get_bitmap_width(game->about.text_bitmap), al_get_display_height(game->display));
|
||||
al_draw_rotated_bitmap(subbitmap, al_get_bitmap_width(subbitmap)/2.0, al_get_bitmap_height(subbitmap)/2.0, al_get_display_width(game->display)*0.5+al_get_bitmap_width(subbitmap)/2.0, al_get_display_height(game->display)*0.1+al_get_bitmap_height(subbitmap)/2.0, -0.11, 0);
|
||||
al_destroy_bitmap(subbitmap);
|
||||
al_set_target_bitmap(al_get_backbuffer(game->display));
|
||||
float fadeloop;
|
||||
|
|
Loading…
Reference in a new issue