forked from itslauri/amiga-startup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
40 lines (33 loc) · 915 Bytes
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <stdio.h>
#include "system/logger.h"
#include "scenes/3d.h"
#include "scenes/dots.h"
#include "scenes/feedyourhead.h"
extern Start();
int main()
{
printf("\nFind your tr0ffel and romkugler - here we go!..--~~~>>0\n\n(kom saa demo)\n\n\n");
SERIAL_LOG("\n <Begin debug> \n")
Start();
SERIAL_LOG("\n <End debug> \n")
return 0;
}
void maintick(__reg("a0") char* screen, __reg("d0") int sync)
{
if(sync > 0 && sync < 10000)
{
//tick_feedyourhead(screen, sync);
tick_3d(screen);
//tick_dots(screen, sync);
}
}
void drawback(__reg("a0") unsigned char *screen, __reg("a1") unsigned char *texture)
{
const int width = 320;
// naive fill screen, but it works - there is texture!
for(int x = 0; x < 320; x++) {
for(int y = 0; y < 176; y++) {
screen[x + y * width] = texture[x + y * width];
}
}
}