#computertech Bot Logged User list

Network: TechNet
Modes: +ntf
Last Seen: 2 months, 2 weeks ago
Topic:
2
Users

Channel Log Archive for #computertech

Prev
Next

* All times are UTC
Filtering by user: Kuro-chan/rizon
Friday, January 6, 2023
[04:39:55] Kuro-chan/rizon ComputerTech More work on fps happening
[04:40:21] Kuro-chan/rizon yay!
[04:40:30] Kuro-chan/rizon though I've run into a bit of a stumbling block
[04:40:33] Kuro-chan/rizon secret push walla
[04:40:38] Kuro-chan/rizon *walls
[04:40:54] Kuro-chan/rizon the horizontal versions work perfectly, but the vertical ones are giving my a grafx glitch when 'moving'
[05:08:36] Kuro-chan/rizon ComputerTech:figured it out
[05:08:46] Kuro-chan/rizon why is it always something dumb..
[05:08:48] Kuro-chan/rizon lol
[05:09:05] Kuro-chan/rizon I was accidentally replacing an important value with a loop length check.
[05:09:33] Kuro-chan/rizon since the priority with the fps engine is frame rate, anything to help minimize the load from the code is done, including pre-declaring loop lengths
[05:10:11] Kuro-chan/rizon I was using x0 and y0 as a value for generating how much is added to the ray x & y's when trying to determine when the rays make contact with a wall
[05:10:21] Kuro-chan/rizon well I was doing an x loop and was setting x0 to the loop length
[05:10:23] Kuro-chan/rizon whoops
[05:10:36] Kuro-chan/rizon changed it to another letter, push wall works beautifully
[05:10:39] Kuro-chan/rizon this was getting frustrating
[05:11:46] Kuro-chan/rizon anyway
[05:12:03] Kuro-chan/rizon consider it has walls, floors, ceilings, checks for doors, push walls, sprites/objects and variable lighting conditions
[05:12:09] Kuro-chan/rizon the frame rate is still damn impressive
[05:12:18] Kuro-chan/rizon keeping the code super vanilla makes a huge difference
[05:12:34] Kuro-chan/rizon my frame delay target is 33-34 (1000 / 30 fps, floats between those two values)
[05:12:42] Kuro-chan/rizon it's a bit more all over the place with the overview on, though
[05:12:51] Kuro-chan/rizon I ripped it apart and started over
[05:14:09] Kuro-chan/rizon ^ ComputerTech
[05:16:28] Kuro-chan/rizon ComputerTech: Keeping the javascript as vanilla as possible helps a lot
[05:16:47] Kuro-chan/rizon I made a function called $COPY that lets me duplicate an array or string without it affecting the source.
[05:17:05] Kuro-chan/rizon and it did a number on the frame delay (raised the long view of the room from 70 to 120 with overview on)
[05:17:13] Kuro-chan/rizon stuff like that I had to unlearn
[05:17:20] Kuro-chan/rizon to keep the frame rate in good shape
[05:17:38] Kuro-chan/rizon there were other little thing I noticed that caused huge issues to the frame rate.
[05:17:43] Kuro-chan/rizon *things
[05:42:17] Kuro-chan/rizon ComputerTech
[05:42:50] Kuro-chan/rizon um, ewe..
[05:45:55] Kuro-chan/rizon dramo: It's the fps engine I have been working on
[05:47:19] Kuro-chan/rizon the trick with making this work on a browser is to keep the frame rate colid
[05:47:21] Kuro-chan/rizon *solid
[05:47:36] Kuro-chan/rizon my previous build had weapons and an enemy that would be alert, pickups and other stuff
[05:47:45] Kuro-chan/rizon but I was running into problems with it
[05:48:07] Kuro-chan/rizon so I ripped it apart, unlearned everything about javascript, rebuilt it from the ground up while trying to keep the frame rate at optimum peak
[05:48:29] Kuro-chan/rizon there's a LOT of different things that can be done to wreck frame rate, sadly
[05:48:39] Kuro-chan/rizon especially when you're already drawing every damn pixel on the screen
[05:48:53] Kuro-chan/rizon even a 320 x 160 for gameplay is 51,200 pixels x 30fps
[05:49:05] Kuro-chan/rizon never mind the overlap for things like sprites
[05:49:16] Kuro-chan/rizon anyhow I can now draw all the sprites on the screen.
[05:49:25] Kuro-chan/rizon next I'm going to import the script for handling picking stuff up
[05:50:13] Kuro-chan/rizon even though all sprites are 32 x 40 I implemented a cutoff so if a sprite only uses a small part of the sprite box, it will only try to draw the relevant part
[05:50:18] Kuro-chan/rizon while still keeping it lined up
[05:50:22] Kuro-chan/rizon with the screen
[05:50:28] Kuro-chan/rizon realistically speaking
[05:50:45] Kuro-chan/rizon these kind of games are technically a birds-eye view 2-d game
[05:50:54] Kuro-chan/rizon but they are re-drawn in a way to make it look 3-d on the screen
[05:51:54] Kuro-chan/rizon haha
[05:52:07] Kuro-chan/rizon My last attempt to make a 2-player javascript game was... tempermental
[05:52:57] Kuro-chan/rizon it was for a tetris game I made
[05:55:05] Kuro-chan/rizon so yeah, it's a lot of basic for loops, basic math commands, basic everything
[05:55:19] Kuro-chan/rizon the smallest global function could actually be enough to break the whole frame rate
[05:55:28] Kuro-chan/rizon so I had to unlearn my habits
[05:55:41] Kuro-chan/rizon especially since byte count was super precious with the rpg I made
[05:56:00] Kuro-chan/rizon because part of that was to complete the game using 128kb
[05:56:38] Kuro-chan/rizon had 150 bytes to spare, finished with a full music soundtrack (something like 14 or 15 tracks, sounding very 8-bit)
[06:03:07] Kuro-chan/rizon it was just a challenge, not some contest
[06:05:05] Kuro-chan/rizon One of the tracks from the rpg I made. It plays right in the browser without requiring audio files, so the whole filesize for the track is something like 1.5kb.
[06:24:57] Kuro-chan/rizon hmm
[06:25:03] Kuro-chan/rizon the theme was intended for a dragon lair
[06:25:07] Kuro-chan/rizon I thought it worked fine
[06:28:23] Kuro-chan/rizon dramo
[06:28:30] Kuro-chan/rizon world theme after a dragon has been defeated
[06:34:50] Kuro-chan/rizon wtf--- why is that camera angle too high?
[06:34:52] Kuro-chan/rizon :/
[06:36:11] Kuro-chan/rizon dramo ^ generic dungeon bgm
[06:46:49] Kuro-chan/rizon :(
[06:46:57] Kuro-chan/rizon well, it's part of the final game :P
Prev
Next