This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./run.js --help | |
usage: run.js [-h] [-v] [--no-caching] [--staging] [--port PORT] | |
[--api-port API_PORT] | |
{build,start,dev,lint,clean,copy} ... | |
Builds and runs the main site code. The primary function of the server is to | |
serve an HTML page with the contents returned by react-router. Requests to | |
/api/* are proxied to the API server, running at localhost:3030. | |
This server requires a more heavy-duty httpd like Apache or Nginx as reverse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2015, Michiel Sikma <[email protected]> | |
# MIT License | |
CC = $(DJGPP_CC) | |
VENDOR = vendor | |
CFLAGS = | |
LDFLAGS = | |
TITLE = CeeGee Engine | |
BIN = ceegee.exe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Copyright (C) 2015, Michiel Sikma <[email protected]> | |
# MIT License | |
DEPS=( | |
'argparse::https://github.com/Cofyc/argparse.git::e1277bf1e3f47663fad54f84ca723db7688630d4' | |
'allegro5::https://github.com/liballeg/allegro5.git::4.4' | |
'xorshift::https://github.com/msikma/xorshift::e06c8e131c1b7bce0eea899a4235aba3ba53b6e5' | |
) | |
if [ ! -d "vendor" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/nearptr.h> | |
#include <dos.h> | |
#include "defs.h" | |
#include "video.h" | |
byte *VGA = (byte *)0xA0000; // Pointer to the video memory. | |
word *SYS_CLOCK = (word *)0x046C; // The 18.2hz internal clock. | |
// Add the base address. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = $(DJGPP_CC) | |
VENDOR = vendor | |
CFLAGS = | |
LDFLAGS = | |
BIN = game1.exe | |
SRCDIR = src | |
OBJDIR = obj | |
DISTDIR = dist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc -c -o src/video.o src/video.c | |
src/video.c: In function 'set_mode': | |
src/video.c:25:16: error: storage size of 'regs' isn't known | |
union REGS regs; | |
^ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2015, Michiel Sikma <[email protected]> | |
* MIT License | |
*/ | |
#ifndef __GAME1_VIDEO__ | |
#define __GAME1_VIDEO__ | |
void plot_pixel(int x, int y, byte color); | |
void set_mode(byte mode); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2015, Michiel Sikma <[email protected]> | |
* MIT License | |
*/ | |
#include "video.h" | |
byte *VGA = (byte *)0xA0000; // Pointer to the video memory. | |
word *SYS_CLOCK = (word *)0x046C; // The 18.2hz internal clock. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = $(DJGPP_CC) | |
VENDOR = vendor | |
CFLAGS = | |
LDFLAGS = | |
BIN = game1.exe | |
SRCDIR = src | |
OBJDIR = obj | |
DISTDIR = dist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Webpack config for creating the production bundle. | |
var path = require('path'); | |
var webpack = require('webpack'); | |
var CleanPlugin = require('clean-webpack-plugin'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
var strip = require('strip-loader'); | |
// Stats plugin. | |
var writeStats = require('./utils/write-stats'); |