initial commit
This commit is contained in:
commit
a4ef5b27ce
|
@ -0,0 +1 @@
|
||||||
|
/target
|
|
@ -0,0 +1,8 @@
|
||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/skunkrts.iml" filepath="$PROJECT_DIR$/.idea/skunkrts.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="CPP_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,9 @@
|
||||||
|
[package]
|
||||||
|
name = "skunkrts"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
skunk2d = {path = "../skunk2d"}
|
Binary file not shown.
After Width: | Height: | Size: 1001 B |
|
@ -0,0 +1,26 @@
|
||||||
|
use skunk2d::{Event, Image, run, WindowState};
|
||||||
|
|
||||||
|
struct Game {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
impl skunk2d::Game for Game {
|
||||||
|
fn new(window_state: &mut WindowState) -> Self {
|
||||||
|
window_state.scramble_palette();
|
||||||
|
Game {}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn update(&mut self, window_state: &mut WindowState) {
|
||||||
|
}
|
||||||
|
|
||||||
|
fn on_event(&mut self, window_state: &mut WindowState, event: Event) {
|
||||||
|
}
|
||||||
|
|
||||||
|
fn draw(&self, target: &mut Image) {
|
||||||
|
target.clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
run::<Game>(640, 360);
|
||||||
|
}
|
Loading…
Reference in New Issue