Author: admin
-
Data model
See also: Progression and achievement system Requirements: Layers OBJECT LAYERS – export as data COLLISION (folder) – export as data GRAPHICS (folder) – export as data and graphics Question – is it better to generate background/foreground map at runtime (or at load/set up time) – or load a complete graphic? I feel that its better…
-
Randomness
Well, do you even need it? Apple changed the ipod shuffle play algorithm – because random can clump, but we don’t think it should… Seed Were it is – e.g. the running game i made, had a selection of predefined map sections that were ‘randomly’ selected – so long as there was not the same…
-
Level Design
See: Progression – Quest design. Consider what data needs to be maintained between levels/sections Also, consider what does NOT need to maintained – e.g. having sub sectional maps for particular purposes, which have particular data (like objects/locked things etc.) that are no longer required later, but don’t need to be ‘checked’ for from that point…
-
Functional Programming
Immutability – always use ‘const’ to declare variables Separate data and functions Data is represented by JS objects (JS’s version of arrays or hashes…) – it is a constant source of truth Functions act separately and make a modified copy of the data First-class functions – allows us to treat functions the way we treat…
-
Game loop
See also: Game states optimisation A game loop should be able to: SOURCE: https://gameprogrammingpatterns.com/game-loop.html Javascript – best practices for performant gameloops Performance is based upon how many things a game has to do each iteration of the loop. If you can defer a task, good. If you can store and reuse something, good. Consider if…
-
Progression and achievement system
Requirements: mini-games and core have inividual identifiers local logic for success tracking player progress schema Observer pattern could be a good choice Story progression – flags and tags – empty tags in char thing – start off set to no… add more? Work backwards from goal – knowing the goal/objective – usuaĺly stated at the…
-
Level/map editors
Needs: Options external editor Use tiled map editor A guide to level creation with Tiled [ + how to use it with pygame ] make 2 folders, a tmx and a tsx folder Without using tiled map editor reasons – small game – online editor internal editor Or, just have a built in edit mode…
-
Template setups
Systems Games
-
UI
Principles: This are the elements: Use React to handle UI https://jslegenddev.substack.com/p/why-use-react-for-game-development I do like the alpha insettion options on the SNES – where you scroll off the left hand of the page, and loop back around. Cues from Apple HUI guidelines are useful Inventory Well, this below is not a solution, but rather, a rant…
-
Project Structure
The logic is: there are two main areas: For web projects, this is not always that logical. So, what to do? The release is the same as the src folder, but has a .git ignore folder for when it’s built… Grunt file Ok, so it’s outdated, but it will do for now… Based on the Advanced…