Jump to content
Posted
  • Content Team

Been struggling to find myself a coder to build my dream game, so I've finally decided I'm biting the bullet and doing it myself.

 

Coding in PHP for now to see what I can come up with as it's probably my strongest language, even though I still don't know anymore than an average 12 year old could find out on Google.

 

If anyone wants to laugh at me along my journey, I'm developing on live and literally have been making miniscule edits by the minute for hours. I'm just about finished up for night, so nothing will change or break (hopefully) for a few hours (not that there's anything much to do anyhow): https://heroel.com/src/

 

You can use a fake email to sign up no worries there's no verification or anything, the database will likely be deleted anyhow once I work more on the game.

 

Feel free to laugh along in the thread, I won't take it personally! :ROFLMAO:

content.png

Looking to grow your community and encourage engagement? Check out Administrata's premium Content Ordering service!

Featured Replies

I mean, this isn't a bad start. This is exactly how my text-based game looked when I soft-launched, except I launched it within a container at least and with another font (some coloring) and a logo.

 

As I grew, so did the layout and functionality.

 

I learned PHP as a procedural programming language (PHP3), and when they introduced classes in PHP4 (I believe), is when I started to get lost, as I came from a Visual Basic 3 background. However, I managed to grasp that. Now, it's object-oriented and it looks like a foreign language to me with $this->function()->that = function(asdf); or whatever. So, I hope you're learning it as object-oriented and using it that way, with hooks to add in features so you don't need to rebuild an entire module (like the gym) if you just want to add a bench press to the mix or something.

 

I take that back. I at least validated emails and hashed passwords for storage as a dumbass, I passed passwords in the URL string for about a month or two before I learned sessions/cookies. Anyone could've accessed anyone's account if they shared a link, but they wouldn't have been able to change the password.

Looks like a great start! And you do have to start somewhere - getting the core stuff working, then getting it pretty is usually a winning combination.

Holder of controversial opinions, all of which my own.

 

KyNfX.gif

  • Administrators

Looks like a great start! And you do have to start somewhere - getting the core stuff working, then getting it pretty is usually a winning combination.

[ATTACH type=full" size="335x95]516[/ATTACH]

I got you.

Someone sent me to the hospital.

 

Jokes on them. I been hitting the gym.

 

Come at me again, bro.

  • Administrators

Someone sent me to the hospital.

 

Jokes on them. I been hitting the gym.

 

Come at me again, bro.

Done.

 

2 ez.

ffs who put me back in the hospital when I was training?
  • Administrators

ffs who put me back in the hospital when I was training?

 

200.gif

  • Administrators

[ATTACH type=full" size="362x68]517[/ATTACH]

 

200.gif

I love this game almost as is and it has great potential, [mention=96]fdk[/mention] . Keep up the great work on it!

 

Low graphics, text based. My kind of style. Adding too much graphics is what kills a game like this for me.

 

Your battle is going to need some work though, as I'm sure you know. There will be loops within loops within loops to determine.

 

Loop from 1 to X until HP is done for either one (something like this).

  1. Who can attack first - Speed

    1. How much damage they can get in or avoid - Agility
      1. How much damage they can inflict (by comparing the other person's speed and agility) - Strength
        1. How much damage is averted by either party - Defense


[ATTACH type=full" size="305x103]518[/ATTACH]

 

BOOM

  • Administrators

[ATTACH type=full" alt="1734354577860.webp]518[/ATTACH]

 

BOOM

200.gif

Only if it’s in America. Heroel land is not party to HIPAA therefore it’s fine!

So now we have a lawyer. 🧐

 

I will be checking with my lawyer to see if, as an American citizen, treated in Heroel land, they can still release my records! Then, I'm going to sue for compensatory damages and emotional stress!!!

[mention=47]Daedalus[/mention]

 

[ATTACH type=full" size="297x91]521[/ATTACH]

 

200.gif

So now we have a lawyer. 🧐

 

I will be checking with my lawyer to see if, as an American citizen, treated in Heroel land, they can still release my records! Then, I'm going to sue for compensatory damages and emotional stress!!!

We have an armchair lawyer, the best kind of lawyer.

Holder of controversial opinions, all of which my own.

 

KyNfX.gif

  • Author
  • Content Team

Oh my word, back from work to find you're all playing this absolute noob creation that I came up with in a few hours :ROFLMAO:

 

Gym stats are incrementing but currently the battle system doesn't actually use the stats to determine fights. This will be my mini-project over the next 24-48 hours, as it's an awful lot more complicated to build the logic than I first thought... whoops!

 

I also thought I'd made it so that players automatically leave the hospital when reaching 75 health. However, I've just realised that this only occurs if the player in hospital visits the hospital.php page after reaching 75 health... so I'll add some conditions and checks to fix that at some point soon too, so it makes for a bit faster battling. In the meantime, if you want to create multiple accounts just to have more to beat up... I'm totally fine with that.

 

After I've completed these few things, I'll do a few smaller things like add tracking and a stats.php so you can see how many times you've attacked, how many times you've sent people to the hospital, and how many times you've been to the hospital. Then I'll be moving onto inventory.php which will be a big project as it'll introduce items with different effects into the game.

 

When I have a decent codebase with working features, I plan to add some basic styling and a really basic theme. I just haven't done it now as I'm live editing code and likely to constantly break things. The game will however remain entirely text-based and won't have any graphics except for perhaps a logo.

 

 

This is just a basic roadmap and subject to change. I really do have a passion to one day run my own text-based game and I'm literally eating up information to learn to code to do it myself exactly as I envision it. I am super appreciative to see a few of you guys taking the time to come and play my strange creation!

 

 

EDIT: 58 minutes on from posting this: I've bashed out a new feature in an hour. Search for gold allows a player to search one of six areas every minute. Each area has increasing rewards, but increased risks of failure, which loses health. Success means you find gold. Very, very simple, but still took an hour. Enjoy! https://heroel.com/src/search.php - Also updated the home page to display level, gold, and link to search for gold.

 

Back tomorrow with the stuff I actually said above :LOL:

PS: Just manually removed everyone from hospital. Fight away!

 

Someone sent me to the hospital.

 

Jokes on them. I been hitting the gym.

 

Come at me bro.

 

lol

 

Screenshot-2024-12-16-9-14-37-PM.png

 

13 strength already? No wonder you realised quickly that battle stats aren't being used right now haha! Somebody needs a nerf :geek:

Edited by fdk

content.png

Looking to grow your community and encourage engagement? Check out Administrata's premium Content Ordering service!

13 strength already? No wonder you realised quickly that battle stats aren't being used right now haha! Somebody needs a nerf :geek:

This is literally my type of game.

 

I'm hooked already. Not even joking. It takes me back to 1999/2000 with my game.

I'm mad I can't collect gold for shit.

 

I keep getting attacked. I got 6 gold.

 

But I can merk any one of you in a battle.

[ATTACH type=full" size="296x98]523[/ATTACH]

 

200.gif

  • Author
  • Content Team

Okay guys, a couple of small (well, actually, big in terms of development) updates processed just now.

 

Battle.php has been modified. You now can select the opponent you wish to attack. During battles, you will now hit your opponent, and your opponent will hit you back. I will be making modifications to damage values over the next 24 hours.

 

Hospital has been updated and now automatically discharges patients who reach 75 health immediately. This should make for faster battling!

 

Unfortunately, my coding skills haven't developed quite enough just yet for me to implement the battle stats into battle... I did make some database adjustments earlier which may have resulted in the lowering of some stats, so apologies for that. I noticed that my code for gym isn't currently preventing multiple successive trains correctly, so I'll be attempting to fix this in the next 24-48 hours too. I still do plan to implement battle stats into the battle logic, and will 100% get to this, but it may be slightly further down the line (by this I mean maybe a week or so max).

 

I plan to catch up on some content orders here tomorrow as it's my first free day for a fair while, then tomorrow evening I'll be doing the following (and will stick to this list this time!):

 

  • Battle will receive a small further adjustment to limit how many attacks can be performed in quick succession. There will still be a high limit to allow for plenty of attacking, but this will just be mainly to stop the constant holding of F5. :p
  • I'll also be updating damage values during this Battle update. It's likely the values will remain random but have a reduced variance. The player initiating the attack will deal approximately double the amount of damage as they will receive (on average). There will still be a 10% chance for a double hit causing double damage.
  • Hospital will receive a small additional update to allow you to "bribe the doctor" for 25 gold in return for 50 health. This'll make it possible to leave hospital almost immediately if you're hospitalised. This will be adjusted again in the near future once more gold/health mechanics are developed.
  • Gym will be updated to correctly require a wait of 30 minutes between regular trains.
  • Possible I will make an attempt on an NPC battle feature that will allow players to fight NPC characters for a chance at finding loot (gold) and special items (that will have a use in a future update).

 

Thanks everyone, you're all awesome for being my very own beta testers!

-

content.png

Looking to grow your community and encourage engagement? Check out Administrata's premium Content Ordering service!

and your opponent will hit you back.

That's no fun. I liked just beating people around with their arms tied behind their back.

I did make some database adjustments earlier which may have resulted in the lowering of some stats, so apologies for that.

Brroooooo I went from 30 strength to 10.

There will still be a 10% chance for a double hit causing double damage.

Instead of hard coding a 10% double-hit, it should be based on the agility or some other stat.

 

Say... (Agility / Rand(2-5)) * (Speed / Rand(2-5)) / Rand(1-10). At a base 10/10, this would give an odd of a double hit at anywhere from 0.4% to 25%.

First impression: The site is in the nude.
7QDCA.png
  • Author
  • Content Team

First impression: The site is in the nude.

 

I agree, it doesn't look very good and I completely understand. Whilst I'm still not ready to add a theme or any real styling due to it just breaking things while I'm developing live, I will at least go through tomorrow and make all of the pages consistent (ie make the layout/ordering consistent and turn pages that have links into buttons to be consistent across all pages).

content.png

Looking to grow your community and encourage engagement? Check out Administrata's premium Content Ordering service!

I agree, it doesn't look very good and I completely understand. Whilst I'm still not ready to add a theme or any real styling due to it just breaking things while I'm developing live, I will at least go through tomorrow and make all of the pages consistent (ie make the layout/ordering consistent and turn pages that have links into buttons to be consistent across all pages).

You should use a template engine instead.

 

PS: I'm protesting until I get my 30 strength back.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...