Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

Converted Penelope's Javascript Joysticks to C# (c sharp)

$
0
0
Oy, this is such a PITA.. if I understood the compiler chain better, perhaps I'd be able to automate the conversion (a boy can dream, can't he?)

In the mean time, running the following search/replace in vim (what else?) in the following order got me about 85% of the way there:

%s/var \(.*\) : \(.*\) = \(.*\);/\2 \1 = \3;/g
%s/var \(.*\) : \(.*\);/\2 \1;/g
%s/function \(.*\)() : \(.*\)/public \2 \1()/g
%s/function \(.*\)/public void \1
%s/boolean/bool

i was too lazy to figure...

Converted Penelope's Javascript Joysticks to C# (c sharp)

Viewing all articles
Browse latest Browse all 10823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>