Giter Site home page Giter Site logo

chirperjax's Introduction

Chirperjax

A simple 2D platformer game that demonstrates the use of two Rust crates: Gate and Collider.

Play Online

Thanks to WebAssembly and WebGl, you can play this game online at http://www.luduminis.com/chirperjax/.

Building

Instructions are the same as building the Gate example app. See https://github.com/SergiusIW/gate/tree/master/example.

Videos

Introducing Gate and this game: https://youtu.be/SR-Yx6nTfZY

License

Chirperjax source code is licensed under the GNU General Public License v3.0. Chirperjax assets, found in the src_assets/ directory, are licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 License.

chirperjax's People

Contributors

burjui avatar sergiusiw 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar

chirperjax's Issues

Segmentation fault: 11

env

  • macos 10.14.3
  • rustc 1.38 stable

what i did

cargo run

output

    Finished dev [unoptimized + debuginfo] target(s) in 56.99s
     Running `target/debug/chirperjax`
Segmentation fault: 11

run demo error

env

mac osx 10.12.6
rustc 1.32.0-nightly (0c999ed13 2018-12-03)

what i did

brew install sdl2
export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/lib" # add this to ~/.zshrc and source it
cargo run

error message

RUST_BACKTRACE=1 cargo run                                                                            
   Compiling gate_demo v0.1.0 (/private/tmp/chirperjax)
    Finished dev [unoptimized + debuginfo] target(s) in 1.44s
     Running `target/debug/gate_demo`
thread 'main' panicked at 'ERROR: 0:1: '' :  version '100' is not supported
', /Users/ch/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/gate-0.6.2/src/renderer/core_renderer/sdl/shader_util.rs:37:13
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at src/libstd/sys_common/backtrace.rs:59
             at src/libstd/panicking.rs:211
   3: std::panicking::default_hook
             at src/libstd/panicking.rs:227
   4: <std::panicking::begin_panic::PanicPayload<A> as core::panic::BoxMeUp>::get
             at src/libstd/panicking.rs:491
   5: std::panicking::continue_panic_fmt
             at src/libstd/panicking.rs:398
   6: std::panicking::try::do_call
             at src/libstd/panicking.rs:353
   7: gate::renderer::core_renderer::sdl::shader_util::compile_shader
             at /Users/ch/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/gate-0.6.2/src/renderer/core_renderer/sdl/shader_util.rs:37
   8: gate::renderer::core_renderer::sdl::sprite_program::SpriteProgram::new
             at /Users/ch/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/gate-0.6.2/src/renderer/core_renderer/sdl/sprite_program.rs:35
   9: gate::renderer::core_renderer::sdl::sprite_program::SpriteProgram::make_vao
             at /Users/ch/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/gate-0.6.2/src/renderer/core_renderer/sdl/mod.rs:41
  10: gate::core::sdl::build_renderer
             at /Users/ch/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/gate-0.6.2/src/core/sdl/mod.rs:141
  11: gate::core::sdl::run
             at /Users/ch/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/gate-0.6.2/src/core/sdl/mod.rs:80
  12: gate::run
             at /Users/ch/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/gate-0.6.2/src/lib.rs:82
  13: gate_demo::main
             at src/main.rs:44
  14: std::rt::lang_start::{{closure}}
             at /rustc/0c999ed132d67bf2520643e9bd619972cf3888ba/src/libstd/rt.rs:74
  15: std::panicking::try::do_call
             at src/libstd/rt.rs:59
             at src/libstd/panicking.rs:310
  16: panic_unwind::dwarf::eh::read_encoded_pointer
             at src/libpanic_unwind/lib.rs:102
  17: <std::panicking::begin_panic::PanicPayload<A> as core::panic::BoxMeUp>::get
             at src/libstd/panicking.rs:289
             at src/libstd/panic.rs:398
             at src/libstd/rt.rs:58
  18: std::rt::lang_start
             at /rustc/0c999ed132d67bf2520643e9bd619972cf3888ba/src/libstd/rt.rs:74
  19: <gate_demo::GameApp as gate::App<gate_demo::asset_id::AssetId>>::key_up

Link error on Ubuntu 17.10

/usr/bin/ld: cannot find -lSDL2_image
/usr/bin/ld: cannot find -lSDL2_mixer
/usr/bin/ld: cannot find -lSDL2

"OpenGL texture binding not supported"

On a Windows machine (specific OS and hardware seems to be irrelevant) this project will not compile firstly due some missing lib files from the rust library which I documented a workaround for here . After this issue is fixed, the project will run on a Linux machine but on a Windows platform when it attempts to bind textures it will panic with the error message mentioned in the title.

The panic occurs as a result of a call to sys::render::SDL::_GL_BindTexture(... , ...) on line 1500 of render.rs. I'm currently working on figuring out exactly what the error is. Based on some snooping though it appears that this function is known to be problematic and is likely a Windows only error.

Inside of gate this exception is thrown in gate/src/core/sdl/mod.rs at line 117 on the call to the function. I think the Linux implementation might just ignore the error message which could explain why this only works on Linux.

sdl2_image.lib not found

am a beginner to rust and git so pls bear with me. I tried to compile with eclipse but the below error is encountered.
this is the error=>

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.