initial commit

This commit is contained in:
dani 2023-07-03 14:58:25 +00:00
commit a4ef5b27ce
9 changed files with 1662 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

8
.idea/.gitignore vendored Normal file
View File

@ -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

8
.idea/modules.xml Normal file
View File

@ -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>

11
.idea/skunkrts.iml Normal file
View File

@ -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>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

1593
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

9
Cargo.toml Normal file
View File

@ -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"}

BIN
assets/hex2.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1001 B

26
src/main.rs Normal file
View File

@ -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);
}