Search found 721 matches

by MrGodin
May 20th, 2019, 1:43 am
Forum: Everything
Topic: I guess I'll start
Replies: 36
Views: 12699

Re: I guess I'll start

for tiles or maps i do this... Load a text file tileswide 46 tileshigh 44 tilewidth 64 tileheight 64 filename map2.png layer 0 47,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,49 52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,...
by MrGodin
May 20th, 2019, 1:36 am
Forum: Everything
Topic: I guess I'll start
Replies: 36
Views: 12699

Re: I guess I'll start

I use sprite sheets.. there are 4 strips (rows) of animation each with 8 columns(frames) to iterate through in the art here. The movement component, through it's directional value, sets the row or strip to iterate through. Theses entities have a walk,thrust,slash and die animations.(currently on wal...
by MrGodin
May 19th, 2019, 5:29 pm
Forum: Everything
Topic: I guess I'll start
Replies: 36
Views: 12699

Re: I guess I'll start

These are of course simple indexing as you probably know inline uint getIndex(const uint& row, const uint& column) { return row * m_columns + column; } inline Math::vec2 getIndex(const uint& index) { return Math::vec2((float)(index % m_columns), (float)(index / m_columns)); } inline uint getIndex(co...
by MrGodin
May 19th, 2019, 5:26 pm
Forum: Everything
Topic: I guess I'll start
Replies: 36
Views: 12699

Re: I guess I'll start

I've always been deemed a bad influence haha. Sometimes starting over is better ;). I use a grid of tiles myself for simple indexing. I've tried to encapsulate rows of tiles with lines before but couldn't get the algorithm correct.
by MrGodin
May 18th, 2019, 10:27 pm
Forum: Everything
Topic: I guess I'll start
Replies: 36
Views: 12699

Re: I guess I'll start

Thats a cool idea, hope it works out for you.
by MrGodin
May 18th, 2019, 3:16 am
Forum: Everything
Topic: I guess I'll start
Replies: 36
Views: 12699

Re: I guess I'll start

It's missing collision correction in this code but it always gives a right result if a collision happened
by MrGodin
May 18th, 2019, 2:39 am
Forum: Everything
Topic: I guess I'll start
Replies: 36
Views: 12699

Re: I guess I'll start

some of my collision detection (2d) #pragma once namespace Thor { static constexpr int _pt0 = 0; static constexpr int _pt1 = 1; static constexpr int _pt2 = 2; class Line_2D; class AABB_2D; class Sphere_2D; class Triangle_2D; class Polygon_2D; template<typename T,int count> class Shape { protected: T...
by MrGodin
May 8th, 2019, 1:15 am
Forum: Everything
Topic: I guess I'll start
Replies: 36
Views: 12699

Re: I guess I'll start

Every tried the Box2D format of multiple checks against collision on a single frame?.
by MrGodin
May 8th, 2019, 1:06 am
Forum: Everything
Topic: Fucking hate programming...sometimes
Replies: 6
Views: 2611

Re: Fucking hate programming...sometimes

It's hard to (a) come up with a game idea (b) try and implement your idea without losing focus, (c) finding out it's a lot of work, assets, coding and having it all come together nicely. Games are hard, displaying data is easy.
by MrGodin
April 27th, 2019, 4:24 pm
Forum: Everything
Topic: New computer
Replies: 2
Views: 1799

Re: New computer

Yes am using SSD