Using dsubimage instead of libimg
This commit is contained in:
parent
3c2c216784
commit
31aa7461bc
|
@ -77,8 +77,6 @@ LDFLAGS_CG += -Wl,-Map=build-cg/map
|
|||
# File conversion parameters
|
||||
#---
|
||||
|
||||
IMG.elevator.png = type:libimg-image name:img_elevator
|
||||
|
||||
# Here you can add fxconv options for each converted file, individually.
|
||||
# The syntax is "<type>.<file>". For example, to specify the parameters for a
|
||||
# font name "hexa.png", you might write:
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#include <gint/display.h>
|
||||
#include <gint/keyboard.h>
|
||||
#include <libimg.h>
|
||||
#include "draw.h"
|
||||
#include "shared_define.h"
|
||||
|
||||
|
@ -24,7 +23,7 @@ extern image_t img_semi_solid; //semi solid texture, 16x16
|
|||
extern image_t img_teleporter_0; //teleporter 0 texture, 16x16
|
||||
extern image_t img_teleporter_1; //teleporter 1 texture, 16x16
|
||||
//animated textures (elevator)
|
||||
extern img_t const img_elevator;
|
||||
extern image_t img_elevator;
|
||||
|
||||
void draw_player(int x, int y)
|
||||
{
|
||||
|
@ -71,8 +70,8 @@ int *start_y, int tp_positions[])
|
|||
dimage(x + DRAW_OFFSET_X, y + DRAW_OFFSET_Y, &img_semi_solid);
|
||||
break;
|
||||
case '^':
|
||||
img_render_vram(img_sub(img_elevator,
|
||||
(step % img_elevator_frame_count) * 16, 0, 16, 16), x, y);
|
||||
dsubimage(x, y, &img_elevator,
|
||||
(step % img_elevator_frame_count) * 16, 0, 16, 16, 0);
|
||||
break;
|
||||
case 'S':
|
||||
erase_tile(x, y, level);
|
||||
|
|
Loading…
Reference in New Issue