Skip to content

Commit

Permalink
Add current SDL2 port with TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
carstene1ns committed Aug 11, 2022
1 parent 5e0d7ef commit 824598d
Show file tree
Hide file tree
Showing 6 changed files with 824 additions and 20 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ target_include_directories(iniparser
# alex4

add_executable(alex4
src/main.c
src/main.h
src/alex4.h
src/actor.c
src/actor.h
src/bullet.c
Expand Down Expand Up @@ -76,12 +75,14 @@ add_executable(alex4
src/token.h
src/unix.c
src/unix.h
src/sdl_wrapper.c
src/sdl_wrapper.h
src/sound.c
src/sound.h
src/misc.c
src/misc.h
src/main.c
src/main.h
src/sdl_port.c
src/sdl_port.h
)

# optional
Expand Down
10 changes: 10 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# TODO

- migrate `set_display_switch_*` functions, pause when focus lost
- sin/cos tables, fixtoi, itofix
- custom ending is broken
- pointer in menu does not wobble
- keyboard polling
- gamepad support
- possible memleaks in data loading/unloading
- masked_blit/blit do not make a difference in transparency
38 changes: 38 additions & 0 deletions src/alex4.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**************************************************************
* _____ __ _____ *
* / _ \ | | ____ ___ ___ / | | *
* / /_\ \ | | _/ __ \ \ \/ / / | |_ *
* / | \| |__\ ___/ > < / ^ / *
* \____|__ /|____/ \___ >/__/\_ \ \____ | *
* \/ \/ \/ |__| *
* *
**************************************************************
* (c) Free Lunch Design 2003 *
* by Johan Peitz - http://www.freelunchdesign.com *
* SDL2 port by carstene1ns - https:/f4ke.de/dev/alex4 *
**************************************************************
* This source code is released under the The GNU *
* General Public License (GPL). Please refer to the *
* document license.txt in the source directory or *
* http://www.gnu.org for license information. *
**************************************************************/

#ifndef ALEX4_H
#define ALEX4_H

// version string
#define GAME_TITLE_STR "Alex the Allegator 4"
#define GAME_VERSION_STR "v1.3"

#ifndef DATADIR
#define DATADIR "./"
#endif

// debug stuff
//#define SHOW_TILES
//#define NO_SOUND
//#define DEBUG_SOUND
//#define NO_INTRO
//#define NO_CREDITS

#endif
16 changes: 0 additions & 16 deletions src/resource.h

This file was deleted.

Loading

0 comments on commit 824598d

Please sign in to comment.