guusw / unnamed-sdvx-clone

A rhythm game written in C++
MIT License
72 stars 110 forks source link

laser warnings #28

Open nieknooijens opened 7 years ago

nieknooijens commented 7 years ago

Hi there

can you help me with something? I'm trying to draw these things: schermafdruk van 2016-12-11 09-45-45

and so far it seems to work: schermafdruk van 2016-12-11 09-46-44

but I have 2 problems: 1: the tilting is off 2: it's drawn when the laser is active, it should become active 1,5 seconds before a laser hits.

I've been working on this for 3 weeks now and I can't really find what i'm doing wrong here. (I'm probably in the wrong renderqueue) I've committed the WIP to my fork: https://github.com/nieknooijens/unnamed-sdvx-clone/commit/1ca025a7dc743d0d73580af27d8a6fc75bf6b530

Drewol commented 7 years ago

Hi, I've made my own implementation of the laser warnings/alerts on my fork: https://github.com/Drewol/unnamed-sdvx-clone/commit/30d6c302b5c87c175bf0c7cd2eb999feafc6b602

It doesn't have the tilt correct, so graphically it looks a lot like your solution but I did manage to make them appear at a set time before a laser starts.

nieknooijens commented 7 years ago

@Drewol sorry for the late response, I was busy graduating ;) I checked out your personal branch and it looks nice! I really like the added background shader. the L and R labels are indeed drawn with the correct timing. you could adjust the tilt with the vec3 parameter but then it's still affected by gameplay changes.