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
org 0x10 | |
Console: | |
.vector: rb 2 | |
.read: rb 1 | |
.pad: rb 4 | |
.type: rb 1 | |
.write: rb 1 | |
.error: rb 1 | |
org 0x100 |
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
import random | |
import math | |
import PIL.Image | |
funcs = [ | |
('add', 2, 1), | |
('mult', 2, 1), | |
#('atan2', 2, 1), | |
#('floor', 1, 1), | |
#('ceil', 1, 1), |
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 "raylib.h" | |
#include <math.h> | |
const int WIDTH = 1800; | |
const int HEIGHT = 900; | |
const float MIN_ANGLE = 0.0f; | |
const float MAX_ANGLE = M_PI/1.5; | |
void DrawTree(float, float, float, float); |
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
<?xml version="1.0" encoding="utf-8" standalone="no"?> | |
<manifest xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android" package="org.example.pongpong"> | |
<uses-sdk android:minSdkVersion="29" | |
android:targetSdkVersion="29" /> | |
<uses-permission android:name="android.permission.SET_RELEASE_APP"/> | |
<application android:debuggable="true" android:hasCode="false" android:label="PongPong" tools:replace="android:icon,android:theme,android:allowBackup,label" android:icon="@mipmap/icon"> | |
<activity android:configChanges="keyboardHidden|orientation" android:label="PongPong" android:name="android.app.NativeActivity" android:exported="true"> | |
<meta-data android:name="android.app.lib_name" android:value="pongpong"/> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN"/> |
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 <stdlib.h> | |
#include <raylib.h> | |
#include <raymath.h> | |
const int SCREEN_WIDTH = 600; | |
const int SCREEN_HEIGHT = 600; | |
const int BOX_SIZE = 30; | |
#define BALL_SIZE (BOX_SIZE/3) |
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
#!/bin/sh | |
set -xe | |
go build -buildmode c-shared -o libhello.so hello.go | |
.venv/bin/python build_hello.py |
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
cmake_minimum_required(VERSION 3.18.1) | |
project("raylibtestproject") | |
add_library(main | |
SHARED | |
raylibtestcode.c) # my source files | |
set(PLATFORM Android CACHE STRING "" FORCE) | |
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Hello world</title> | |
</head> | |
<body> | |
<canvas id="c" width="640" height="480"></canvas> | |
<script src="lib/twgl-full.js"></script> | |
<script src="texturebatch.js"></script> |
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
#!/bin/bash | |
WIDTH=1280 | |
HEIGHT=720 | |
XPOS=1500 | |
YPOS=200 | |
read KEY < ~/.twitch_key | |
URL="rtmp://live-prg.twitch.tv/app/$KEY" |