Skip to content

Instantly share code, notes, and snippets.

View ricardoquesada's full-sized avatar

Ricardo Quesada ricardoquesada

View GitHub Profile
@ricardoquesada
ricardoquesada / test.c
Created February 6, 2015 19:09
hello world in C
#include <stdio.h>
int main(int argc, char **argv)
{
printf("hello world!\n");
return 0;
}
Copyright (C) 2013 Henry van Merode. All rights reserved.
Copyright (C) 2015 Chukong Technologies.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARI
@ricardoquesada
ricardoquesada / main.cpp
Last active January 29, 2016 03:06
cocos2d-x with android GL trace support
#include "AppDelegate.h"
#include "cocos2d.h"
#include "platform/android/jni/JniHelper.h"
#include <jni.h>
#include <android/log.h>
#include <dlfcn.h>
#define LOG_TAG "main"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
@ricardoquesada
ricardoquesada / Application.mk
Created January 29, 2016 03:07
Application.mk with armeabi-v7a support
APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic
APP_ABI := armeabi-v7a
ifeq ($(NDK_DEBUG),1)
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
APP_OPTIM := debug
@ricardoquesada
ricardoquesada / mega65_gaming_install_guide.md
Last active October 15, 2021 02:55
Instructions for the Mega65 gaming competition

Mega65 gaming competition: how to run the emulator

If you want to run the Mega65 emulator for the [Mega65 x-mas gaming competition][1] follow these steps:

  1. Download the mega65 emulator from here: https://github.lgb.hu/xemu/
  2. Run the xmega65 binary (not the x65 one!)
  3. It will complain about missing rom files and missing SD
    • Click Ok, and let it create the SD image
  • It will enter into an infinite boot loop (don't worry, that's Ok).