I found source codes of the famous and my favorite game.
https://computerarcheology.com/Arcade/SpaceInvaders/Code.html
I'm trying to move it by Ruby on DXOpal.
tako_src = <<EOS | |
1C00: 00 00 39 79 7A 6E EC FA FA EC 6E 7A 79 39 00 00 | |
EOS | |
beam_src = <<EOS | |
1C90: 0F ; ++++.... | |
EOS | |
@field = Array.new(16) { Array.new(32,0) }#[([false] * 32).dup] * 16 |
import SwiftUI | |
struct ContentView: View { | |
@State var isPresented = false | |
var body: some View { | |
VStack { | |
Image(systemName: "globe") | |
.imageScale(.large) | |
.foregroundStyle(.tint) | |
Text("Hello, world!") |
require 'sinatra' | |
require 'sinatra/reloader' if development? | |
require 'haml' | |
before do | |
response.headers['Access-Control-Allow-Origin'] = 'https://irboard.itosoft.com' | |
end | |
get '/' do | |
haml :index |
% racc parser.y -o parser.rb | |
% ruby parser.rb | |
1+2-3*4/5 |
require 'plc_access' | |
plc = PlcAccess::Protocol::Mitsubishi::McProtocol.new host:"192.168.0.10" | |
plc["M0"] = true | |
plc["M0"] # => true | |
plc["M0", 10] # => [true, false, ..., false] | |
plc["D0"] = 123 | |
plc["D0"] # => 123 |
#include <Arduino.h> | |
void setup() { | |
Serial.begin(115200); | |
} | |
void loop() { | |
Serial.print("."); | |
delay(1000); | |
} |
I found source codes of the famous and my favorite game.
https://computerarcheology.com/Arcade/SpaceInvaders/Code.html
I'm trying to move it by Ruby on DXOpal.
#include <Arduino.h> | |
#include <M5Unified.h> | |
#define LORA_M0_PIN 21 | |
#define LORA_M1_PIN 25 | |
#define LORA_RX_PIN 23 | |
#define LORA_TX_PIN 19 | |
#define BAUDRATE_1200 0x00 |
#include <Arduino.h> | |
#include <M5Unified.h> | |
#include <WiFi.h> | |
#include <HTTPClient.h> | |
#include <FastLED.h> | |
#define LED_PIN 27 | |
#define NUM_LEDS 1 | |
#define LORA_M0_PIN 21 |
#include <Arduino.h> | |
#include <M5Unified.h> | |
#include <string.h> | |
#define LORA_RX_PIN 7 | |
#define LORA_TX_PIN 6 | |
#define GPS_RX_PIN 38 | |
#define GPS_TX_PIN 39 | |
#define REC_BUF_SIZE 128 |