-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|59|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Blogs Home -> Blogs

Pakz Created : 03 June 2019

### Platformer with Ropes(emscripten)

Nature of code

I noticed a book at home and got into reading mode. I had read this book before so decided to browse the free online book by daniel shiffman - nature of code. In here I wanted to look at the chapter with flocking but I noticed some kind of swinging example. I was able to convert the code to Monkey2 and get it somewhat working in a quick platformer mockup.

I have been testing and fixing today. I uploaded a emscripten version.

cromdesi.home.xs4all.nl/emscripten/ropeplatty/Untitled1.html

I kind of have difficulties deciding how to aproach this rope feature further. I had the idea to create a more complex anchoring, where the rope if it touches blocks in then gets anchored at that point. But I think this might be to difficult for me to get working in a short time.

Right now the player can shoot /release ropes with 'r' and move up and down the rope and swing (w/a/s/d) If you jump into a deeper part of the level you can only get out with the rope.

I was thinking of adding some kind of enemy to spice things up. But who knows...

Tuesday, 04 June 2019, 00:55
rockford Scrolling's not working for me - I get a stutter when pressing left/right cursor, but that's all.

Also "scroll" is spelled incorrectly (sccoll).

Not sure the swinging mechanism is right just yet though, the momentum is erratic. I do like the idea though (especially since I made lots of use out of the Bungee rope in Worms!).
Tuesday, 04 June 2019, 02:45
Pakz I had added automatic scrolling at the last moment I had not thought of testing the manual scrolling yet.

I wil take a look at worms and see how it handles there Tuesday, 04 June 2019, 03:20
Jayenkai Yeah, if you aim for Worms Mechanics, then this could be great.
It's going to be fairly tricky though, I reckon. The Worms rope was VERY well put together!
{"ft_lang_label":"__label__en","ft_lang_prob":0.951192,"math_prob":0.850654,"size":1903,"snap":"2020-24-2020-29","text_gpt3_token_len":478,"char_repetition_ratio":0.083201684,"word_repetition_ratio":0.00882353,"special_character_ratio":0.24330005,"punctuation_ratio":0.10659899,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98561615,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-06-02T17:00:43Z\",\"WARC-Record-ID\":\"<urn:uuid:ba4ae387-1fca-4e23-ae18-eb3ef36aa24e>\",\"Content-Length\":\"25245\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0e323dbc-cb4d-4293-b018-194412e31b51>\",\"WARC-Concurrent-To\":\"<urn:uuid:fb77c034-897f-4a29-aa81-c04264c56a26>\",\"WARC-IP-Address\":\"88.80.187.139\",\"WARC-Target-URI\":\"https://socoder.com/?Blogs=71637\",\"WARC-Payload-Digest\":\"sha1:YYNCCPX55LY5ODBSUSSTMVMMHRM3R5O6\",\"WARC-Block-Digest\":\"sha1:LONWA66K373D2LYAGZELYYAJQT6M56EL\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-24/CC-MAIN-2020-24_segments_1590347425481.58_warc_CC-MAIN-20200602162157-20200602192157-00048.warc.gz\"}"}