Skip to content

Instantly share code, notes, and snippets.

{
"presets": [
"@babel/preset-env",
"@babel/preset-typescript"
],
"env": {
"test": {
"plugins": [
"@babel/plugin-proposal-decorators"
]
04-26 14:20:18.228 9523-9917/me.blackwolf12333.appcki D/printHeaders: null: [HTTP/1.1 200 OK]
04-26 14:20:18.229 9523-9917/me.blackwolf12333.appcki D/printHeaders: Access-Control-Allow-Headers: [X-Requested-With, X-AUTH-TOKEN, Content-Type]
04-26 14:20:18.229 9523-9917/me.blackwolf12333.appcki D/printHeaders: Access-Control-Allow-Methods: [POST, GET, PUT, OPTIONS, DELETE]
04-26 14:20:18.229 9523-9917/me.blackwolf12333.appcki D/printHeaders: Access-Control-Allow-Origin: [*]
04-26 14:20:18.229 9523-9917/me.blackwolf12333.appcki D/printHeaders: Access-Control-Expose-Headers: [X-AUTH-TOKEN]
04-26 14:20:18.234 9523-9917/me.blackwolf12333.appcki D/printHeaders: Access-Control-Max-Age: [3600]
04-26 14:20:18.234 9523-9917/me.blackwolf12333.appcki D/printHeaders: Cache-Control: [no-cache, no-store, max-age=0, must-revalidate]
04-26 14:20:18.234 9523-9917/me.blackwolf12333.appcki D/printHeaders: Content-Type: [application/json;charset=UTF-8]
04-26 14:20:18.235 9523-9917/me.blackwolf12333.appcki D/printHeaders: Date: [T
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="uscki.appcki.wilson" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Wilson</name>
<description>
An Ionic Framework and Cordova project.
</description>
<author email="[email protected]" href="http://wilson.uscki.nl">
Appcki
</author>
<content src="index.html"/>
int main() {
// initialize sdl before this
SDL_Init(SDL_INIT_EVERYTHING);
bool running = true;
while (running) {
while (SDL_PollEvent(&e)){
//If user closes the window
if (e.type == SDL_QUIT){
running = false;
#include "main.h"
#include "gamescene.h"
#include <iostream>
#include <stdlib.h>
#define SCREEN_WIDTH 1024
#define SCREEN_HEIGHT 768
#define INIT_FAILED (-1)
#define WINDOW_INIT_FAILED (-2)
extends Node2D
# member variables here, example:
# var a=2
# var b="textvar"
func _ready():
set_process_input(true)
pass
#include "main.h"
#include <iostream>
#include <SOIL/SOIL.h>
#define SCREEN_WIDTH 1024
#define SCREEN_HEIGHT 768
#define GLSL(src) "#version 150 core\n" #src
void checkGLError2(int line, std::string file) {
@blackwolf12333
blackwolf12333 / main.cpp
Created January 10, 2015 20:11
just the initGL function
void Main::initGL() {
/* Request opengl 3.2 context.
* SDL doesn't have the ability to choose which profile at this time of writing,
* but it should default to the core profile */
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
/* Turn on double buffering with a 24bit Z buffer.
* You may need to change this to 16 or 32 for your system */
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
#include "texture.h"
Texture::Texture(std::string path, bool loadNow) {
//Initialize texture ID
mTextureID = 0;
//Initialize texture dimensions
width = 0;
height = 0;
extends Node2D
# member variables here, example:
# var a=2
# var b="textvar"
func _ready():
set_process(true)
get_node("player").connect("body_enter", self, "_on_player_body_enter")
pass