To create a slave, pass ENEMY_IMMUNE for hp in create_enemy(). tip: create_enemyg(...) is an abbreviation for create_enemy(&global.enemies, ...). There is something like a super fancy event system for Enemies' logic rules now: logic_rule will be called with t = negative special values like EVENT_BIRTH or EVENT_DEATH on corresponding events. cool, isn't it? well those values have to be filtered out (like if(t < 0) return;) if you don't use them so they don't do strange things with your locus.
35 lines
788 B
CMake
35 lines
788 B
CMake
set(SRCs
|
|
main.c
|
|
stage.c
|
|
global.c
|
|
player.c
|
|
texture.c
|
|
projectile.c
|
|
enemy.c
|
|
animation.c
|
|
poweritem.c
|
|
list.c
|
|
font.c
|
|
audio.c
|
|
boss.c
|
|
plrmodes.c
|
|
laser.c
|
|
shader.c
|
|
stages/stage0.c)
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
|
|
|
|
find_package(SDL REQUIRED)
|
|
find_package(OpenGL REQUIRED)
|
|
find_package(OpenAL REQUIRED)
|
|
find_package(ALUT REQUIRED)
|
|
find_package(SDL_image REQUIRED)
|
|
find_package(SDL_ttf REQUIRED)
|
|
|
|
add_definitions(-DPREFIX="${CMAKE_INSTALL_PREFIX}" -DGL_GLEXT_PROTOTYPES)
|
|
|
|
include_directories(${SDL_INCLUDE_DIRS} ${ALUT_INCLUDE_DIRS})
|
|
add_executable(taisei ${SRCs})
|
|
target_link_libraries(taisei ${SDL_LIBRARY} ${OPENGL_LIBRARY} ${SDLIMAGE_LIBRARY} ${SDLTTF_LIBRARY} ${OPENAL_LIBRARY} ${ALUT_LIBRARY})
|
|
|
|
install(TARGETS taisei RUNTIME DESTINATION bin)
|