# HG changeset patch # User Matti Hamalainen # Date 1348788473 -10800 # Node ID c12a8dda22bb3d2cf1ccbbb5500b36aac861404e Initial import. diff -r 000000000000 -r c12a8dda22bb Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Fri Sep 28 02:27:53 2012 +0300 @@ -0,0 +1,16 @@ +# +# Generic UNIX targets +# +SDL_CFLAGS=`sdl-config --cflags` +SDL_LDFLAGS=`sdl-config --static-libs` + +RANLIB=ranlib + +DMLIB = ./dmlib/ +BINPATH ?= ./exe/ +OBJPATH ?= ./unix/ +EXEEXT ?= + +BINARIES=krapula + +include $(DMLIB)Makefile.gen diff -r 000000000000 -r c12a8dda22bb Makefile.w32 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile.w32 Fri Sep 28 02:27:53 2012 +0300 @@ -0,0 +1,26 @@ +# +# For win32 version cross-compilation with MinGW suite @ Linux +# +MINGW_PREFIX=i686-w64-mingw32- +MINGW_PATH=/usr/i686-w64-mingw32 + +DMLIB = ./dmlib/ +BINPATH=./exe/ +OBJPATH=./win32/ +EXEEXT=.exe + +# C-compiler, flags and linker flags +CC=$(MINGW_PREFIX)gcc +AR=$(MINGW_PREFIX)ar +RANLIB=$(MINGW_PREFIX)ranlib +RM=rm + +SDL_CFLAGS=`$(MINGW_PATH)/bin/sdl-config --cflags` +SDL_LDFLAGS=`$(MINGW_PATH)/bin/sdl-config --libs` -lSDL -L$(BINPATH) + +#CFLAGS=-mwindows +LDFLAGS=-lmingw32 -s + +BINARIES=krapula + +include $(DMLIB)Makefile.gen diff -r 000000000000 -r c12a8dda22bb Makefile.w64 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile.w64 Fri Sep 28 02:27:53 2012 +0300 @@ -0,0 +1,24 @@ +# +# For win32 version cross-compilation with MinGW suite @ Linux +# +MINGW_PREFIX=x86_64-w64-mingw32- +MINGW_PATH=/usr/x86_64-w64-mingw32 + +BINPATH=./exe/ +OBJPATH=./win64/ +EXEEXT=-w64.exe + +# C-compiler, flags and linker flags +CC=$(MINGW_PREFIX)gcc +AR=$(MINGW_PREFIX)ar +RANLIB=$(MINGW_PREFIX)ranlib +RM=rm + +SDL_CFLAGS=`$(MINGW_PATH)/bin/sdl-config --cflags` +SDL_LDFLAGS=`$(MINGW_PATH)/bin/sdl-config --libs` -lSDL -L$(BINPATH) + +#CFLAGS=-mwindows +LDFLAGS=-lmingw32 -s + + +include Makefile.gen diff -r 000000000000 -r c12a8dda22bb README.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.txt Fri Sep 28 02:27:53 2012 +0300 @@ -0,0 +1,12 @@ +Lauantai Aamun Krapula +(c) 2012 Anciat Prodz & TNSP + +a software rendering demo for x86 Linux and Windows (win32 binary). + +"code" & "gfx" by ccr +"music" by rubberj +featuring nosfe + +utilizes libSDL, zlib and a modified version of stb_image.c + +greets: pwp, iso, bilotrip, trilobit, jynttaveikot and other elites diff -r 000000000000 -r c12a8dda22bb build.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build.sh Fri Sep 28 02:27:53 2012 +0300 @@ -0,0 +1,15 @@ +#!/bin/sh +CPWD=`pwd` +CEXE=krapula +CBINPATH=exe/ + +for arch in i686 core2; do + make -f Makefile clean + make -f Makefile EXTRA_CFLAGS="-march=$arch" + mv "$CPWD/${CBINPATH}${CEXE}.bin" "$CPWD/${CBINPATH}${CEXE}-${arch}.bin" + strip "$CPWD/${CBINPATH}${CEXE}-${arch}.bin" + + make -f Makefile.w32 clean + make -f Makefile.w32 EXTRA_CFLAGS="-march=$arch" + mv "$CPWD/${CBINPATH}${CEXE}.exe" "$CPWD/${CBINPATH}${CEXE}_${arch}.exe" +done diff -r 000000000000 -r c12a8dda22bb config.mak --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config.mak Fri Sep 28 02:27:53 2012 +0300 @@ -0,0 +1,81 @@ +# Build engine tests and tools? (Please notice that what +# actually gets built it also affected by other options) +DM_BUILD_TESTS=no +DM_BUILD_TOOLS=yes + +# Build with runtime asserts? +DM_USE_ASSERTS=yes + +# Use plain C routines? +DM_USE_C=yes + +# Use MMX/SSE SIMD assembler routines? +DM_USE_SIMD=no + + +DMRES_PACKFS=yes +DMRES_STDIO=no +DMRES_MEMIO=no + + +DM_GFX_TTF_TEXT=no +DM_GFX_LINES=no +DM_GFX_BLITS=yes +DM_GFX_MISC=yes + +DM_GFX_8BIT=yes +DM_GFX_32BIT=yes + + +### +### General build options for miniJSS +### +JSS=yes + +# Build a special "light"/minimized version by removing all +# error messages and few other things. +JSS_LIGHT=no + +# Build with extra debugging code? (disabled by JSS_LIGHT=yes) +JSS_DEBUG=no + + +### Support loading of XM-format module files +JSS_SUP_XM=yes + + +### Generic support of JSSMOD-format modules +JSS_SUP_JSSMOD=yes + +# Enable support for different pattern storage modes +# in the JSSMOD _loader_. Saving in xm2jss is not affected. +JSSMOD_FLAGS = -DJM_SUP_PATMODE_ALL + +# If SUP_PATMODE_ALL is not defined, then you can enable modes individually +# by uncommenting lines below. Refer to 'xm2jss --help' for mode information. +#JSSMOD_FLAGS += -DJM_SUP_PATMODE_1 +#JSSMOD_FLAGS += -DJM_SUP_PATMODE_2 +#JSSMOD_FLAGS += -DJM_SUP_PATMODE_3 +#JSSMOD_FLAGS += -DJM_SUP_PATMODE_4 +#JSSMOD_FLAGS += -DJM_SUP_PATMODE_5 + +# Enable ext. instrument, instrument header and sampledata loading: +# (if you disable these, you better know what you are doing.) +JSSMOD_FLAGS += -DJM_SUP_EXT_INSTR +JSSMOD_FLAGS += -DJM_SUP_INSTR +JSSMOD_FLAGS += -DJM_SUP_SAMPLES + + +### +### Locking/thread support +### +JSS_SUP_THREADS=yes + + +### +### Audio mixing routine support +### +# The actually used functions are determined run-time, so these +# options only enable what is compiled into the library. +JSS_SUP_MIX_C=yes +JSS_SUP_MIX_X86=no diff -r 000000000000 -r c12a8dda22bb graphics/anciat.xcf Binary file graphics/anciat.xcf has changed diff -r 000000000000 -r c12a8dda22bb graphics/credits.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphics/credits.svg Fri Sep 28 02:27:53 2012 +0300 @@ -0,0 +1,383 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + ccr + ccr + + + rubberj + rubberj + + + mukana myös + mukana myös + + + nosfe + nosfe + + + & + & + + + koodin + koodin + + + graffan + graffan + + + teki + teki + + + pimputti + pimputti + + + musan + musan + + + diff -r 000000000000 -r c12a8dda22bb graphics/gay.xcf Binary file graphics/gay.xcf has changed diff -r 000000000000 -r c12a8dda22bb graphics/greetings.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphics/greetings.svg Fri Sep 28 02:27:53 2012 +0300 @@ -0,0 +1,210 @@ + + + + + + + + + + image/svg+xml + + + + + + + + pwp + ISO + trilobit + bilotrip + + + kivoja <3 + kivoja <3 + + + pwp + ISO + trilobit + bilotrip + + + jynttaveikot + jynttaveikot + + + diff -r 000000000000 -r c12a8dda22bb graphics/logo.xcf Binary file graphics/logo.xcf has changed diff -r 000000000000 -r c12a8dda22bb pakkaa.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pakkaa.sh Fri Sep 28 02:27:53 2012 +0300 @@ -0,0 +1,8 @@ +#!/bin/sh +CPWD=`pwd` +PACKED="$CPWD/exe/packed" +if test ! -x "$PACKED"; then + PACKED="${PACKED}.bin" +fi + +cd "$CPWD/data" && $PACKED -c -p "$CPWD/exe/orvellys.dat" * diff -r 000000000000 -r c12a8dda22bb shotti.jpg Binary file shotti.jpg has changed diff -r 000000000000 -r c12a8dda22bb shotti.png Binary file shotti.png has changed