Skip to content

Commit

Permalink
Merge pull request #17 from dave-kennedy/master
Browse files Browse the repository at this point in the history
Line endings
  • Loading branch information
orangeduck committed May 14, 2016
2 parents 0cc59b4 + 52b6ea6 commit f78964d
Show file tree
Hide file tree
Showing 70 changed files with 13,699 additions and 13,692 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
@@ -0,0 +1,7 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text
36 changes: 18 additions & 18 deletions demos/platformer/include/character.h
@@ -1,19 +1,19 @@
#ifndef character_h
#define character_h

#include "corange.h"

typedef struct {
vec2 velocity;
vec2 position;
float flap_timer;
bool facing_left;
} character;

character* character_new();
void character_delete(character* c);

void character_update(character* c);
void character_render(character* c, vec2 camera_position);

#ifndef character_h
#define character_h

#include "corange.h"

typedef struct {
vec2 velocity;
vec2 position;
float flap_timer;
bool facing_left;
} character;

character* character_new();
void character_delete(character* c);

void character_update(character* c);
void character_render(character* c, vec2 camera_position);

#endif
30 changes: 15 additions & 15 deletions demos/platformer/include/coin.h
@@ -1,16 +1,16 @@
#ifndef coin_h
#define coin_h

#include "corange.h"

typedef struct {
vec2 position;
} coin;

coin* coin_new();
void coin_delete(coin* c);

void coin_render(coin* c, vec2 camera_position);


#ifndef coin_h
#define coin_h

#include "corange.h"

typedef struct {
vec2 position;
} coin;

coin* coin_new();
void coin_delete(coin* c);

void coin_render(coin* c, vec2 camera_position);


#endif
102 changes: 51 additions & 51 deletions demos/platformer/levels/demo.level
@@ -1,52 +1,52 @@
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###########################################R###################################################################################
###########################R####################################################R##############################################
########################################"""####""######"""""""""###############################################################
#######################""""""""""""""""" """" """""" ##################"""""########################################
####################### {^} _______ ____ "######R#########" ""######################################
#######################__ (') ~~~~~~~________~~~~__ "#############"" {^} ""####################################
#################R#####~~@____@.____!____#######~~~~~~~~####~~. ""########### (') "##R################################
#########################~~~~~~~~~~~~~~~~################R####~_ _###########___ |_@_ ""#################################
#############################################R#################~ _~########R##~~~_.!~~~_ """""############################
########R######################"""""""""#######################" ~#####R#########~~~###~___ "#R#########################
##################R######"""""" """""""###""""#####"""" ""##"""################~~~ ###########################
####################""""" """ """"" "" """"#####"""""""""" __.###"""##########R##########
#################""" {^} {^} """"" ~~~#"" ""###################
###############"" (') (') {^} """ "##################
###############_ | _.@__ | (') {^} ##################
###############~ | ~~~~~_ .@!___ | (') ####R#############
################__db | "####~ ~~~~~~ __|._ | _##################
################~~hu__ _.!_ """" "##"" __~~!~~ | ~##################
##########R#######~~~~ ~~~~_ "" {^} ~~#R~## {^} | _.###################
################""""" "###~ {^} {^} (') """"" (') !_~~###################
################_ "#"" (') (') | {^} {^} | {^} _~~#####################
################~ {^} " | {^} \---* {^}(') (') | (') ~#######################
###############_ ('){^} | (') {^} | (') | | {^} | | "####R#################
###############~_ | (') | __@.___ | (') | | | | (') | | ____######################
################~_ | | {^} | _@~~~~~~~___ | |{^} |{^}+--/ | | +--/ ~~~~######################
#################~ +--/ {^}(') | ~~#######~~~____ \---*(') |(')| \--* | #R#############R#########
################_ | (') | !_############~~~~ | | | \-* {^} | |{^} "########################
################~@_| \--* ___._~~################_ +-/ | | (') \--*(') ########################
#########R#######~~| {^} | ~~~~~#########R########~ | | | | +-/ ########################
###################! (') _!___@####R#############""""" \----* +--/ __!.____@########################
###################~___ | ___~~~~~~################## | | ~~~~~~~~~########################
####################~~~_!.____@______~~~#######################" +---/ """"""###########################
################R######~~~~~~~~~~~~~~######################R###__@_ | ###R#######################
###############################################################~~~~.____ | _______###########################
############################R###################R##################~~~~~______.!___ __..~~~~~~~###########################
########################################################################~~~~~~~~~~~______~~~~##################################
######################################R##########################R#################~~~~~~######################################
###########R###################################################################################################################
#############################################################################################R#################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###########################################R###################################################################################
###########################R####################################################R##############################################
########################################"""####""######"""""""""###############################################################
#######################""""""""""""""""" """" """""" ##################"""""########################################
####################### {^} _______ ____ "######R#########" ""######################################
#######################__ (') ~~~~~~~________~~~~__ "#############"" {^} ""####################################
#################R#####~~@____@.____!____#######~~~~~~~~####~~. ""########### (') "##R################################
#########################~~~~~~~~~~~~~~~~################R####~_ _###########___ |_@_ ""#################################
#############################################R#################~ _~########R##~~~_.!~~~_ """""############################
########R######################"""""""""#######################" ~#####R#########~~~###~___ "#R#########################
##################R######"""""" """""""###""""#####"""" ""##"""################~~~ ###########################
####################""""" """ """"" "" """"#####"""""""""" __.###"""##########R##########
#################""" {^} {^} """"" ~~~#"" ""###################
###############"" (') (') {^} """ "##################
###############_ | _.@__ | (') {^} ##################
###############~ | ~~~~~_ .@!___ | (') ####R#############
################__db | "####~ ~~~~~~ __|._ | _##################
################~~hu__ _.!_ """" "##"" __~~!~~ | ~##################
##########R#######~~~~ ~~~~_ "" {^} ~~#R~## {^} | _.###################
################""""" "###~ {^} {^} (') """"" (') !_~~###################
################_ "#"" (') (') | {^} {^} | {^} _~~#####################
################~ {^} " | {^} \---* {^}(') (') | (') ~#######################
###############_ ('){^} | (') {^} | (') | | {^} | | "####R#################
###############~_ | (') | __@.___ | (') | | | | (') | | ____######################
################~_ | | {^} | _@~~~~~~~___ | |{^} |{^}+--/ | | +--/ ~~~~######################
#################~ +--/ {^}(') | ~~#######~~~____ \---*(') |(')| \--* | #R#############R#########
################_ | (') | !_############~~~~ | | | \-* {^} | |{^} "########################
################~@_| \--* ___._~~################_ +-/ | | (') \--*(') ########################
#########R#######~~| {^} | ~~~~~#########R########~ | | | | +-/ ########################
###################! (') _!___@####R#############""""" \----* +--/ __!.____@########################
###################~___ | ___~~~~~~################## | | ~~~~~~~~~########################
####################~~~_!.____@______~~~#######################" +---/ """"""###########################
################R######~~~~~~~~~~~~~~######################R###__@_ | ###R#######################
###############################################################~~~~.____ | _______###########################
############################R###################R##################~~~~~______.!___ __..~~~~~~~###########################
########################################################################~~~~~~~~~~~______~~~~##################################
######################################R##########################R#################~~~~~~######################################
###########R###################################################################################################################
#############################################################################################R#################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################
###############################################################################################################################

0 comments on commit f78964d

Please sign in to comment.