You are browsing as a guest. Sign up (or log in) to start making projects!

Experiementing With Classes

  • 3 Devlogs
  • 1 Total hours

This project is focused around experimenting and developing my knowledge of classes within python!

Open comments for this post

27m 3s logged

Today I began working on the core game logic, taking everything i have learnt and implementing it into a terminal based game! I have currently implemented three classes, each encapsulating methods and attributes (i.e. inventory have getters and setters). I hope by the next devlog, the core logic is 70% done (currently 25%)….

0
0
25
Open comments for this post

27m 47s logged

I have learnt how to use multiple inheritance and how aggregation and composition works. Below is the exemplar code I wrote to demonstrate the relationship. Using this knowledge, and the previous code I am now going to implement private and protected methods to ensure people cannot exploit my game as I begin to create it.

0
0
17
Ship #1 Changes requested

During this project, I had to understand how composition works!
This was hard to understand initially but whilst coding this it helped make sense to me.. Using this project, i will now be able to create a more sophisticated system and work with classes in my other projects.

  • 1 devlog
  • 0h
Try project → See source code →
Open comments for this post

20m 9s logged

I have created a simple system for the back end of my game, which has a simple class which will contain an inventory. Using this I will now create a new project for a potential CLI game…

0
0
12

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…