This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use bevy::prelude::*; | |
| use std::collections::HashMap; | |
| // Planet Data Resource | |
| #[derive(Resource, Clone)] | |
| pub struct PlanetData { | |
| pub radius: f32, | |
| pub lod_focus: Vec3, | |
| pub max_lod: usize, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import bevy_shader_utils::simplex_noise_3d | |
| struct CustomMaterial { | |
| // color: vec4<f32>, | |
| time: f32, | |
| }; | |
| @group(1) @binding(0) | |
| var<uniform> material: CustomMaterial; | |
| @group(1) @binding(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pub struct ActorAttrs { | |
| pub strength: u32, | |
| pub agility: u32, | |
| pub intelligence: u32, | |
| pub charisma: u32, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| What’s Going On With c1c2s in nodes? | |
| In your debug logs, nodes appears as an array of objects where one of the properties is c1c2s, and it's currently an empty array (Array(0)). While I couldn’t load the exact file content, based on naming conventions in these transistor-level simulation projects, c1c2s almost certainly refers to the two "clock phases" or control lines used in CMOS transistor circuits—commonly known as C1 and C2. | |
| Context in Visual-ULA / Visual-ARM Systems: | |
| The original Visual 6502 project reconstructs transistor-level behavior from silicon imagery to simulate how the 6502 chip functions visualizing every transistor, gate, and clock phase controlling them | |
| visual6502.org | |
| visual6502.org | |
| . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| let htlm = HtmlRichText(path="index.html") | |
| html.load | |
| let mutableRichText = MutableRichText(richText) | |
| mutableRichText.append("Hello, ") | |
| mutableRichTextInheritance | |
| RichText | |
| └── MutableRichText | |
| └── FileRichText |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| let htlm = HtmlRichText(path="index.html") | |
| html.load | |
| let mutableRichText = MutableRichText(richText) | |
| mutableRichText.append("Hello, ") | |
| mutableRichTextInheritance | |
| RichText | |
| └── MutableRichText | |
| └── FileRichText |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| let htlm = HtmlRichText(path="index.html") | |
| html.load | |
| let mutableRichText = MutableRichText(richText) | |
| mutableRichText.append("Hello, ") | |
| mutableRichTextInheritance | |
| RichText | |
| └── MutableRichText | |
| └── FileRichText |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[derive(Debug)] | |
| struct Player { | |
| state: State, | |
| } | |
| impl Player { | |
| fn new() -> Self { | |
| Self { state: PlayerCharacterInstance } | |
| } | |
| fn collect(&mut self, ability: Transition) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/src/event.rs | |
| https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/src/app_handle.rs | |
| https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/src/pointer.rs | |
| https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/src/app_delegate.rs | |
| https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/examples/layout/src/right_sidebar.rs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //https://github.com/StarArawn/bevy_ecs_tilemap/blob/de8d005331dde7d9ebb8c4fe1b36769b84e44be5/examples/mouse_to_tile.rs#L291-L306 | |
| //from bevy_ecs_tilemap/examples/mouse_to_tile.rs | |
| pub fn cursor_pos_in_world( | |
| windows: &Windows, | |
| cursor_pos: Vec2, | |
| cam_t: &Transform, | |
| cam: &Camera, | |
| ) -> Vec3 { | |
| let window = windows.primary(); |
NewerOlder