Coder Social home page Coder Social logo

fireblade-engine / ecs-demo Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 5.0 2.11 MB

Minimal demo App for the Fireblade Entity-Component System (ECS)

License: MIT License

Swift 99.48% Makefile 0.37% PowerShell 0.15%
application demo ecs-demo fireblade-engine spm swift swift-package-manager

ecs-demo's People

Contributors

ctreffs avatar igorkravchenko avatar pcbeard avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ecs-demo's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci-linux.yml
  • actions/cache v3
  • actions/cache v3
.github/workflows/ci-macos.yml
  • actions/checkout v3.5.2
  • actions/cache v3
  • actions/cache v3
  • actions/upload-artifact v3.1.2
.github/workflows/markdown-link-check.yml
swift
Package.swift
  • ctreffs/SwiftSDL2 from: "1.3.2"
  • fireblade-engine/ecs from: "0.17.5"
  • fireblade-engine/math from: "0.13.0"

  • Check this box to trigger a request for Renovate to run again on this repository

Lingering keyboard event on second run

I'm newish to both swift and SDL2 so could be a dumb thing. When I run Particles for the second time the window closes immediately. Digging into it, I basically see a queued-up ESC in the events list even though hasn't been pressed for THIS run -- but one was pressed to end the previous run.

I'm unsure how to flush the event queue, so I've just disabled it for now and rely on CTRL-C which is fine for me messing around. But it seems to imply something fishy going on under the hood.

I'm running Ubuntu via WSLg on Windows 11 so there are additional complexities going on here.

Happy to poke around more with some guidance. Thanks!

Can't find sdl2 on Linux

Building generates the following error error: 'ecs-demo': product 'SDL2' required by package 'ecs-demo' target 'SDLKit' not found. even though sdl2-2.30.1-1 is present on the system.

OS Manjaro Linux 23.1.3
Swift v5.9.2

Compile Asteroids on WSL: error: the compiler is unable to type-check this expression in reasonable time;

❯ swift run Asteroids
Building for debugging...
/home/arckex/ecs-demo/Sources/Asteroids/EntityCreator.swift:94:14: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
            .addInstance(Display(renderable: SpaceshipView()))

Particles runs and looks great! I can get about 1500 particles on WSLg and stay at 60fps. I think that's pretty awesome. Thanks for the code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.