• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 195

Backtrace:

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/views/question.php
Line: 195
Function: _error_handler

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/controllers/Questions.php
Line: 416
Function: view

File: /home/u125378470/domains/lawhelpguru.org/public_html/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

Creating game in JavaScript and P5 - few fundamental questions

I am currently working on a game that needs to be done using HTML, JavaScript, CSS and P5.

Idea is to have the standard 2d game where the character needs to enter the exit door on the map. Main features are rotating the "map" or "canvas" by 90 degrees with Q and E buttons. Game similar to the already existing game called Rotate. When rotating the map character stays in the same position so its only background that rotating.

I have following questions regarding the best approach:

  1. Should I write the map manually, i.e. assign the location on the map of each boundary (floor, walls etc) and then when rotating the map by 90 degrees just mathematically adjust the boundaries to a different location? Is this the best approach or is there any more time efficient are smarter approach?

  2. Should I be using P5 at all or this all can be done in HTML with dom manipulation?

  3. I want to have the camera effect by showing only square of the map - so that character is always centered - when walking to the left map would be moving rather then the character. So that the map can be always rotated in the current point of the character - center of the map.

I appreciate any advice or recommendation in advance.

Thanks!