jlr7245 / castleadventure Goto Github PK
View Code? Open in Web Editor NEWA JavaScript rebuild of the classic 1984 DOS game by Kevin Bales.
Home Page: http://jlr7245.github.io/castleadventure
A JavaScript rebuild of the classic 1984 DOS game by Kevin Bales.
Home Page: http://jlr7245.github.io/castleadventure
Walls should have some kind of "solidity". Game should know when player square comes into close proximity to a wall.
#1 related to this
I am having trouble getting my room switcher working correctly. There are two separate issues:
I asked about the first on StackOverflow here and talked to Stefan about it as well. The answer worked on StackOverflow to a degree -- initially the extra player was moving together with the player in the correct position -- but it still seems I can't clear the position from the previous room.
I feel the second issue is happening probably for the same reason as the first - Room class objects aren't being cleared properly so it's reading them twice. One should be able to leave a room and then immediately return to it. Instead, the following things happen:
This is an issue with classes, so documentation is hard to find and I'm having a rough time puzzling through ES5 documentation and trying to apply it to my situation.
Desired outcome would be the Room class recognizing the array of wall shapes it's been passed. EDIT Turns out the function doesn't recognize any connecting rooms after the first one in the array - says they're undefined.
See behavior replicated here.
Applicable code is here
I will continue to try to work through this but any help would be appreciated! ๐ Thanks so much.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.