Mercurial > hg > forks > 3x666-SDL
comparison 3x666.c @ 7:4c1d187d0cf6
Moar.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 15 Mar 2013 05:03:26 +0200 |
parents | 4dd2b0c81ad2 |
children | bbc901af24fb |
comparison
equal
deleted
inserted
replaced
6:20534e52d7db | 7:4c1d187d0cf6 |
---|---|
4 #include <unistd.h> | 4 #include <unistd.h> |
5 #include <string.h> | 5 #include <string.h> |
6 #include "config.h" | 6 #include "config.h" |
7 #include "3xfont.h" | 7 #include "3xfont.h" |
8 | 8 |
9 extern int TIKLGT; | |
10 | |
11 /** typedefs **/ | 9 /** typedefs **/ |
12 | 10 |
13 typedef struct | 11 typedef struct |
14 { | 12 { |
15 signed int x, y, z; | 13 signed int x, y, z; |
16 } vec3d; | 14 } vec3d; |
15 | |
16 int TIKLGT; | |
17 | 17 |
18 char *ruutu; | 18 char *ruutu; |
19 int *mxbuf; | 19 int *mxbuf; |
20 | 20 |
21 int *ballz; | 21 int *ballz; |
779 ruutu = malloc(BUFH * BUFW * sizeof(char)); | 779 ruutu = malloc(BUFH * BUFW * sizeof(char)); |
780 preball(); | 780 preball(); |
781 | 781 |
782 srand((int) time(NULL)); | 782 srand((int) time(NULL)); |
783 | 783 |
784 #define MAXROWLGT TIKLGT*ROWTIX | |
785 | |
786 oxl_init_audio(ROWTIX); | 784 oxl_init_audio(ROWTIX); |
787 TIKLGT = AUFREQ / DEMOHZ; | 785 TIKLGT = AUFREQ / DEMOHZ; |
788 mxbuf = malloc(MAXROWLGT * sizeof(int)); | 786 mxbuf = malloc(MAXROWLGT * sizeof(int)); |
789 audio_precalcs(); | 787 audio_precalcs(); |
790 | 788 |